Media Insight
Scans featured images and ACF image/gallery fields for repeated media usage in WordPress content.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/yolol100/scan-duplicate-images/archive/refs/heads/main.zipDeclares an update source (false), so updates arrive through the plugin's own updater.
From the readme
Media Insight
Media Insight is an admin-only WordPress media audit plugin for finding repeated image usage in featured images and ACF image/gallery fields.
Scope
The scanner is intentionally read-only. It does not delete, replace, rewrite or optimize media files. It reports usage only.
Default scan scope:
- Pages: featured image.
- Pages: ACF image and gallery fields.
- Posts: featured image.
Architecture
The plugin uses a modular procedural WordPress architecture rather than OOP. The runtime is split by concern:
- media-insight.php bootstraps constants, hooks, assets and deactivation cleanup.
- includes/rest.php owns privileged REST routes for starting, polling, processing and cancelling scans.
- includes/workers.php owns browser-driven and WP-Cron background batch execution.
- includes/cache.php owns scan status, transients, chunked results, runtime-key registry and lock handling.
- includes/scanner/ owns scan arguments, cursor state, featured-image scanning, ACF scanning and finalization.
- includes/admin/export.php owns CSV export and CSV-injection protection.
- build/admin-app.js owns the WordPress admin UI.
Scan lifecycle
1. The admin app starts a scan through POST