WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by NerdPress v5.3.0

Optimize Database after Deleting Revisions

One-click database optimization with precise revision cleanup and flexible scheduling. Speeding up sites since 2011!

Optimize Database after Deleting Revisions

The facts

Rating
4.7★ from 181
Active installs
60k+
Price
Free
Last updated
21 May 2026
Added
Nov 2011
Requires WP
2.8
Tested up to
WP 7.0.4
Requires PHP
5.6
Downloads
3,994,093

Our analysis

AI-assisted

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

  • Deletes various unwanted database items
  • Flexible scheduling for automatic optimization
  • Multisite compatible for network-wide optimization
  • Creates logs of optimizations for tracking
  • User-friendly one-click optimization feature

Where it falls short

  • Limited information on user experience or support
  • No details on specific performance improvements

Verdict

This plugin offers a practical solution for database maintenance, particularly for those needing to manage multiple sites efficiently.

From the developer

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.

Main Features

  • Deletes revisions of posts, pages and / or custom post types (you optionally can keep an ‘x’-amount of the most recent revisions and you can choose to delete revisions older than…)
  • Deletes trashed posts, pages and comments (optional)
  • Deletes spammed comments (optional)
  • Deletes unused tags (optional)
  • Deletes ‘expired or all transients’ (optional)
  • Deletes ‘pingbacks’ and ‘trackbacks’ (optional)
  • Clears the ‘OEMBED cache’ (optional)
  • Deletes ‘orphan postmeta items’
  • Optimizes the database tables (optionally you can exclude certain tables, or even specific posts/pages, from optimization)
  • Creates a log of the optimizations (optional)
  • Optimization can be scheduled to automatically run once hourly, twice daily, once daily or once weekly at a specific time (optional)
  • ‘Optimize DB (1 click)’ link in the admin bar (optional)
  • ‘Optimize Database’ Icon in the admin menu (optional)
  • MULTISITE compatible: optimizes all sites in the network with one click

Settings

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)

Excluding specific posts/pages from deleting revisions

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’

Starting the Analysis / Optimization

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

Multisite Support

  • Install the plugin as Network Administrator (Network Admin » Plugins)
  • ‘Network Activate’ the plugin
  • You only can configure and run the plugin on the main network site, but it will optimize ALL the sub-sites too!

Running the plug in from a Unix crontab

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!

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for database maintenance.

Plugins Garbage Collector

Find and delete unused database tables belong to deactivated or deleted plugins directly from WP dashboard.

Free 10k+ installs 4.4★ (92)
Transient Cleaner

Clean expired transients from your options table. The original and best!

Free 1k+ installs 5★ (23)
Servebolt Optimizer

This plugin implements Servebolt&#039;s WordPress best practices, and connects your site to the Servebolt Admi...

Free 1k+ installs 5★ (5)
CodingBunny Database Cleaner

Keep your WordPress database fast and clean by removing orphaned data left behind by plugins, themes, and Word...

Free 100+ installs 5★ (2)
Enable Database Tools

Enables WP Database Tools. So you can optimize and repair InnoDB and MyISAM tables.

Free 50+ installs 4.6★ (5)
Time-based Revision Cleanup

Maximize WordPress efficiency with Time-based Revision Cleanup: manage post histories by age, not count, with...

Free 100+ installs 5★ (3)