Performance Optimization
Optimize your site’s performance when using WPBits Addons for Elementor. Follow these best practices to ensure fast loading times and smooth user experience.
Server Optimization
Section titled “Server Optimization”PHP Version
Section titled “PHP Version”Use PHP 8.0 or Higher
PHP 8.0+ offers significant performance improvements:
- 2-3x faster than PHP 7.4
- Better memory management
- Improved JIT compilation
How to Upgrade:
- Check current version: Tools → Site Health → Info → Server
- Contact your hosting provider to upgrade
- Test your site after upgrading
Memory Configuration
Section titled “Memory Configuration”Recommended Settings:
define('WP_MEMORY_LIMIT', '256M');define('WP_MAX_MEMORY_LIMIT', '512M');For Large Sites:
- Use 512MB for WP_MEMORY_LIMIT
- Use 1024MB for WP_MAX_MEMORY_LIMIT
Execution Time
Section titled “Execution Time”Increase for Complex Pages:
php_value max_execution_time 300php_value max_input_time 300This prevents timeouts when:
- Saving complex Elementor pages
- Importing templates
- Processing large grids/carousels
Caching Strategy
Section titled “Caching Strategy”Page Caching
Section titled “Page Caching”Configuration Tips:
- Enable page caching (use a caching plugin)
- Enable browser caching
- Enable GZIP compression
- Exclude Elementor editor from cache
- Clear cache after updates
Object Caching
Section titled “Object Caching”For Dynamic Content:
Use Redis or Memcached for:
- Database query caching
- API response caching
- Transient storage
Setup Redis:
- Install Redis on server
- Install Redis Object Cache plugin
- Enable object caching
- Test performance improvement
Elementor Cache
Section titled “Elementor Cache”Regenerate Regularly:
Go to Elementor → Tools → Regenerate CSS & Data
Regenerate after:
- Plugin updates
- Theme changes
- Major content updates
- Performance issues
Asset Optimization
Section titled “Asset Optimization”CSS Optimization
Section titled “CSS Optimization”Minify CSS:
- Use caching plugin to minify CSS
- Combine CSS files when possible
- Remove unused CSS
Inline Critical CSS:
- Inline above-the-fold CSS
- Defer non-critical CSS
- Use tools like Critical CSS Generator
Image Optimization
Section titled “Image Optimization”Optimize All Images:
-
Use Proper Formats:
- WebP for photos (smaller file size)
- SVG for icons and logos
- PNG for transparency
- JPEG for photos (fallback)
-
Compress Images:
- Use Imagify, ShortPixel, or Smush
- Compress before uploading
- Set quality to 80-85%
Recommended Plugins:
- Imagify
- ShortPixel
- Smush
- EWWW Image Optimizer
Database Optimization
Section titled “Database Optimization”Regular Cleanup
Section titled “Regular Cleanup”What to Clean:
- Post revisions
- Auto-drafts
- Spam comments
- Trashed items
- Transients
- Orphaned metadata
Recommended Plugins:
- WP-Optimize
- Advanced Database Cleaner
- WP-Sweep
Schedule Regular Cleanups:
- Weekly for high-traffic sites
- Monthly for smaller sites
- After major content updates
Optimize Tables
Section titled “Optimize Tables”Manual Optimization:
- Backup database first
- Use phpMyAdmin
- Select all tables
- Choose “Optimize table”
Automated: Use WP-Optimize to schedule automatic optimization
Limit Post Revisions
Section titled “Limit Post Revisions”define('WP_POST_REVISIONS', 5); // Keep only 5 revisions// ordefine('WP_POST_REVISIONS', false); // Disable revisionsWidget-Specific Optimization
Section titled “Widget-Specific Optimization”Grid Master / Carousel Master
Section titled “Grid Master / Carousel Master”Optimize Queries:
-
Limit Posts per Page:
- Don’t load 100+ posts at once
- Use pagination or load more
- Recommended: 9-12 posts initially
-
Optimize Images:
- Use appropriate thumbnail sizes
- Enable lazy loading
- Compress images
-
Reduce Database Queries:
- Cache query results
- Use transients for expensive queries
- Limit meta queries
-
Ajax Pagination:
- Use Ajax for better UX
- Prevents full page reload
- Faster perceived performance
Content Delivery Network (CDN)
Section titled “Content Delivery Network (CDN)”Why Use a CDN
Section titled “Why Use a CDN”Benefits:
- Faster asset delivery
- Reduced server load
- Better global performance
- DDoS protection
Recommended CDN Services
Section titled “Recommended CDN Services”-
Cloudflare (Free tier available)
- Easy setup
- Free SSL
- DDoS protection
- Page rules
-
StackPath (Premium)
- Fast performance
- Advanced features
- Good support
-
BunnyCDN (Affordable)
- Pay-as-you-go pricing
- Fast delivery
- Simple setup
CDN Setup
Section titled “CDN Setup”- Sign up for CDN service
- Add your domain
- Update DNS settings
- Configure CDN plugin in WordPress
- Test asset delivery
Hosting Optimization
Section titled “Hosting Optimization”Choose Right Hosting
Section titled “Choose Right Hosting”Hosting Types:
-
Shared Hosting (Budget)
- Good for: Small sites, low traffic
- Limitations: Shared resources, slower
- Examples: Bluehost, HostGator
-
VPS Hosting (Recommended)
- Good for: Medium sites, growing traffic
- Benefits: Dedicated resources, scalable
- Examples: DigitalOcean, Linode, Vultr
-
Managed WordPress (Premium)
- Good for: Professional sites, high traffic
- Benefits: Optimized for WordPress, support
- Examples: WP Engine, Kinsta, Flywheel
-
Dedicated Server (Enterprise)
- Good for: Large sites, very high traffic
- Benefits: Full control, maximum performance
- Requires: Technical expertise
Server Configuration
Section titled “Server Configuration”Recommended Stack:
- Web Server: Nginx or Apache with HTTP/2
- PHP: 8.0+ with OPcache enabled
- Database: MySQL 8.0+ or MariaDB 10.5+
- Caching: Redis or Memcached
Enable OPcache:
; php.iniopcache.enable=1opcache.memory_consumption=256opcache.max_accelerated_files=10000opcache.revalidate_freq=60WordPress Optimization
Section titled “WordPress Optimization”Limit Plugins
Section titled “Limit Plugins”Best Practices:
- Use only necessary plugins
- Remove unused plugins completely
- Choose lightweight alternatives
- Avoid plugin bloat
Audit Plugins:
- List all active plugins
- Identify rarely used plugins
- Find alternatives that combine features
- Remove unnecessary plugins