Find and delete unused database tables belong to deactivated or deleted plugins directly from WP dashboard.
One-click database optimization with precise revision cleanup and flexible scheduling. Speeding up sites since 2011!
Optimize Database after Deleting Revisions is a WordPress plugin designed to clean and optimize your database. It allows you to delete revisions of posts, pages, and custom post types, as well as other unwanted database items like trashed posts and spam comments. The plugin offers flexible scheduling options for automatic optimization and provides detailed logs of actions taken.
This plugin is suitable for WordPress users looking to maintain their database performance, particularly those managing multiple sites through a multisite network. It provides a straightforward way to keep your database clean and efficient with minimal effort.
Best for: WordPress users who want to optimize their database, especially those managing multisite installations.
What it does well
Where it falls short
This plugin offers a practical solution for database maintenance, particularly for those needing to manage multiple sites efficiently.
NerdPress's own description of Optimize Database after Deleting Revisions, lightly tidied.
NerdPress has adopted Optimize Database After Deleting Revisions! Read the announcement here.
This plugin is a ‘One Click’ WordPress database cleaner & optimizer, with precise revision cleanup and flexible scheduling.
You can find the settings page in the WP Admin Panel » Optimize Database -or- via the WP Admin Panel » Optimize Database icon (depends on settings)
If you want to keep revisions for a specific post/page (no matter what the other settings are), create a custom field named ‘keep_revisions’ for that post/page and give it the value ‘Y’
You can start the Optimization in the WP Admin Panel » Optimize Database.
Note: if you use the Scheduler the Optimization will run automatically!
Note: you also can click the ‘Optimize DB (1 click)’ link in the admin bar (if enabled)
You can click one of the following buttons:
‘Analyze (summary): analyzes the database and gives the count of what will be cleaned
‘Analyze (detail): analyzes the database and gives a detailed report of what will be deleted
‘Optimize (summary): actually deletes the items and gives the count of what has been deleted
‘Optimize (detail): actually deletes the items and gives a detailed report of what has been deleted
In case you cannot use WPCron, but you can edit the Unix crontab:
Create a .php file, in the root directory of your site, with:
<?php
define(‘RUN_OPTIMIZE_DATABASE’, true);
require_once(‘wp-load.php’);
?>
Then, start the .php file from your crontab!
Other plugins for database maintenance.
Find and delete unused database tables belong to deactivated or deleted plugins directly from WP dashboard.
Clean expired transients from your options table. The original and best!
This plugin implements Servebolt's WordPress best practices, and connects your site to the Servebolt Admi...
Keep your WordPress database fast and clean by removing orphaned data left behind by plugins, themes, and Word...
Enables WP Database Tools. So you can optimize and repair InnoDB and MyISAM tables.
Maximize WordPress efficiency with Time-based Revision Cleanup: manage post histories by age, not count, with...