{"id":252189,"date":"2025-10-27T01:28:57","date_gmt":"2025-10-27T01:28:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/media-sweep\/"},"modified":"2026-01-30T17:02:04","modified_gmt":"2026-01-30T17:02:04","slug":"media-sweep","status":"publish","type":"plugin","link":"https:\/\/arq.wordpress.org\/plugins\/media-sweep\/","author":23328829,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.4","stable_tag":"1.0.4","tested":"6.9.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Media Sweep","header_author":"WPCreatix","header_description":"Clean up your WordPress Media Library by finding and removing unused files. Safely scan, preview, and sweep away orphaned media to keep your site fast and organized.","assets_banners_color":"6461bf","last_updated":"2026-01-30 17:02:04","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/wpcreatix.com\/","header_plugin_uri":"","header_author_uri":"https:\/\/wpcreatix.com\/","rating":3.3,"author_block_rating":0,"active_installs":500,"downloads":2897,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"wpcreatix","date":"2025-10-27 01:28:34"},"1.0.1":{"tag":"1.0.1","author":"wpcreatix","date":"2025-10-27 15:05:31"},"1.0.2":{"tag":"1.0.2","author":"wpcreatix","date":"2025-12-08 10:52:52"},"1.0.3":{"tag":"1.0.3","author":"wpcreatix","date":"2026-01-30 16:14:19"},"1.0.4":{"tag":"1.0.4","author":"wpcreatix","date":"2026-01-30 17:02:04"}},"upgrade_notice":{"1.0.0":"<p>Welcome to Media Sweep! This initial release provides everything you need to clean up your WordPress media library safely and efficiently. Start reclaiming server space today with our powerful dual-scan system and intelligent file detection.<\/p>"},"ratings":{"1":3,"2":0,"3":0,"4":0,"5":4},"assets_icons":{"icon-128-128.png":{"filename":"icon-128-128.png","revision":3384909,"resolution":"128x128","location":"assets","locale":""},"icon-256-256.png":{"filename":"icon-256-256.png","revision":3384909,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3384909,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3384909,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3384909,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3384909,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3384909,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3384909,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3384909,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3384909,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"<strong>Dashboard Overview<\/strong> \u2013 Clean, intuitive interface showing scan history and quick actions","2":"<strong>Scan Type Selection<\/strong> \u2013 Choose between Media Library and File System scans with detailed explanations","3":"<strong>Real-time Scan Progress<\/strong> \u2013 Watch your scan progress with detailed status updates and resource monitoring","4":"<strong>Scan Results<\/strong> \u2013 Comprehensive file listing with status, size, and usage information","5":"<strong>File Details<\/strong> \u2013 Detailed view showing where and how files are used across your site","6":"<strong>Trash Management<\/strong> \u2013 Safe file removal with easy restore capabilities"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3786,88,163,1980,84],"plugin_category":[50],"plugin_contributors":[245999],"plugin_business_model":[],"class_list":["post-252189","plugin","type-plugin","status-publish","hentry","plugin_tags-cleanup","plugin_tags-files","plugin_tags-images","plugin_tags-library","plugin_tags-media","plugin_category-media","plugin_contributors-wpcreatix","plugin_committers-wpcreatix","plugin_support_reps-amoha"],"banners":{"banner":"https:\/\/ps.w.org\/media-sweep\/assets\/banner-772x250.jpg?rev=3384909","banner_2x":"https:\/\/ps.w.org\/media-sweep\/assets\/banner-1544x500.jpg?rev=3384909","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/media-sweep\/assets\/icon-128-128.png?rev=3384909","icon_2x":"https:\/\/ps.w.org\/media-sweep\/assets\/icon-256-256.png?rev=3384909","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/media-sweep\/assets\/screenshot-1.png?rev=3384909","caption":"<strong>Dashboard Overview<\/strong> \u2013 Clean, intuitive interface showing scan history and quick actions"},{"src":"https:\/\/ps.w.org\/media-sweep\/assets\/screenshot-2.png?rev=3384909","caption":"<strong>Scan Type Selection<\/strong> \u2013 Choose between Media Library and File System scans with detailed explanations"},{"src":"https:\/\/ps.w.org\/media-sweep\/assets\/screenshot-3.png?rev=3384909","caption":"<strong>Real-time Scan Progress<\/strong> \u2013 Watch your scan progress with detailed status updates and resource monitoring"},{"src":"https:\/\/ps.w.org\/media-sweep\/assets\/screenshot-4.png?rev=3384909","caption":"<strong>Scan Results<\/strong> \u2013 Comprehensive file listing with status, size, and usage information"},{"src":"https:\/\/ps.w.org\/media-sweep\/assets\/screenshot-5.png?rev=3384909","caption":"<strong>File Details<\/strong> \u2013 Detailed view showing where and how files are used across your site"},{"src":"https:\/\/ps.w.org\/media-sweep\/assets\/screenshot-6.png?rev=3384909","caption":"<strong>Trash Management<\/strong> \u2013 Safe file removal with easy restore capabilities"}],"raw_content":"<!--section=description-->\n<p><strong>Media Sweep: The Ultimate WordPress Media Library Cleaner<\/strong><\/p>\n\n<p>Media Sweep is a powerful WordPress plugin designed to help you reclaim valuable server space by identifying and safely removing unused media files from your WordPress site. Whether you're dealing with orphaned attachments, forgotten uploads, or files left behind by themes and plugins, Media Sweep provides a comprehensive solution to keep your media library clean and organized.<\/p>\n\n<p>Perfect for bloggers, agencies, e-commerce sites, and any WordPress website looking to optimize storage space and improve site performance.<\/p>\n\n<p>\ud83d\ude80 <strong>Key Benefits:<\/strong><\/p>\n\n<p>\u2705 <strong>Reclaim Server Space<\/strong> \u2013 Remove unused files and free up valuable storage\n\u2705 <strong>Improve Site Performance<\/strong> \u2013 Faster backups and reduced server load\n\u2705 <strong>Safe &amp; Reversible<\/strong> \u2013 Files moved to trash folder, not permanently deleted\n\u2705 <strong>Smart Detection<\/strong> \u2013 Advanced algorithms identify truly unused files\n\u2705 <strong>Batch Operations<\/strong> \u2013 Process multiple files efficiently\n\u2705 <strong>Detailed Analytics<\/strong> \u2013 Comprehensive scan reports and file insights<\/p>\n\n<h3>\ud83c\udfaf Core Features<\/h3>\n\n<h3>\ud83d\udd0d Dual Scan Modes<\/h3>\n\n<p><strong>Media Library Scan<\/strong>\n* Scans all media attachments in your WordPress library\n* Checks for usage in posts, pages, and custom fields\n* Detects thumbnail and size variations\n* Identifies gallery shortcodes and blocks\n* Fast and efficient for large media libraries\n* <em>Recommended for most WordPress sites<\/em><\/p>\n\n<p><strong>File System Scan<\/strong>\n* Deep scan of your uploads directory\n* Finds orphaned files not in the media library\n* Detects cache and temporary files\n* Identifies theme and plugin generated files\n* Comprehensive but may take longer to complete\n* <em>Best for sites with file management plugins<\/em><\/p>\n\n<h3>\ud83d\udcca Smart File Detection<\/h3>\n\n<ul>\n<li><strong>Usage Analysis<\/strong> \u2013 Checks posts, pages, custom fields, and widgets<\/li>\n<li><strong>Database Scanning<\/strong> \u2013 Searches content for file references<\/li>\n<li><strong>Shortcode Detection<\/strong> \u2013 Identifies gallery and media shortcodes<\/li>\n<li><strong>Block Analysis<\/strong> \u2013 Scans Gutenberg blocks for media usage<\/li>\n<li><strong>Plugin Integration<\/strong> \u2013 Detects files used by popular plugins<\/li>\n<li><strong>Theme Assets<\/strong> \u2013 Identifies theme-related media files<\/li>\n<\/ul>\n\n<h3>\ud83d\uddc2\ufe0f Advanced File Management<\/h3>\n\n<ul>\n<li><strong>Status Classification<\/strong> \u2013 Files categorized as In Use, Unused, or Orphaned<\/li>\n<li><strong>Bulk Actions<\/strong> \u2013 Select and process multiple files at once<\/li>\n<li><strong>Smart Filtering<\/strong> \u2013 Filter by file type, status, date, and directory<\/li>\n<li><strong>Search Functionality<\/strong> \u2013 Quickly find specific files<\/li>\n<li><strong>Preview Mode<\/strong> \u2013 View files before taking action<\/li>\n<li><strong>Detailed File Info<\/strong> \u2013 Size, type, usage locations, and more<\/li>\n<\/ul>\n\n<h3>\ud83d\udee1\ufe0f Safety Features<\/h3>\n\n<ul>\n<li><strong>Trash System<\/strong> \u2013 Files moved to secure trash folder, not deleted<\/li>\n<li><strong>Restore Capability<\/strong> \u2013 Easily restore accidentally removed files<\/li>\n<li><strong>Backup Integration<\/strong> \u2013 Works with popular backup plugins<\/li>\n<li><strong>Progress Monitoring<\/strong> \u2013 Real-time scan progress with pause\/resume<\/li>\n<li><strong>System Resources<\/strong> \u2013 Intelligent resource management prevents timeouts<\/li>\n<li><strong>Rollback Protection<\/strong> \u2013 Safe operations with detailed logging<\/li>\n<\/ul>\n\n<h3>\ud83d\udcc8 Comprehensive Analytics<\/h3>\n\n<ul>\n<li><strong>Scan History<\/strong> \u2013 Track all previous scans and results<\/li>\n<li><strong>Storage Statistics<\/strong> \u2013 See exactly how much space you've reclaimed<\/li>\n<li><strong>File Breakdown<\/strong> \u2013 Detailed analysis by file type and status<\/li>\n<li><strong>Usage Patterns<\/strong> \u2013 Understand your media library usage<\/li>\n<li><strong>Performance Metrics<\/strong> \u2013 Scan duration and processing statistics<\/li>\n<\/ul>\n\n<h3>\ud83d\ude80 Easy 3-Step Process<\/h3>\n\n<p><strong>Step 1: Choose Scan Type<\/strong>\n* Select Media Library or File System scan based on your needs\n* Configure advanced options for thorough analysis<\/p>\n\n<p><strong>Step 2: Run the Scan<\/strong>\n* Watch real-time progress as Media Sweep analyzes your files\n* Pause and resume scans as needed without losing progress<\/p>\n\n<p><strong>Step 3: Review &amp; Clean<\/strong>\n* Browse detected files with detailed information\n* Use bulk actions to efficiently process multiple files\n* Restore files from trash if needed<\/p>\n\n<h3>\ud83d\udd27 Advanced Configuration<\/h3>\n\n<ul>\n<li><strong>Scan Options<\/strong> \u2013 Deep scan, thumbnail inclusion, custom field checking<\/li>\n<li><strong>File Type Filters<\/strong> \u2013 Focus on specific file types (images, documents, etc.)<\/li>\n<li><strong>Directory Exclusions<\/strong> \u2013 Skip specific folders during scans<\/li>\n<li><strong>Performance Settings<\/strong> \u2013 Adjust batch sizes and resource limits<\/li>\n<li><strong>Automation Rules<\/strong> \u2013 Set up automatic cleanup schedules (planned for future versions)<\/li>\n<\/ul>\n\n<h3>\ud83d\udca1 Perfect For<\/h3>\n\n<ul>\n<li><strong>Content Creators<\/strong> \u2013 Bloggers and publishers with large media libraries<\/li>\n<li><strong>Web Agencies<\/strong> \u2013 Managing multiple client sites efficiently<\/li>\n<li><strong>E-commerce Sites<\/strong> \u2013 Cleaning up product images and assets<\/li>\n<li><strong>Membership Sites<\/strong> \u2013 Optimizing user-generated content<\/li>\n<li><strong>Portfolio Sites<\/strong> \u2013 Managing large image collections<\/li>\n<li><strong>News Sites<\/strong> \u2013 Handling high-volume media uploads<\/li>\n<\/ul>\n\n<h3>Support<\/h3>\n\n<p>Need help with Media Sweep? We're here to assist!<\/p>\n\n<ul>\n<li><strong>Support Forum:<\/strong> <a href=\"https:\/\/wordpress.org\/support\/plugin\/media-sweep\/\">WordPress.org support forum<\/a><\/li>\n<li><strong>Feature Requests:<\/strong> <a href=\"https:\/\/wpcreatix.com\/contact\/\">Submit ideas and suggestions<\/a><\/li>\n<li><strong>Bug Reports:<\/strong> <a href=\"https:\/\/wpcreatix.com\/contact\/\">Report issues for quick resolution<\/a><\/li>\n<\/ul>\n\n<h3>Privacy<\/h3>\n\n<p>Media Sweep respects your privacy and does not collect or transmit any personal data. All file analysis and cleanup operations are performed locally on your server. No external services are contacted during plugin operation.<\/p>\n\n<h3>Credits<\/h3>\n\n<p>Media Sweep is crafted with \u2764\ufe0f by the <a href=\"https:\/\/wpcreatix.com\/\">WPCreatix<\/a> team. We're passionate about creating tools that help WordPress users optimize and maintain their websites efficiently.<\/p>\n\n<p>Special thanks to the WordPress community for their continuous feedback and support in making this plugin better.<\/p>\n\n<!--section=installation-->\n<p><strong>Automatic Installation (Recommended)<\/strong><\/p>\n\n<ol>\n<li>Go to Plugins &gt; Add New in your WordPress admin<\/li>\n<li>Search for \"Media Sweep\"<\/li>\n<li>Click \"Install Now\" and then \"Activate\"<\/li>\n<li>Navigate to Media Sweep in your admin menu to get started<\/li>\n<\/ol>\n\n<p><strong>Manual Installation<\/strong><\/p>\n\n<ol>\n<li>Download the plugin ZIP file<\/li>\n<li>Upload to <code>\/wp-content\/plugins\/media-sweep\/<\/code><\/li>\n<li>Activate through the Plugins menu in WordPress<\/li>\n<li>Access Media Sweep from your admin dashboard<\/li>\n<\/ol>\n\n<p><strong>Getting Started<\/strong><\/p>\n\n<ol>\n<li>Visit Media Sweep &gt; Dashboard<\/li>\n<li>Click \"Start New Scan\"<\/li>\n<li>Choose your scan type and options<\/li>\n<li>Let Media Sweep analyze your files<\/li>\n<li>Review results and clean up unused files<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"is%20it%20safe%20to%20delete%20files%20found%20by%20media%20sweep%3F\"><h3>Is it safe to delete files found by Media Sweep?<\/h3><\/dt>\n<dd><p>Yes! Media Sweep uses advanced detection algorithms and moves files to a secure trash folder rather than permanently deleting them. You can always restore files if needed.<\/p><\/dd>\n<dt id=\"what%27s%20the%20difference%20between%20media%20library%20and%20file%20system%20scans%3F\"><h3>What's the difference between Media Library and File System scans?<\/h3><\/dt>\n<dd><p>Media Library scans focus on WordPress attachments and are faster, while File System scans check all files in your uploads directory for a more comprehensive cleanup.<\/p><\/dd>\n<dt id=\"can%20i%20restore%20deleted%20files%3F\"><h3>Can I restore deleted files?<\/h3><\/dt>\n<dd><p>Absolutely! Files are moved to the Media Sweep trash folder and can be easily restored through the Trash section of the plugin.<\/p><\/dd>\n<dt id=\"will%20this%20work%20with%20page%20builders%20and%20plugins%3F\"><h3>Will this work with page builders and plugins?<\/h3><\/dt>\n<dd><p>Yes! Media Sweep includes detection for popular page builders, gallery plugins, and other media-related extensions.<\/p><\/dd>\n<dt id=\"how%20much%20server%20space%20can%20i%20expect%20to%20reclaim%3F\"><h3>How much server space can I expect to reclaim?<\/h3><\/dt>\n<dd><p>This varies greatly depending on your site, but users typically reclaim 10-50% of their media storage space, sometimes even more on older sites.<\/p><\/dd>\n<dt id=\"will%20this%20slow%20down%20my%20website%3F\"><h3>Will this slow down my website?<\/h3><\/dt>\n<dd><p>No, Media Sweep only runs when you initiate a scan and includes intelligent resource management to prevent server overload.<\/p><\/dd>\n<dt id=\"can%20i%20schedule%20automatic%20cleanups%3F\"><h3>Can I schedule automatic cleanups?<\/h3><\/dt>\n<dd><p>Currently, Media Sweep requires manual scan initiation. Automatic scheduling may be added in future versions.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Dynamic batch size based on server resources (max_execution_time and memory_limit)<\/li>\n<li>Smaller batches (20-30) for limited shared hosting, larger batches (50-100) for well-resourced servers<\/li>\n<li>Dynamic API request timeout scaled to server's max_execution_time (30s-300s)<\/li>\n<li>Improved user experience with smoother progress feedback during scans<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fixed scan getting stuck at \"0 \/ X files\" on hosting with limited server resources<\/li>\n<li>Improved pause\/resume mechanism to correctly maintain file count progress across interruptions<\/li>\n<li>Added API request timeout handling with automatic retry for slow servers<\/li>\n<li>Enhanced error display when scan encounters issues instead of silently failing<\/li>\n<li>Better resource management for servers with low max_execution_time or memory_limit<\/li>\n<li>Reduced batch size from 100 to 50 files for smoother progress updates and better user feedback<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Compatibility with WordPress 6.9<\/li>\n<li>Improved review notice banner with better user experience<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed file status not being reactivated when previously trashed\/deleted files are found again during new scans<\/li>\n<li>Improved file record management to automatically restore files that were moved back to original locations<\/li>\n<\/ul>\n\n<h4>1.0.0 - Initial Release<\/h4>\n\n<p><strong>\ud83c\udf89 Launch Features:<\/strong><\/p>\n\n<ul>\n<li><strong>Dual Scan Modes<\/strong> \u2013 Media Library and File System scanning capabilities<\/li>\n<li><strong>Smart Detection Engine<\/strong> \u2013 Advanced algorithms for accurate unused file identification<\/li>\n<li><strong>Safe Trash System<\/strong> \u2013 Secure file removal with restore capabilities<\/li>\n<li><strong>Comprehensive Analytics<\/strong> \u2013 Detailed scan reports and file insights<\/li>\n<li><strong>Bulk Operations<\/strong> \u2013 Efficient processing of multiple files<\/li>\n<li><strong>Real-time Progress<\/strong> \u2013 Live scan monitoring with pause\/resume functionality<\/li>\n<li><strong>Advanced Filtering<\/strong> \u2013 Filter by status, file type, date, and directory<\/li>\n<li><strong>Search Functionality<\/strong> \u2013 Quick file location and identification<\/li>\n<li><strong>Resource Management<\/strong> \u2013 Intelligent system monitoring prevents timeouts<\/li>\n<li><strong>Modern UI\/UX<\/strong> \u2013 Clean, responsive interface optimized for all devices<\/li>\n<li><strong>Translation Ready<\/strong> \u2013 Full internationalization support<\/li>\n<li><strong>Developer Friendly<\/strong> \u2013 Extensive hooks and filters for customization<\/li>\n<\/ul>\n\n<p><strong>\ud83d\udd27 Technical Highlights:<\/strong><\/p>\n\n<ul>\n<li>Built with modern React components and WordPress REST API<\/li>\n<li>Optimized database queries for large media libraries<\/li>\n<li>Memory-efficient processing with batch operations<\/li>\n<li>Compatible with popular caching and optimization plugins<\/li>\n<li>Follows WordPress coding standards and security best practices<\/li>\n<li>Extensive error handling and logging capabilities<\/li>\n<\/ul>\n\n<p><strong>\ud83d\udee1\ufe0f Security &amp; Performance:<\/strong><\/p>\n\n<ul>\n<li>Secure file operations with proper capability checks<\/li>\n<li>Nonce verification for all AJAX requests<\/li>\n<li>Sanitized input\/output throughout the application<\/li>\n<li>Optimized for sites with thousands of media files<\/li>\n<li>Minimal server resource usage during scans<\/li>\n<\/ul>","raw_excerpt":"Clean up your WordPress Media Library by finding and removing unused files. Safely scan, preview, and sweep away orphaned media to keep your site fast &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/252189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=252189"}],"author":[{"embeddable":true,"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpcreatix"}],"wp:attachment":[{"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=252189"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=252189"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=252189"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=252189"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=252189"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/arq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=252189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}