⚡ Quick Fix
- Install WP-Optimize plugin
- Delete revisions, transients, and spam
- Optimize tables
Why Database Optimization?
Over time, junk accumulates in your WordPress database: hundreds of post revisions, expired transients, spam comments. This slows down every database query – and thus your website.
What Can Be Deleted?
- Post revisions – Old versions of your posts
- Auto-drafts – Automatically saved drafts
- Transients – Temporary data from plugins
- Spam & Trash – Deleted comments and posts
- Orphaned metadata – Leftovers from deleted plugins
Run Optimization
1
Install WP-Optimize
The best plugin for database optimization. Free and easy to use.
2
Limit Revisions
Add to wp-config.php:
define('WP_POST_REVISIONS', 3);
This limits revisions to 3 per post.
Keep It Clean Long-Term
- Enable automatic weekly cleanup
- Fully delete unused plugins (not just deactivate)
- Empty spam comments regularly