Study: 76.1% of table-creating WordPress plugins leave database tables behind on uninstall
Across 862 activated plugins from the top 1,000 WordPress.org listings executed on PHP 8.4.28 and WordPress 7.1.5 on December 5, 2026, 213 (24.7%) created custom SQL tables. After running WordPress's standard deactivate_plugins() and uninstall_plugin() workflow with default settings, 162 of 213 (76.1%) left custom tables behind, while only 49 dropped their tables automatically. Most do so intentionally to guard against accidental deletion.
Updated By THTheme Editorial Team
Key facts
- Sample: 1,000 top WordPress.org plugins executed in isolated WASM snapshots (862 activated cleanly)
- 213 plugins created custom tables (1,007 unique table names observed)
- 162 of 213 (76.1%) retained tables after default uninstall_plugin()
- 693 of 862 (80.4%) retained at least 1 wp_options row; 161 cleaned 100% of tables and options
- Important nuance: keeping data by default protects against accidental clicks, but creates long-term database bloat during plugin trials
| Plugin | Installs | Tables left | Orphan options | Orphan autoload | Sample tables |
|---|---|---|---|---|---|
| Booking for Appointments and Events Calendar | 90,000+ | 66 | 8 | 36.0 KB | wp_actionscheduler_actions, wp_actionscheduler_claims |
| MailPoet | 500,000+ | 44 | 7 | 1.1 KB | wp_actionscheduler_actions, wp_actionscheduler_claims |
| Appointment Booking Plugin - LatePoint | 100,000+ | 44 | 8 | 783 B | wp_latepoint_customer_otp_codes, wp_latepoint_recurrences |
| WooCommerce | 7M+ | 36 | 196 | 18.1 KB | wp_actionscheduler_actions, wp_actionscheduler_claims |
| Wordfence Security | 5M+ | 26 | 6 | 0 B | wp_wfls_2fa_secrets, wp_wfls_passkeys |
| Email Subscribers & Newsletters by Icegram Express - Email Marketing | 50,000+ | 25 | 66 | 336 B | wp_actionscheduler_actions, wp_actionscheduler_claims |
| Uncanny Automator - MCP Server + Automation | 40,000+ | 22 | 6 | 2.2 KB | wp_actionscheduler_actions, wp_actionscheduler_claims |
| FluentCRM | 80,000+ | 21 | 6 | 675 B | wp_actionscheduler_actions, wp_actionscheduler_claims |
| GiveWP | 100,000+ | 19 | 21 | 9.8 KB | wp_actionscheduler_actions, wp_actionscheduler_claims |
| Online Scheduling and Appointment Booking System - Bookly | 60,000+ | 19 | 207 | 2.5 KB | wp_bookly_staff, wp_bookly_categories |
| LearnPress - WordPress LMS Plugin to Create and Sell Online Courses | 60,000+ | 18 | 24 | 11.6 KB | wp_thim_cache, wp_learnpress_courses |
| Event Tickets and Registration | 90,000+ | 17 | 22 | 1.8 KB | wp_shepherd_tec_tasks, wp_shepherd_tec_task_logs |
| Real Cookie Banner: GDPR & ePrivacy Cookie Consent | 100,000+ | 16 | 301 | 12.3 KB | wp_rcb_stats, wp_rcb_stats_buttons_clicked |
| Visitor Traffic Real Time Statistics | 30,000+ | 16 | 8 | 46 B | ahc_search_engines, ahc_countries |
| Featured Image from URL (FIFU) | 60,000+ | 14 | 6 | 17 B | wp_fifu_invalid_media_su, wp_fifu_meta_in |
Visual breakdown: custom tables left behind by plugin
Every plugin was installed into an identical pristine WordPress 7.1.5 snapshot (50.1 KB baseline autoload, 12 core tables), activated, rendered on GET /, deactivated, and uninstalled via WordPress core's official uninstall_plugin() helper without changing plugin settings screens.
Largest orphan wp_options autoload footprints left behind
Unused database tables sit quietly on disk until queried, consuming backup storage. Orphaned autoloaded options are worse because WordPress loads every row flagged autoload = yes/on/auto into PHP memory on every single uncached request, long after the plugin is removed.
Plugins that dropped their own tables cleanly on default uninstall
The 49 plugins below created at least one custom database table during activation and dropped every single one automatically during default uninstall_plugin():
- LiteSpeed Cache (7M+ installs): created 2 table(s), left 0 behind
- All-In-One Security (AIOS) (1M+ installs): created 9 table(s), left 0 behind
- Duplicator (1M+ installs): created 3 table(s), left 0 behind
- Loginizer (1M+ installs): created 1 table(s), left 0 behind
- Security Optimizer (1M+ installs): created 2 table(s), left 0 behind
- WP-Optimize (1M+ installs): created 3 table(s), left 0 behind
- Kadence Security (700,000+ installs): created 14 table(s), left 0 behind
- Header Footer Code Manager (600,000+ installs): created 1 table(s), left 0 behind
- SiteGuard WP Plugin (600,000+ installs): created 2 table(s), left 0 behind
- Broken Link Checker (500,000+ installs): created 4 table(s), left 0 behind
- LightStart (400,000+ installs): created 1 table(s), left 0 behind
- 301 Redirects (300,000+ installs): created 1 table(s), left 0 behind
- Simple History - Track (300,000+ installs): created 2 table(s), left 0 behind
- Easy Updates Manager (300,000+ installs): created 1 table(s), left 0 behind
- Admin and Site Enhancements (ASE) (200,000+ installs): created 1 table(s), left 0 behind
- Activity Log - Monitor User and Agent Changes (200,000+ installs): created 1 table(s), left 0 behind
- CloudSecure WP Security (200,000+ installs): created 6 table(s), left 0 behind
- Smash Balloon Social Post Feed (100,000+ installs): created 4 table(s), left 0 behind
- Feeds for YouTube (YouTube video (100,000+ installs): created 3 table(s), left 0 behind
- IndexNow Plugin (100,000+ installs): created 3 table(s), left 0 behind
- Redirection (100,000+ installs): created 4 table(s), left 0 behind
- Relevanssi (100,000+ installs): created 3 table(s), left 0 behind
- Reviews Feed - Google Reviews (100,000+ installs): created 5 table(s), left 0 behind
- Statify (100,000+ installs): created 1 table(s), left 0 behind
- Vibe AI - MCP Server for WordPress (100,000+ installs): created 2 table(s), left 0 behind
Why major plugins keep data (and how to clean up safely)
- Intentional safety net: ecommerce, SEO, security and form plugins deliberately retain data on delete so a troubleshooting cycle does not wipe years of orders, schema metadata or leads. Most offer an opt-in checkbox (or
WC_REMOVE_ALL_DATAconstant for WooCommerce) when you genuinely want a full wipe. - The agency trial problem: testing 5 form builders, 3 SEO plugins and 4 cache plugins on a staging-turned-production site easily adds dozens of unused tables and hundreds of KB of permanent autoload rows.
- Identify mystery tables: paste your
SHOW TABLES;dump into our free WordPress Database Tables Lookup to verify ownership before touching anything. - Full dataset (CC BY 4.0): wp-runtime-plugins.csv · wp-database-tables.csv · Full Runtime Lab.
[Study: 76.1% of Table-Creating WordPress Plugins Leave Tables on Uninstall](https://ththeme.net/wordpress-plugin-uninstall-orphan-tables-study/) (THTheme, 2026-12-05, CC BY 4.0)FAQ
Does WordPress.org require plugins to delete their database tables on uninstall?
No. WordPress Plugin Handbook guidance recommends providing an uninstall.php file to remove unused data, but leaving data intact by default or gating removal behind an opt-in setting is widely permitted and common for user-generated content.
How can I tell if my live WordPress site has leftover autoload bloat?
Run wp option list --autoload=on --format=total_bytes via WP-CLI or open Tools > Site Health in WordPress 6.6+, which flags autoloaded options exceeding 800 KB.
How do I fully wipe WooCommerce tables when removing it permanently?
WooCommerce documents adding define( "WC_REMOVE_ALL_DATA", true ); to wp-config.php before deleting the plugin from wp-admin. Always take a database backup first.
Sources
- WordPress Plugin Handbook: Uninstall Methods
- WordPress Core: Options API Autoload Improvements
- WooCommerce Docs: Installing & Uninstalling WooCommerce
- Creative Commons Attribution 4.0 (CC BY 4.0)