WP-Sweep

WP-Sweep

WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It also optimizes your database tables.
Rating:
4.7
star-rating-1star-rating-2star-rating-3star-rating-4star-rating-5
Active Installations:
100000+
Last Updated:
Nov 16, 2024
WordPress Version:
4.6 or higher
Tested up to:
6.7.2

Efficient Database Cleanup

This plugin cleans up various unnecessary data from your database, such as revisions, auto drafts, deleted comments, unused terms, and more. It uses proper WordPress delete functions for safer and more efficient cleanup.

This plugin cleans up various types of data such as revisions, auto drafts, deleted comments, unapproved comments, spammed comments, orphaned post meta, orphaned comment meta, orphaned user meta, orphaned term meta, orphan term relationships, unused terms, duplicated post meta, duplicated comment meta, duplicated user meta, duplicated term meta, transient options, and oEmbed caches in post meta. It uses proper WordPress delete functions instead of direct MySQL queries for a safer and more efficient cleanup process.

Easy and Quick Sweeping

With WP-Sweep, you can easily sweep your database using WordPress REST API endpoints or WP-CLI commands. Get the number and details of items to be swept, and run sweep for specific items or all items in just a few clicks or commands.

Optimize Database Performance

WP-Sweep not only cleans up unwanted data, but also optimizes your database tables. This helps improve the performance and speed of your website by reducing the size and improving the efficiency of your database.

1.1.8

  • FIXED: Added current_user_can() Check For AJAX Calls

1.1.7

  • FIXED: Pass in default blank string to fix fatal error

1.1.6

  • NEW: Re-org wp-sweep.php to inc/class-wpsweep.php
  • NEW: Bump to WordPress 6.2

1.1.5

  • NEW: Bump to WordPress 5.8

1.1.4

  • FIXED: Replaced %_transient_% with %\_transient\_%. Escape _ in MySQL if not it is being used as a wildcard character. Props @janrenn.

1.1.3

  • FIXED: Changed permissions check to activate_plugins because update_plugins will return false when DISALLOW_FILE_MODS=true.

1.1.2

  • NEW: Changed permission check to update_plugins for better MultiSite compatibility.
  • NEW: Bump min PHP version to 5.6.

1.1.1

  • NEW: wp_sweep_excluded_termids filter.

1.1.0

  • NEW: Added WP Rest API Endpoint support, sweep/v1/count/<Name>, sweep/v1/details/<Name>, and sweep/v1/sweep/<Name>
  • FIXED: Follow as close as possible to WordPress Coding Standards

1.0.12

  • NEW: Bump to WordPress 4.9
  • NEW: Update README to incompatible plugins

1.0.10

  • FIXED: Invalid plugin head ‘This plugin has an invalid header.’

1.0.9

  • NEW: Support for Codeclimate
  • FIXES: Uses get_sites() on WordPress 4.6. This should fix deprecated notices.
  • FIXES: Fixes translation placeholder count. Props @pedro-mendonca.
  • FIXES: Use manage_options capability as it conflicts with Admin Menu Editor on multisite installs. Props @EusebiuOprinoiu.

1.0.8

  • NEW: Added wp_sweep_excluded_taxonomies filter to allow more than just link_category taxonomy
  • NEW: Support for WP-CLI wp sweep

1.0.7

  • FIXES: Use custom query to delete Orphaned Term Relationship if wp_remove_object_terms() fails

1.0.6

  • NEW: Delete ‘languages’ folder from the plugin
  • NEW: Use translate.wordpress.org to translate the plugin
  • FIXED: Works only with WordPress 4.4 because of new term meta

1.0.5

  • FIXED: apply_filters() wrong arguments

1.0.4

  • NEW: oEmbed caches in post meta Sweep
  • NEW: Add POT file for translators

1.0.3

  • NEW: AJAX Sweep All
  • NEW: AJAX Sweeping
  • NEW: View details of sweep
  • NEW: Optimize DB sweep
  • NEW: User hint and confirmation. Props @SiamKreative
  • FIXED: Division by zero. Pros @barisunver

1.0.2

  • FIXED: Use term_id for wp_remove_object_terms()
  • FIXED: number_format_i18n() issues after sweeping

1.0.1

  • NEW: Moved plugin location to WP-Admin -> Tools -> Sweep
  • NEW: Add Deleted Post Sweep
  • FIXED: Use forced_delete for wp_delete_post() and wp_delete_comment();
  • FIXED: If orphaned meta has an object id of 0, use SQL query to delete

1.0.0

  • Initial release

great plugin

By fuu0 on January 22, 2025

great and simple plugin, no licence shit - it just works, thanks!

Easy to understand and use.

By nealumphred on November 30, 2024

Easy to understand and use. Keeps your database in order.

Keep on keepin' on ...

Auch ein wichtiges PlugIn

By mehralsheidi on August 3, 2024

Muss man haben, denn Ordnung macht (oder sollte) man ja auch daheim (machen) :-)

Recuperé casi 400 megas en archivos sin usar!

By davidcasas on July 25, 2024

Mil gracias.

быстрая и качественная очистка базы данных

By gincz on June 5, 2024

быстрая и качественная очистка базы данных

Great plugin

By Chris Lovie-Tyler (chrislt) on April 19, 2024

I used to use this, when I previously had a blog, and I've come back to it. Thanks for making it!

super

By Christian (sugarchrist) on March 28, 2024

great plugin, it's working well!

loved it

By Moheimen (razmi) on March 18, 2024

it saved me tons of time and cleaned the database which was causing wp-admin part slowing down and showing server error, after it cleared junk, the site runs smoothly

Great plugin

By daro2013 on January 23, 2024

This plugin has reduced a space of about 100MB in my DB. Thanks

Really appreciate this app

By Sydney (sydneywiseideas) on October 19, 2023

Sometimes I am a file hoarder and I really appreciate this plugin because I can clear space pretty quickly where it would take a really long time to do it on my own (I had like 6,000 files which is a lot). I also appreciate that it is free, as soon as I used this app my website got much faster. I always make sure to backup my website before doing it just in case, because sometimes stuff happens.

Try other plugins too!

WPSSO Core – The Complete Structured Data Plugin: Schema Markup, SEO and Social Meta Tags, Snippets, Feeds, Sitemaps, Breadcrumbs

Present your content at its best for social sites and search results – no matter how URLs are shared, reshared, messaged, posted, embedded, or crawled …

Try Demo More Details

WP EXtra

Optimize your site instantly with one-click activation. WP Extra offers easy fixes and features for WordPress.

Try Demo More Details

Image Optimizer for Google Lighthouse

Upload a JSON file generated by Google's Lighthouse website auditing tool and this plugin will compress and replace all flagged images using the …

Try Demo More Details
Screenshots
Author Site Author Site

Try WP-Sweep With InstaWP

Contact Sales

Reach out to us to explore how InstaWP can benefit your business.