WP Manifestindependent plugin directory
manifest / developer / wp-database-sanity-check

WP Database Sanity Check

Audits core WordPress database tables for orphaned rows, broken relationships and quietly wrong counts. Read only. No fixes. I am not your YOLO button. i do mean this..

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/tabarc-code/wp-database-sanity-check/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

TABARC-Code Icon

WP Database Sanity Check

WordPress does not enforce database integrity. It never has. This plugin exists to show me the consequences of that, calmly, without trying to fix everything automatically.

What it does

Adds: Tools DB Sanity Check It audits core tables and reports: Orphaned postmeta Attachments and revisions pointing at missing parents Orphaned commentmeta Comments attached to missing posts Broken taxonomy relationships Term count mismatches Exports JSON so I can review or hand it to someone else.

What it does not do

No deletion No repair No optimisation No magic It shows facts. I decide what to do next.

Notes

Cleaning database rows is destructive. Even when rows look unused, they might be referenced indirectly by plugins or custom code. Always back up. Prefer staging. Delete in small batches.

License

GPL-3.0-or-later. See LICENSE.