Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. The Cleanup Nobody Does
WordPress

The Cleanup Nobody Does

WordPress database maintenance: clearing revisions, expired transients and orphaned plugin data, checking autoloaded options and cleaning up safely.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

WordPress databases accumulate revisions, expired transients and orphaned data from removed plugins. On older sites this measurably slows the admin and sometimes the front end.

What accumulates

  1. Post revisions — every save, retained forever by default
  2. Transients — temporary data that is not always cleaned up
  3. Orphaned meta from plugins that were removed
  4. Spam comments, if comments are enabled
  5. Autoloaded options, loaded on every single page request

Autoloaded options are the important one

Every autoloaded option is read on every page load. A plugin storing large data as an autoloaded option slows every request on the site, invisibly.

Checking the total size of autoloaded options is a five-minute diagnostic that occasionally finds a dramatic problem.

Limit revisions

Unlimited revisions on a page edited weekly for three years is hundreds of rows nobody will ever look at.

Limiting to the last ten is sensible for most sites and takes one line of configuration.

Cleaning up safely

  • Back up before any database cleanup, without exception
  • Use an established tool rather than hand-written queries
  • Do it on staging first if the site is large
  • Do not delete data from plugins you still use

When it actually matters

SiteHow much this matters
New, few pluginsVery little
Five years old, many plugin changesConsiderably
Store with high order volumeSignificantly — order tables grow
High-traffic content siteModerately

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Will cleanup break anything?

Not if done with an established tool and a backup. Hand-written deletions without a backup are where things go wrong.

How often should we do it?

Annually for most sites. Quarterly for busy stores where order data accumulates quickly.

Does database size affect speed?

Size less than structure. Autoloaded options and unindexed queries matter far more than total size.

Should we use an optimisation plugin?

For cleanup, yes, run occasionally. Leaving one running constantly is unnecessary overhead.

Keep reading

More on WordPress

WordPress

Building WordPress Properly, Not Quickly

Building WordPress properly for a business that depends on its site: fewer plugins, a well-chosen theme, real content structure, speed and easy editing.

WordPress

Every Plugin Is a Decision You Live With

Plugin discipline in WordPress: five questions to ask before installing, auditing the plugins you have, which are worth keeping and removing unused ones.

Start here

Admin area getting slower every year?

Often the database. A five-minute check tells you whether that is it.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →