Complete WordPress performance audit checklist covering Core Web Vitals, server configuration, database optimization, and caching layer strategies.
Why Performance Audits Matter
WordPress powers over 40 percent of the web, but the average WordPress site loads in 3-4 seconds - well above the 2-second threshold that users and search engines expect. A systematic performance audit identifies the specific bottlenecks slowing your site and prioritizes fixes by impact.
This checklist covers every layer of the WordPress stack, from server configuration to frontend delivery. We use this framework when conducting WordPress performance optimization engagements.
Server Environment
PHP Version and Configuration
# Check current PHP version
php -v
# Verify OPcache is enabled
php -i | grep opcache.enable
# Recommended php.ini settings
opcache.enable=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10000
opcache.revalidate_freq=60
opcache.save_comments=1
opcache.enable_cli=0
# PHP-FPM pool settings
pm = dynamic
pm.max_children = 50
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500
Audit items:
- PHP 8.3 or 8.4 for supported production stacks
- OPcache enabled with sufficient memory
- PHP-FPM pool sized for your traffic level
max_execution_timeset to 30s (not 300s)memory_limitset to 256M (not 512M unless necessary)
Web Server Configuration
# nginx performance configuration
server {
listen 443 ssl http2;
# Enable gzip
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/javascript
text/xml application/xml application/xml+rss text/javascript
image/svg+xml;
gzip_min_length 256;
# Browser caching for static assets
location ~* \.(jpg|jpeg|png|gif|ico|css|js|woff2|svg|webp|avif)$ {
expires 365d;
add_header Cache-Control "public, immutable";
add_header Vary "Accept-Encoding";
}
# FastCGI cache
fastcgi_cache_path /tmp/nginx-cache levels=1:2
keys_zone=WORDPRESS:100m inactive=60m max_size=1g;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
location ~ \.php$ {
fastcgi_cache WORDPRESS;
fastcgi_cache_valid 200 60m;
fastcgi_cache_valid 404 1m;
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
add_header X-Cache-Status $upstream_cache_status;
}
}
Audit items:
- HTTP/2 or HTTP/3 enabled
- Gzip or Brotli compression active
- Static asset caching headers set (1 year for versioned assets)
- NGINX FastCGI cache or Varnish in front of WordPress
- TLS 1.3 with optimized cipher suites
Database Optimization
Query Performance
-- Find slow queries
SELECT * FROM information_schema.processlist
WHERE time > 2 AND command != 'Sleep';
-- Check table sizes and overhead
SELECT table_name,
ROUND(data_length / 1024 / 1024, 2) AS data_mb,
ROUND(index_length / 1024 / 1024, 2) AS index_mb,
table_rows
FROM information_schema.tables
WHERE table_schema = 'wordpress'
ORDER BY data_length DESC;
-- Clean up post revisions older than 90 days (take a backup first;
-- WP_POST_REVISIONS in wp-config.php caps new revisions per post)
DELETE FROM wp_posts WHERE post_type = 'revision'
AND post_modified < NOW() - INTERVAL 90 DAY;
-- Clean up transients
DELETE FROM wp_options WHERE option_name LIKE '%_transient_%'
AND option_name NOT LIKE '%_transient_timeout_%';
-- Optimize autoloaded options
SELECT SUM(LENGTH(option_value)) / 1024 AS autoload_kb
FROM wp_options WHERE autoload IN ('yes', 'on', 'auto-on', 'auto');
-- Site Health warns above 800 KB
Audit items:
- Autoloaded options under 800KB
- No more than 50 active post revisions per post (limit in wp-config.php)
- Transients cleaned regularly
wp_poststable indexed onpost_typeandpost_statuswp_postmetahas index onmeta_key- MySQL/MariaDB query cache appropriately sized
- InnoDB buffer pool set to 70-80 percent of available RAM
wp-config.php Optimization
// Limit post revisions
define('WP_POST_REVISIONS', 5);
// Increase autosave interval
define('AUTOSAVE_INTERVAL', 120);
// Disable file editing in admin
define('DISALLOW_FILE_EDIT', true);
// Object cache (Redis)
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 6379);
define('WP_REDIS_DATABASE', 0);
// Optimize cron
define('DISABLE_WP_CRON', true);
// Use system cron instead:
// * * * * * cd /var/www/wordpress && php wp-cron.php
Plugin Audit
Plugins are the most common source of WordPress performance issues. Audit every active plugin:
# List all plugins with their impact
wp plugin list --fields=name,status,update
# Profile plugin load time
wp profile hook --all --spotlight --url=https://example.com
Audit items:
- Remove deactivated plugins entirely. WordPress does not run their code, but the files stay on the server, where a vulnerable one can still be requested directly
- Identify plugins adding excessive database queries (use Query Monitor)
- Replace heavy plugins with lightweight alternatives
- Check for plugins loading assets on every page when only needed on specific pages
- Verify no plugin conflicts causing PHP errors
- Total plugin count under 25 for most sites
Object Caching
Redis Configuration
# Install Redis
sudo apt install redis-server
# Verify Redis is running
redis-cli ping
# Expected: PONG
# Install WordPress Redis plugin
wp plugin install redis-cache --activate
wp redis enable
wp redis status
Audit items:
- Redis or Memcached installed and connected
- Object cache hit ratio above 85 percent
- Redis
maxmemoryset appropriately (256MB-1GB depending on site size) maxmemory-policyset toallkeys-lru
Frontend Performance
Core Web Vitals
# Test with Lighthouse CLI
npx lighthouse https://example.com --only-categories=performance --output=json
# Key metrics to check:
# LCP (Largest Contentful Paint) < 2.5s
# FID (First Input Delay) < 100ms
# CLS (Cumulative Layout Shift) < 0.1
# INP (Interaction to Next Paint) < 200ms
Audit items:
- Images converted to WebP/AVIF with proper sizing
- Lazy loading on below-the-fold images
- Critical CSS inlined, non-critical CSS deferred
- JavaScript deferred or loaded async where possible
- No render-blocking resources in the head
- Font display set to
swapfor custom fonts - Preload LCP image and critical fonts
CDN Configuration
Audit items:
- CDN active for all static assets (images, CSS, JS, fonts)
- CDN caching headers properly configured
- Origin pull zones set up correctly
- CDN invalidation working for deployments
- Consider full-page CDN caching for logged-out visitors
Security-Performance Intersection
Several security measures also improve performance:
- Block bad bots at the server level (reduces unnecessary PHP execution)
- Use Cloudflare or AWS WAF to filter malicious traffic before it hits WordPress
- Disable XML-RPC if not needed (
add_filter('xmlrpc_enabled', '__return_false')) - Limit login attempts to prevent brute-force load
Monitoring After Optimization
Set up ongoing monitoring to catch performance regressions:
- Uptime monitoring with response time tracking
- Weekly Lighthouse CI runs against key pages
- Real User Monitoring (RUM) for actual visitor experience data
- Database slow query log enabled and reviewed monthly
Expected Results
A thorough performance audit and optimization typically achieves:
- TTFB under 200ms (from 800ms+ typical)
- LCP under 1.5s (from 3-4s typical)
- PageSpeed score above 90 (from 40-60 typical)
- Database query count under 30 per page (from 100+ typical)
For a hands-on performance audit and optimization of your WordPress installation, explore our WordPress optimization services. Regular audits ensure your site maintains peak performance as content and traffic grow.
Frequently asked questions
What OPcache settings should a WordPress server use?
A WordPress production php.ini can set opcache.enable=1, opcache.memory_consumption=256, opcache.interned_strings_buffer=16, opcache.max_accelerated_files=10000, opcache.revalidate_freq=60, opcache.save_comments=1 and opcache.enable_cli=0. Check that OPcache is on with php -i | grep opcache.enable, and run PHP 8.3 or 8.4 on supported production stacks. Keep max_execution_time at 30s and memory_limit at 256M unless a site really needs more.
How do I find what slows down a WordPress database?
Query information_schema.processlist for rows where time > 2 and command != 'Sleep', and list table sizes from information_schema.tables ordered by data_length. Autoloaded options in wp_options should total under 800KB, measured with SUM(LENGTH(option_value)) over the autoloaded rows, which since WordPress 6.6 carry autoload values yes, on, auto-on or auto. Query Monitor shows which plugins add excessive queries. Size the InnoDB buffer pool at 70-80 percent of available RAM, and keep the slow query log enabled with a monthly review.
Should I disable WP-Cron for better WordPress performance?
Yes. Define DISABLE_WP_CRON as true in wp-config.php and run php wp-cron.php from a system cron job every minute in the WordPress directory. The same file can cap revisions with WP_POST_REVISIONS set to 5, raise AUTOSAVE_INTERVAL to 120 and set DISALLOW_FILE_EDIT to true to switch off file editing in the admin.
How do I set up Redis object caching for WordPress?
Install Redis with sudo apt install redis-server and check that redis-cli ping answers PONG. Then run wp plugin install redis-cache --activate, wp redis enable and wp redis status, with WP_REDIS_HOST, WP_REDIS_PORT and WP_REDIS_DATABASE defined in wp-config.php. Aim for an object cache hit ratio above 85 percent, set maxmemory between 256MB and 1GB depending on site size, and use allkeys-lru as the maxmemory-policy.
How many plugins is too many for WordPress performance?
Most sites should keep their total plugin count under 25, and deactivated plugins should be removed entirely. Plugins are the most common source of WordPress performance issues. List them with wp plugin list --fields=name,status,update, profile their load time with wp profile hook --all --spotlight, and use Query Monitor to spot plugins that add excessive database queries. Watch for plugins loading assets on every page when they are needed only on specific pages.
What Core Web Vitals targets should a WordPress site meet?
Target LCP under 2.5s, CLS under 0.1 and INP under 200ms, and measure them with npx lighthouse against the site using --only-categories=performance --output=json. The frontend checks behind those numbers are WebP or AVIF images with proper sizing, lazy loading below the fold, inlined critical CSS, deferred or async JavaScript, font display set to swap for custom fonts, and preloading the LCP image and critical fonts.
How should nginx be configured for a fast WordPress site?
Enable HTTP/2 or HTTP/3, gzip or Brotli compression, and long caching headers on static assets, such as expires 365d with Cache-Control set to public, immutable for versioned files. Put an NGINX FastCGI cache or Varnish in front of WordPress. A FastCGI cache zone defined with keys_zone=WORDPRESS:100m and fastcgi_cache_valid 200 60m keeps successful responses for an hour, and add_header X-Cache-Status $upstream_cache_status exposes the cache status. Use TLS 1.3 as well.
What results can a WordPress performance optimization achieve?
Typical results after a thorough audit are TTFB under 200ms, down from 800ms or more, and LCP under 1.5s, down from 3-4s. PageSpeed scores rise above 90 from the usual 40-60, and database queries fall under 30 per page from over 100. Uptime checks with response time tracking, weekly Lighthouse CI runs, real user monitoring and a monthly slow query log review catch regressions afterwards.
Read how we handle it in DevOps for e-commerce.
Related Articles
WordPress vs Headless CMS: A DevOps Perspective on Performance
A performance-focused comparison of WordPress and headless CMS architectures from a DevOps perspective, covering TTFB, caching strategies, CDN integration, security surface, and scaling patterns.
WordPressWordPress to Headless CMS: Migration Playbook
Step-by-step migration guide from traditional WordPress to a headless architecture with WP REST API, Next.js frontend, and optimized hosting.
WordPressWordPress 6.8 "Cecil": What's New & How It Makes Your Site Better
A deep dive into WordPress 6.8 Cecil, covering speculative prefetch, bcrypt password hashing, BLAKE2b token encryption, editor improvements, classic theme style variations, and new developer APIs.