Optimize the WordPress database

Free · No license · No domain limit

Optimize the WordPress database and recover the speed you used to have

Your WordPress stores every revision, every expired cache, and every leftover from plugins you uninstalled years ago. None of that gets deleted on its own. EHERO Cleaner shows it, measures it, and cleans it in one click — and it’s free.

⬇️ Download free What can be deleted

Dashboard to optimize the WordPress database with EHERO Cleaner

Why the database grows on its own

A freshly installed WordPress site takes up just a few megabytes. The same site three years later can exceed a gigabyte without having published much at all. It’s not the content: it’s what accumulates around it.

Revisions

Every time you save a post, WordPress creates a full copy. An article edited twenty times means twenty copies of the entire text, indexed and taking up space. By default there is no limit: they are all saved, forever.

Expired transients

These are temporary caches that plugins store in the options table. They have an expiration date, but WordPress does not delete them when they expire: it just ignores them. A site with several active plugins accumulates thousands of dead rows that are read on every load.

Orphaned metadata

When you delete a post or product, its metadata should go with it. Often that doesn’t happen. And when you uninstall a plugin, almost none of them clean up what they left behind: their options, metadata, and tables remain there years later, pointing to content that no longer exists.

What WooCommerce adds

If you have a store, add expired customer sessions, download logs, the full Action Scheduler history —which in an active store can be hundreds of thousands of rows— and old order keys.

How to tell if it’s happening to you

You don’t need to be technical. These are the signs, from the most obvious to the most silent:

The EHERO Cleaner dashboard gives you the exact data as soon as you install it: the real database size and how many items there are of each type, before touching anything.

What can be deleted safely and what cannot

This is the important part, and the reason many people never clean up: the fear of breaking something. Let’s break it down.

✅ Safe, always

Expired transients, automatic drafts, comments marked as spam, posts already in the trash, and metadata pointing to non-existent content. None of this is part of your site: it’s either already discarded or already broken.

⚠️ Use judgment

All transients —the active ones will regenerate, but the first load will be a bit slower— and old revisions, where it’s better to decide how many to keep per post instead of deleting them all.

🚫 Never

Your published content, orders, customers, and active plugin data. EHERO Cleaner does not touch any of this: there is no tool that allows it, not even by mistake.

Each tool shows its risk level on the card itself, tells you how many items it will affect before running, and asks for confirmation for anything destructive. And the whole process is local: nothing is sent to any external server.

Advanced tools to optimize the WordPress database by filters
The advanced tools let you delete by filters, but always showing how many items there are first.

The tools, one by one

More than twenty-five, grouped by what they solve. All included, none reserved for a paid edition.

Cache and transients

Expired transients, all transients, and the oEmbed cache, which stores a copy of every embedded video or tweet.

Discarded content

Old revisions while keeping the ones you choose, automatic drafts, posts in the trash, and forgotten edit locks.

Comments

Spam, comments in the trash, and pingbacks and trackbacks, which on ninety percent of websites are pure noise.

Orphaned metadata

From posts, comments, terms, and users. Plus broken term relationships and duplicate metadata.

WooCommerce

Expired sessions, download logs, and the Action Scheduler history —completed, failed, canceled, and their logs— with HPOS compatibility.

Maintenance

Table optimization, user session tokens, feed cache, and the detector for leftovers from plugins you already uninstalled.

Scheduled cleaning: set it and forget it

Cleaning once is fine; the problem comes back in three months. That’s why scheduled cleaning is what really changes things: choose a frequency —twice a day, daily, or weekly— and mark which tools you want to run automatically.

The sensible thing is to schedule only the ones marked as safe and run the rest manually when needed. That way, maintenance becomes something that happens without anyone having to remember it.

Scheduled cleaning settings to optimize the WordPress database
Frequency, included tools, and how many revisions to keep per post.

How to install it

  1. From your WordPress

    Plugins → Add New → search for “EHERO Cleaner” → Install → Activate. This is the recommended way because updates arrive automatically.

  2. Look at the numbers before touching anything

    The dashboard tells you the database size and how many items there are of each type. Without running anything yet.

  3. Start with the safe ones

    Run all the tools marked as safe at once. That’s where most of the bulk is, and there’s no risk.

  4. Schedule maintenance

    Leave weekly cleaning enabled with the safe tools and forget about it.

Compatibility

It works the same on a site without a store: WooCommerce tools only appear if WooCommerce is active.

Frequently asked questions

Is it really free? What’s the catch?

There is no catch. It’s GPLv2, there is no license check, and it has all the features. We keep it because people who install it and find it useful end up seeing us as a trustworthy place to buy a paid plugin. That’s the whole model.

Can I lose content?

No, if you stick to what the tool marks as safe: that only touches data that is already discarded, already expired, or structurally broken. Even so, the golden rule with any database cleanup is to have a recent backup. Make one.

How much will I recover?

It depends on how old the site is and how many plugins you’ve tried. On three- or four-year-old sites with several installed and uninstalled plugins, it’s common to remove between 20% and 60% of the database size. The dashboard tells you before and after.

Is it useful if I don’t have a store?

Yes. Revisions, transients, and orphaned metadata are accumulated by any WordPress site. The WooCommerce tools simply won’t appear.

And if I uninstall a plugin, does it leave leftovers?

Most do, and that’s why the uninstalled plugin metadata detector exists: it shows you which metadata prefixes are still in your database, grouped by the plugin that created them, so you can decide.

How often should I clean?

Weekly for the safe items is more than enough. What makes no sense is cleaning manually every six months: the junk comes back, and between cleanups the site runs slowly.

If this helped, also check this out

Optimizing the WordPress database should not cost money

More than twenty-five tools, scheduled cleaning, and the plugin leftovers detector. No license, no domain limit, and no stripped-down version.

⬇️ Download free


Subscribe to our newsletter

Get exclusive deals and updates.

Get 10% OFF your first order!