Remove various old, unused, or obsolete data from the WordPress website database and optimize the database for the best website performance.
SweepPress is an easy-to-use WordPress plugin built around 43 different Sweepers for database cleanup (the Pro version has 45), support for WP-CLI, and WP REST API to perform the cleanup operations. The plugin also features a powerful WordPress Options database table management panel.
The WordPress Options database table holds settings for WordPress Core, all the plugins, and themes. This table can grow significantly, especially since records are not auto-deleted when removing a plugin or theme. SweepPress has Sweepers that deal with transient cache records (stored in this table), and now, since version 3.0, it has a full Management panel where you can see all the records in the Options
table, detect source for the record and status to help you decide if you should delete the record or not.
SweepPress has two methods to detect the source of the record, and it will mark all the recognized records. This panel doesn’t show transient records (used for cache) or WordPress options (deleting these options is a terrible idea).
Options deletion process is not automatic! No matter how precise options usage detection is, you need to verify and confirm that you want to delete one or more records.
SweepPress Pro It also has advanced management panels for all the WordPress metadata and multisite Sitemeta database tables.
All sweepers use optimized SQL queries to find the data for removal, which is also done using SQL queries. This is the fastest and most efficient way to remove a large amount of data quickly.
The plugin registers new CLI commands for running sweep operations from the command line (WP-CLI is required). It also registers the REST API endpoint for the same purpose: running remote sweep operations (only for the administrator role!). CLI and REST API support can be enabled through plugin settings.
The plugin can clean up the ActionScheduler tables. These tables are used by the Action Schedule plugin and components developed for WooCommerce but also in many other WordPress plugins, including WP Rocket and Rank Math. For these sweepers to be visible, at least one plugin using those tables needs to be active.
The plugin will show the backup reminder notice by default (and it can be disabled) on every page. It is essential to understand that once the plugin deletes data, it can’t be restored. So, if you change your mind later, it is important to make the backup before the data removal. The sweepPress plugin is not responsible for any data loss — ensure backups!
SweepPress Lite edition, available on WordPress.org, is a fully functional plugin with no limits to its operations. But SweepPress Pro contains a lot of additional features not available in the Lite version:
postmeta
, termmeta
, commentmeta
, usermeta
and blogmeta
.Future updates will include more exclusive Pro features. Upgrade to SweepPress Pro.
sweeppress
.sweeppress
folder to the /wp-content/plugins/
directory.The plugin adds a top-level ‘SweepPress’ panel in the WordPress Admin menu.
SweepPress has a dedicated Options management panel where you can see all the non-WordPress options. The plugin will attempt to detect the source for each option and show its status to help you decide whether to delete some options in that table.
SweepPress Lite has a sweeper called Unhooked CRON Jobs
which can remove all the CRON jobs currently not attached to functions. SweepPress Pro also has a CRON Control panel where you can remove individual CRON jobs and review all the CRONs and get information about CRON source.
Storege
for detectionreadme.txt
fileStorege
for detectionTracker
and Scanner
objectOptions
and Sitemeta entriesOptions
Admin Bar
sweeppress_db
function_wp_old_*
data records