Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orphanix Media Cleanup Banner

WordPress Plugin Plugin Version Tested up to WordPress 6.9 PHP 7.4+ License Zero Telemetry


Orphanix Media Cleanup — Smart WordPress Media Library Optimizer

Orphanix Media Cleanup is an intelligent, high-performance media management and storage optimization plugin engineered for WordPress. It accurately detects unused, unattached, and orphaned media assets, locates broken media references (404 links) across your posts and pages, and safely reclaims valuable web hosting storage without risking critical site content.

Unlike simplistic cleanup tools that only check post attachment tables, Orphanix combines deep database introspection with live frontend output validation—safeguarding dynamically rendered assets used by visual page builders, widgets, menus, and theme templates.


🎯 Who Needs Orphanix Media Cleanup?

  • Content Creators & High-Volume Bloggers: Websites with years of revisions, draft deletions, and unused image variations bloating the /wp-content/uploads/ directory.
  • WooCommerce Store Owners: E-commerce stores with obsolete product galleries, replaced variant images, and orphaned thumbnails consuming expensive SSD hosting storage.
  • Web Agencies & Maintenance Professionals: Developers managing high-traffic client websites who need periodic audits, automated storage cleanup, and broken image detection.
  • Designers & Page Builder Users: Sites built using Elementor, Gutenberg blocks, or Advanced Custom Fields (ACF) where dynamic image references must never be accidentally deleted.

🌟 Key Benefits

  • Reclaim Hosting Disk Space: Instantly free up gigabytes of disk space by eliminating unreferenced media files and unneeded auto-generated thumbnails.
  • Eliminate Broken 404 Media: Discover missing image links and broken assets before they damage your user experience and SEO ranking.
  • Zero Accidental Deletions (Protected Live Scan): Advanced frontend simulation verifies whether media is loaded in active hero sections, sliders, or dynamic builders before flagging it.
  • Two-Step Safe Trash & Restore: Files are moved to an isolated plugin trash staging folder first. You can preview, verify, and restore any file with 1-click before final permanent deletion.
  • 100% Private & Server-Native: Zero external API calls, zero telemetry, zero data leaves your server.

🚀 Core Features

1. 🔍 Dual-Engine Media Scanning

  • Unused & Orphaned File Detection: Scans the physical /uploads/ directory against all recorded database references to detect abandoned images, videos, audio, and documents.
  • Unattached Asset Locator: Identifies media files uploaded directly to the media library that are not attached to any parent post or page.
  • Filter by File Type: Granular filtering across images (.jpg, .png, .webp, .svg, .gif), documents (.pdf, .docx), audio, and video files.

2. 🛠 Broken Media & 404 Detection

  • Missing Media Scanner: Checks all post content, excerpts, and pages for missing images or corrupt URLs.
  • SEO Health Protection: Identifies broken asset paths before search engine crawlers index 404 media errors.

3. 🌐 Advanced Live Site Scan

  • Frontend Rendering Verification: Validates rendered DOM elements to ensure dynamically loaded assets and background CSS images are recognized as active.
  • Builder-Level Compatibility: Deep detection for Elementor, Gutenberg, WooCommerce, ACF (Advanced Custom Fields), widgets, navigation menus, and active theme templates.

4. 🛡 Secure Two-Stage Trash System

  • Staged Deletion: Never directly unlinks files without safety barriers. Flagged assets are moved into a secure quarantine directory.
  • One-Click Instant Restore: Easily restore mistakenly flagged media back to its exact original uploads path.
  • Automatic Thumbnail Purge: On permanent deletion, cleanly deletes all thumbnail crops (150x150, 300x300, 1024x1024, custom sizes) to prevent residual clutter.

5. 📊 Storage Savings Analytics & Reporting

  • Interactive Dashboard: Visual reports illustrating reclaimed disk space, scan histories, categorized file distributions, and cleanup timelines.
  • Memory-Efficient Batch Engine: Optimized chunking algorithms that process tens of thousands of media records without memory exhaustion or server timeouts.
  • WP-CLI Support: Built-in command line interface support for automated server-side scheduled cleanups.

🖼 Screenshots

1. Dashboard Overview 2. Media Scan Wizard
Orphanix Dashboard Scan Wizard Step 1
3. Advanced Scan Configuration 4. Real-Time Scan Progress
Scan Configuration Live Progress Indicator
5. Detailed Scan Results 6. Broken Media Scanner
Scan Results Summary Broken Media Scan
7. Production Live Site Scan 8. Analytics & Storage Insights
Live Site Scan Analytics Dashboard

⚡ The 3-Step Cleanup Process

┌─────────────────┐       ┌─────────────────┐       ┌─────────────────┐
│   1. SCAN       │  ──>  │   2. REVIEW     │  ──>  │   3. CLEAN      │
│ Choose Media,   │       │ Inspect list,   │       │ Move to Trash,  │
│ Broken, or Live │       │ preview images, │       │ verify or       │
│ Site scan type. │       │ confirm usage.  │       │ 1-Click Restore.│
└─────────────────┘       └─────────────────┘       └─────────────────┘

⚙️ Technical Specifications & Compatibility

Specification Requirement / Details
WordPress Core Version 5.0 or higher (Tested up to 6.9)
PHP Version 7.4 or higher (Fully compatible with PHP 8.0, 8.1, 8.2, 8.3)
Builders Supported Gutenberg, Elementor, Divi, Beaver Builder, WPBakery
E-Commerce WooCommerce (Products, Variations, Downloadable files)
Custom Fields Advanced Custom Fields (ACF), Meta Box, Pods
WP-CLI Support Yes, full native CLI commands included
License GNU General Public License v2 or later (GPLv2)

📥 Installation

Method 1: Via WordPress Admin

  1. Open your WordPress dashboard and navigate to Plugins > Add New.
  2. In the search bar, type Orphanix Media Cleanup.
  3. Click Install Now and then Activate.
  4. Click on Orphanix in the admin sidebar to start your first cleanup scan.

Method 2: Manual Installation

  1. Download orphanix-media-cleanup.zip from WordPress.org or clone this repository:
    git clone https://github.com/limpu/Orphanix.git wp-content/plugins/orphanix-media-cleanup
  2. Activate Orphanix Media Cleanup from the Plugins menu.

🔒 Privacy & Data Sovereignty

Orphanix Media Cleanup is built with a strict Privacy-First architecture:

  • No External Communication: Operates 100% locally on your WordPress host.
  • No Telemetry or Tracking: Does not collect, transmit, or monetize site metrics or user data.
  • Admin-Restricted Access: All destructive operations require administrator capabilities (manage_options) and cryptographic nonce verification.

📄 License & Credits

Orphanix Media Cleanup is open-source software licensed under the GNU General Public License v2.0 or later.

Crafted with care by Atique Ullah (limpu).

About

Orphanix Media Cleanup helps you safely find and remove unused, orphaned, unattached, and broken media files from WordPress. Scan your media library, verify file usage, clean unnecessary files, and reclaim valuable storage while keeping your website organized and optimized.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages