Back to Documentation
WordPress
Performance Tuning
Optimize your WordPress site for blazing fast performance. Our platform includes built-in caching and CDN.
1Built-in Optimization
Every Berican Labs WordPress site includes:
- Redis Object Cache: Database queries cached in memory
- Global CDN: Static assets served from 300+ edge locations
- Gzip/Brotli: Automatic compression enabled
- PHP OPcache: Pre-compiled PHP for faster execution
- HTTP/2: Multiplexed connections for faster loading
No caching plugin needed - it's all built in!
2Image Optimization
Optimize images for faster loading:
- Use WebP format when possible
- Resize images to actual display size
- Use lazy loading for below-the-fold images
- Consider a plugin like ShortPixel or Imagify
// Add to functions.php for lazy loading
add_filter('wp_lazy_loading_enabled', '__return_true');
3Database Optimization
Keep your database lean:
# Clean up via WP-CLI
wp transient delete --expired
wp post delete $(wp post list --post_type=revision --format=ids)
wp db optimize
Consider limiting post revisions in wp-config.php:
define('WP_POST_REVISIONS', 5);
4Plugin Best Practices
Plugins can significantly impact performance:
- Use fewer plugins: Each plugin adds overhead
- Choose quality: Well-coded plugins matter
- Regular updates: Keep plugins current
- Remove unused: Delete inactive plugins
Avoid: Heavy page builders, social sharing plugins with many features, and all-in-one "suite" plugins when you only need one feature.
5Monitoring Performance
Track your site's performance:
- Dashboard: Site Settings > Performance shows response times
- External tools:
Goal: Sub-1-second load times in Kenya with our optimized infrastructure!