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 #292 among WordPress.org plugins with 100,000+ active installations, is #17 of 2,958 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.4
v2.0.1 Current Version v2.0.1
Updated 2 months ago Last Update on 24 Aug, 2026
Refreshed 18 hours ago Last Refreshed on
#17 of 2,958 in Discussion & Community Top 1% by installs Downloads -37.3% this week
View on WordPress.org
Rank
#292
— No change
Active Installs
100K+
-49.4%
KW Avg Position
17.6
0.2 worse
Downloads
2.3M
+88 today
Support Resolved
100%
— No change
Rating
94%
Review 4.7 out of 5
4.7 (138 reviews)

Next Milestone 200K

Total Progress 94.5%
100K+ 200K+
10
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 5,525 more installs to reach 200K+

Rank Changes

271 281 292 302 312 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
269 280 291 301 312 17-10-2026 18-10-2026 19-10-2026 20-10-2026 21-10-2026 22-10-2026 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
Current #292
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

0 200 400 600 800 1K 1.2K 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
0 500 1K 1.5K 2K 2.5K 17-10-2026 18-10-2026 19-10-2026 20-10-2026 21-10-2026 22-10-2026 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-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.