🔍 X-Ray Vision for WordPress
Site slow? Don’t know why? Query Monitor shows every database query, hook, HTTP request in real time.
Install: Plugins → Add New → Query Monitor → Free, 100K+ active installs
What It Shows
- ✅ Database Queries: Slow queries highlighted, execution time, duplicate queries
- ✅ PHP Errors: Notices, warnings, fatal errors with file/line number
- ✅ HTTP Requests: External API calls, their duration
- ✅ Hooks & Actions: Which functions run on each hook
- ✅ Enqueued Scripts/Styles: What’s loading, dependencies
- ✅ Template Files: Which template is being used
Finding Performance Issues
1. Load slow page 2. Click Query Monitor in admin bar 3. Go to 'Queries by Component' tab 4. Sort by time descending 5. Find slow query (>100ms highlighted red) 6. Click query to see full SQL and stack trace 7. Optimize that query!
🎯 Common Issues Found
- N+1 queries: Loop running query per item (use WP_Query properly)
- Uncached queries: Same query running multiple times
- Plugin conflicts: See which plugin queries are slow
- Missing indexes: Queries scanning entire table
“Found WooCommerce running 47 duplicate queries per page. Fixed with transient caching. Page load: 3.2s → 0.8s. Query Monitor paid for itself in 10 minutes.”
