WP-Sweep
by Lester Chan 4.7 (138 reviews)

WP-Sweep

WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It also optimizes your database tables.

WP-Sweep ranks #290 among WordPress.org plugins with 100,000+ active installations, is #17 of 2,877 in the Discussion & Community category, a 4.7/5 rating from 138 reviews, and was last updated Aug 24, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Compatible with WP 7.1
v2.0.1 Current Version v2.0.1
Updated 3 weeks ago Last Update on 24 Aug, 2026
Refreshed 11 hours ago Last Refreshed on
#17 of 2,877 in Discussion & Community Top 1% by installs Downloads -47.2% this week Actively maintained
View on WordPress.org
Rank
#290
No change
Active Installs
100K+
-49.7%
KW Avg Position
16.6
0.4 worse
Downloads
2.2M
+1,220 today
Support Resolved
100%
No change
Rating
94%
Review 4.7 out of 5
4.7 (138 reviews)

Next Milestone 200K

Total Progress 97.8%
100K+ 200K+
4
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 2,235 more installs to reach 200K+

Rank Changes

270 280 290 300 310 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
270 280 290 300 310 31-08-2026 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
Current #290
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

600 800 1K 1.2K 1.4K 1.6K 1.8K 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
500 1K 1.5K 2K 2.5K 3K 3.5K 31-08-2026 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

4.7
138 reviews
Overall 94%
5
125 (91%)
4
1 (1%)
3
1 (1%)
2
1 (1%)
1
10 (7%)

Support Threads Overview

Resolved
Unresolved
1
Total Threads
1
Resolved
0
Unresolved
100%
Resolution Rate

Security History

Source: WPVulnerability

No known vulnerabilities on record for WP-Sweep. Checked 1 week ago.

TL;DR

AI summary of the plugin's readme

WP-Sweep is for WordPress site administrators and developers who want to keep their database lean and tidy. It removes unused, orphaned, and duplicated data such as revisions, spam comments, and orphaned metadata, and optimizes database tables.

  • Deletes post revisions and auto-drafts
  • Removes spam and unapproved comments
  • Cleans orphaned post/comment/user/term meta
  • Removes duplicated meta entries
  • Deletes unused terms
  • Optimizes database tables
  • Clears expired transient options
  • REST API and WP-CLI support

Frequently Asked Questions

Common questions about WP-Sweep

Every row has a checkbox and the table has a Sweep bulk action, so ticking the header checkbox and applying it does what Sweep All did — and lets you leave out the ones you do not want. My snippet calling WPSweep::get_instance() stopped working The classes are renamed in 2.0.0: WPSweep is now WP_Sweep WPSweep_Api is now WP_Sweep_API WPSweep_Command is now WP_Sweep_Command So WPSweep::get_instance()->sweep( 'revisions' ) becomes WP_Sweep::get_instance()->sweep( 'revisions' ). There is no compatibility alias, so the old name raises a fatal error rather than failing quietly. Every filter and every wp_sweep_admin_*_sweep action keeps the name it had.
Four per-type filters take a list of meta keys that must never be deleted, and each supports * as a wildcard: add_filter( 'wp_sweep_postmeta_whitelist', function ( $keys ) { $keys[] = '_my_plugin_setting'; $keys[] = '_acme_*'; return $keys; } ); The same applies to wp_sweep_commentmeta_whitelist, wp_sweep_usermeta_whitelist and wp_sweep_termmeta_whitelist. Terms are protected with wp_sweep_excluded_termids, and taxonomies are kept out of the orphaned term relationships sweep with wp_sweep_excluded_taxonomies. In 2.0.0 these lists also protect the duplicated meta sweeps, which the documentation always said they did and the code never did. A key I protected was swept anyway, or far too much was kept Before 2.0.0 the exclusion was a SQL LIKE clause, and LIKE treats an underscore as a single-character wildcard. A pattern of _my_key therefore also matched Xmy!key, and a good deal else. Matching happens in PHP now, so an underscore is an underscore and only * is a wildcard. Check your list if you were relying on the old behaviour.
Nothing. WP-Sweep stores no option rows, creates no database tables, registers no capabilities and schedules no events. uninstall.php runs anyway and sweeps up after itself across a whole network rather than the first hundred sites.

More plugins by Lester Chan

Sign In / Register

You need to sign in or register to use this feature.