Plugin/Compare
Suggest a plugin

Optimize Database after Deleting Revisions

Free one-click database optimiser that deletes revisions (keeping the newest if you like), trash, spam and transients, with scheduling and multisite support.

Database Optimization Verified 14 Oct 2026
Free installs60K+WordPress.org, active
Rating4.7/5181 reviews
Price fromFreeFree
Last updated21 May 2026Version 5.3.0

Overview

Optimize Database after Deleting Revisions is a long-running free plugin originally written by Rolf van Gelder of CAGE Web Design and adopted by the WordPress support company NerdPress in 2024. As the name suggests, it started as a revision cleaner that optimises tables afterwards, and it has grown into a simple all-in-one cleanup routine you configure once and then run with one click or on a schedule.

How it works

On the settings screen you tick what should be removed: revisions for posts, pages or custom post types, trashed posts and comments, spam comments, unused tags, expired or all transients, pingbacks and trackbacks, the oEmbed cache and orphaned post meta. Revision cleanup can keep a chosen number of recent revisions per item or only remove revisions older than a set number of days, and a keep_revisions custom field protects individual posts. After cleaning, the plugin runs table optimisation, with options to exclude specific tables and to include InnoDB tables, which are skipped by default.

An Analyze button reports what would be removed before you commit, and an optional log records each run with savings and can be exported to CSV. You can launch it from Tools, an admin bar link or an admin menu icon, schedule it hourly, twice daily, daily or weekly, or trigger it from a Unix crontab where WP-Cron is unreliable. On multisite it is network-activated and one run optimises every site.

Limitations

  • Unapproved comments, leftover plugin tables, options and Action Scheduler data are not covered.
  • No table repair, InnoDB conversion, autoload tools or WP-CLI commands.
  • Settings are all-or-nothing per run rather than item-by-item.
  • The last release (5.3.0) was in July 2025, so development is slow.

Who should pick it: bloggers and small sites that mainly want revisions and trash kept under control automatically, with minimal setup and no cost.

Best for: Small sites and blogs that want revisions and trash trimmed automatically with almost no setup.

This plugin does the basics well: it trims revisions while keeping recent ones, clears trash, spam and transients, and optimises tables on a schedule across a whole network. It does not dig into plugin leftovers or autoload bloat, so larger or WooCommerce sites will outgrow it.

Pros

  • Keeps the newest X revisions or those younger than X days
  • Built-in scheduler (hourly to weekly) plus Unix crontab option
  • Analyze mode reports what will be removed before running
  • Exclude tables, or protect posts with a keep_revisions field
  • One run optimises every site on a multisite network
  • Optional run log with CSV export

Cons

  • No cleanup for unapproved comments, leftover tables, options or Action Scheduler
  • No table repair, InnoDB conversion or autoload management
  • No WP-CLI commands
  • Infrequent updates; last release July 2025

Key features

What Optimize Database after Deleting Revisions highlights on its WordPress.org page and its own website, split by version.

Free version WordPress.org

  • Delete revisions for any post type
  • Keep newest X revisions per post
  • Delete revisions older than X days
  • Trashed posts, pages and comments
  • Spam comments and unused tags
  • Expired or all transients
  • Pingbacks, trackbacks and oEmbed cache
  • Orphaned post meta cleanup
  • Optimise tables with exclusions
  • Analyze report before running
  • Hourly to weekly scheduler
  • One-click admin bar link
  • Network-wide multisite runs
  • Run log with CSV export

Feature checklist

13 of 22 features we track in Database Optimization, feature score 53/100

Cleanup 5/8

Post revisions Key

Delete old post and page revisions.

Deletes revisions of posts, pages and/or custom post types.

SourceChecked 11 Oct 2026
Included

Auto-drafts & trashed posts

Remove auto-drafts and emptied trash.

Deletes trashed posts and pages; auto-drafts are removed as orphan post items.

SourceChecked 11 Oct 2026
Included

Spam & trashed comments

Delete spam, trashed and unapproved comments.

Removes spam and trashed comments plus pingbacks/trackbacks, but not unapproved comments.

SourceChecked 11 Oct 2026
Partial

Expired transients Key

Remove expired (or all) transients.

Optionally deletes expired transients or all transients.

SourceChecked 11 Oct 2026
Included

Orphaned & duplicate metadata Key

Remove post, comment, user and term meta with no parent.

Deletes orphaned post meta and orphaned term relationships only; no comment, user or term meta.

SourceChecked 11 Oct 2026
Partial

Leftover plugin tables Key

Find and delete tables left behind by removed plugins.

Does not detect tables left behind by removed plugins.

SourceChecked 11 Oct 2026
Not included

Leftover options & cron jobs

Find options and scheduled tasks left by removed plugins.

No detection of leftover options or cron events.

SourceChecked 11 Oct 2026
Not included

Action Scheduler logs

Clean WooCommerce Action Scheduler completed actions and logs.

No Action Scheduler cleanup.

SourceChecked 11 Oct 2026
Not included
Optimisation 2/5

Optimise tables Key

Run OPTIMIZE TABLE to reclaim space and defragment tables.

Optimises tables after cleanup; InnoDB tables included only if enabled.

SourceChecked 11 Oct 2026
Included

Repair tables

Repair corrupted or crashed tables.

No table repair function listed.

SourceChecked 11 Oct 2026
Not included

Autoloaded options control Key

See the size of autoloaded options and switch heavy ones off.

No autoload reporting or switches.

SourceChecked 11 Oct 2026
Not included

Convert to InnoDB

Convert MyISAM tables to InnoDB.

Can optimise InnoDB tables but does not convert MyISAM to InnoDB.

SourceChecked 11 Oct 2026
Not included

Limit future revisions

Cap how many revisions WordPress keeps from now on.

Each run keeps only the newest X revisions, but it does not change WordPress's own revision limit.

SourceChecked 11 Oct 2026
Partial
Automation & safety 4/5

Scheduled cleanup Key

Run cleanups automatically on a schedule.

Runs hourly, twice daily, daily or weekly, optionally at a set time; Unix crontab also supported.

SourceChecked 11 Oct 2026
Included

Preview before deleting

Shows counts or the exact items before anything is removed.

Analyze buttons give a summary or detailed report of what would be cleaned.

SourceChecked 11 Oct 2026
Included

Keep recent data

Keep the last X days or revisions when cleaning.

Keep the newest X revisions or delete only revisions older than X days.

SourceChecked 11 Oct 2026
Included

Backup before cleanup

Built-in or integrated backup before running a cleanup.

No backup feature; the plugin advises making backups first.

SourceChecked 11 Oct 2026
Not included

Exclusions

Exclude specific tables, options or items from cleanup.

Exclude specific tables from optimisation and protect posts with a keep_revisions field.

SourceChecked 11 Oct 2026
Included
Insights & admin 2/4

Database size report

Shows table sizes and how much space a cleanup will save.

Reports savings per run and in an exportable log, but no detailed table-size browser.

SourceChecked 11 Oct 2026
Partial

Identify table & option owners

Shows which plugin or theme created each table or option.

Does not show which plugin created tables or options.

SourceChecked 11 Oct 2026
Not included

Multisite support

Clean and optimise across a multisite network.

Network-activate and one run optimises every site in the network.

SourceChecked 11 Oct 2026
Included

WP-CLI

Run cleanups from the command line.

No WP-CLI commands; a PHP file can be called from the Unix crontab instead.

SourceChecked 11 Oct 2026
Not included

Pricing

Free

$0

On WordPress.org

Free

Freeper year

Unlimited

Entirely free on WordPress.org; no paid version.

Prices are list prices from the vendor's site, checked 14 Oct 2026. Many vendors discount the first year.

How many sites use Optimize Database after Deleting Revisions?

Free installs from WordPress.org, the vendor's own claim, and our estimate of paid installs.

Free version (WordPress.org) 60K+

Active installations reported by WordPress.org.

Vendor claim —

The vendor does not publish a total.

Estimated Pro / paid installs n/a

There is no paid version.

Stats & health

Weekly downloads

1,195 downloads last week, 4M all time

Rating breakdown

5 ★161
4 ★7
3 ★3
2 ★1
1 ★9
Version5.3.0
Last updated21 May 2026 (166 days ago)
Tested up toWordPress 7.0.8
RequiresWordPress 2.8+, PHP 5.6+
Support threads (2 months)0 of 0 resolved
On WordPress.org since23 Nov 2011

Optimize Database after Deleting Revisions compared

Alternatives to Optimize Database after Deleting Revisions

All alternatives →

Advanced Database Cleaner

100K+ ★ 4.9 $39/yr

Freemium WordPress database cleaner with previews, keep-last-X-days rules, scheduled tasks and table tools; Premium adds orphan detection.

89

WP-Optimize

1M+ ★ 4.8 $49/yr

Free all-in-one plugin from TeamUpdraft combining page caching, image compression with WebP, database cleanup and minification.

80

Database Cleaner

10K+ ★ 5.0 $39/yr

Meow Apps' database cleaner for large sites: core cleanup, table, option and cron browsers with ownership hints, and a Pro background sweeper.

79

LiteSpeed Cache

7M+ ★ 4.8 Free

Free server-level cache and optimisation suite from LiteSpeed Technologies; full-page caching needs a LiteSpeed web server or QUIC.cloud CDN.

44

WP Rocket

$59.95/yr

Premium all-in-one caching and performance plugin for WordPress that applies page caching, file optimisation and lazy loading as soon as it is…

38

WP-Sweep

100K+ ★ 4.7 Free

Free, settings-free database sweeper by Lester Chan that removes revisions, orphaned meta and junk using WordPress's own delete functions, with WP-CLI.

44

FAQ

Is Optimize Database after Deleting Revisions free?

Yes. Optimize Database after Deleting Revisions has a free version on WordPress.org.

How many sites use Optimize Database after Deleting Revisions?

WordPress.org reports 60K+ active installations of the free version.

Does Optimize Database after Deleting Revisions have post revisions?

Yes: included. Deletes revisions of posts, pages and/or custom post types.

Does Optimize Database after Deleting Revisions have expired transients?

Yes: included. Optionally deletes expired transients or all transients.

Does Optimize Database after Deleting Revisions have orphaned & duplicate metadata?

Yes: partial. Deletes orphaned post meta and orphaned term relationships only; no comment, user or term meta.

Does Optimize Database after Deleting Revisions have leftover plugin tables?

No: not included. Does not detect tables left behind by removed plugins.

Does Optimize Database after Deleting Revisions have optimise tables?

Yes: included. Optimises tables after cleanup; InnoDB tables included only if enabled.

Does Optimize Database after Deleting Revisions have autoloaded options control?

No: not included. No autoload reporting or switches.

Does Optimize Database after Deleting Revisions have scheduled cleanup?

Yes: included. Runs hourly, twice daily, daily or weekly, optionally at a set time; Unix crontab also supported.

Does it delete all revisions?

Only if you want it to. You can keep a set number of the most recent revisions per post, delete only revisions older than a number of days, or protect a post entirely with a custom field named keep_revisions set to Y.

Why does it say 'InnoDB table: skipped'?

InnoDB tables are skipped by default. Enable the option to optimise InnoDB tables too, but note that the reported size can go up slightly after optimising them.

Who maintains the plugin now?

NerdPress, a WordPress support company, adopted the plugin from its original author Rolf van Gelder (CAGE Web Design) in early 2024 and has since shipped security and compatibility fixes.

Can it run on a schedule?

Yes. It can run hourly, twice daily, daily or weekly at a chosen time (server time zone), or from a Unix crontab if WP-Cron is not available.

Last updated 11 Oct 2026. Spotted something wrong? Suggest an edit.