WPDBSpringClean Plugin

Unused Database Table Deletion

This handy plugin will delete all of those unused WordPress database tables which have been left behind from uninstalled plugins. Don’t worry about deleting the wrong tables because WPDBSpringClean will NOT delete any core WordPress tables or tables which are associated with an installed plugin (whether it is ACTIVE or INACTIVE).

Database Table Optimization

Due to regular insertions and deletions in the various DB tables on your system, these tables can quite often hold allocated but unused space. Consequently this can make your DB tables inefficient, fragmented and unoptimized. This plugin will identify unoptimized tables and will allow you to optimize them by deleting the allocated unused space within a particular table. The plugin also optionally allows you to specify search criteria such as the minimum amount of overhead per table and minimum unused space for a table.

By default if no search criteria is specified, the plugin will identify all tables which have an overhead of greater than 10%. (Note: “Overhead” in this plugin is defined as (Data_free/Data_length) expressed as a percentage and where Data_free and Data_length are MySQL table parameters.

“Unused Space” is defined by the value of the MySQL parameter: Data_free)

So why not give your WordPress DB a spring clean today!

Attention Multi-Site users: Currently WPDBSpringClean is only supported for single site WordPress installations. Support for multi-site is definitely on our to-do list so please stay tuned.

 

Installing WPDBSpringClean

  1. FTP the WPDBSpringClean folder to the /wp-content/plugins/ directory, OR, alternatively, upload the WPDBSpringClean.zip file from the Plugins->Add New page in the WordPress administration panel.
  2. Activate the WPDBSpringClean plugin through the ‘Plugins’ menu in the WordPress administration panel.

Using the WPDBSpringClean Plugin

1. Finding and Deleting Unused DB Tables

After you’ve installed and activated the WPDBSpringClean plugin, go to the Settings menu and choose WPDBSpringClean as shown below:

You will then be taken to the WPDBSpringClean admin page which looks like the following: To start a search for any remaining unused tables from plugins which were uninstalled, click on the “Perform Search” button.

After searching your WordPress system, the WPDBSpringClean plugin will display any results as shown below (click on image for larger view):

To delete a single table, simply click on the “Delete” link. Or alternatively to bulk delete tables, select the entries you wish to delete by using the checkboxes and then select the “Delete” entry in the “Bulk Actions” drop down box and click the “Apply” button.

NOTE: If you are unsure about deleting any DB tables, it recommended that users of this plugin should take a backup of their DB before using it.

2. Optimizing DB Tables

To find unoptimized tables which you can then optimize do the following:

Click on the DB Table Optimize tab.

Then enter the optional search criteria and click the Perform Search button. This plugin gives you the option of specifying the minimum overhead per table you wish to search for and also the amount of unused space.

If you choose to not specify any search criteria the plugin will default to:

Minimum Overhead = 10%

Minimum Unused Space = any

If you have any unoptimized tables based on the search criteria the tables will be displayed as shown in the image below (click on image for larger view):

Select the tables you wish to optimize and then click the “Optimize” button.

12 thoughts on “WPDBSpringClean Plugin

  1. Hello, I am using digishop wordpress plugin and the plugin WPDBspringclean show wp_digishop_products is NOT using, and is wrong, and I using digishop then the table is active!!

    Thanks for support

    • Hi Jose,
      Thanks for the invaluable feedback.
      I’ll take a look at it and see if can figure out what’s going on.
      Thanks,
      peter

      • ok, thanks, in the past I am using Garbabe Collector plugin for clean tables, but working very bad, I like me WPDBSpringClean thanks for your support and good work (and free :)

  2. Hi there

    Every time I run your plugin I get a fatal error:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 84743802 bytes) in /home/XXXXXXXXX/public_html/wp-content/plugins/wpdbspringclean/grepSearch.php on line 14

    Can you please advise why this would happen?

    • Hi Andre,
      Which hosting provider are you using to host your wordpress site? Some of the cheaper providers may have memory problems.
      How many plugins have you got on your wordpress system – both active and inactive?

    • Hi there,
      There is a major difference.
      The plugin you mention deals only with the wp_options table (which is a core wordpress table) that some plugins use to store various configuration and other information.
      The WPDBSpringClean plugin identifies and enables deletion of “custom” tables which are separate from the core WordPress tables.
      Many thanks,
      Peter

      • thanks, so basically your plugin is a very nice edition to the other one I mentioned. together one could clean up quite a bit :-)

        btw. I am willing to run tests on a multisite installation that has been active since 2005 so I have a lot to clean up, in case you have some beta versions ;-)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>