Directory / plugin
OctoSize Media Scanner
v1.0.0 · by gasmark8
Find oversized images, large uploads, and heavy media in your WordPress media library.
About this plugin
OctoSize Media Scanner helps site owners find oversized images, large uploads, and other heavy media library files quickly.
Features:
- Adds Media > OctoSize Media Scanner in wp-admin
- Scans attachment file sizes from the uploads directory
- Sorts largest files first by default
- Supports sorting by size, title, type, or path
- Filters by minimum size in 5 MB increments
- Searches by filename, title, or MIME type
- Supports optional nightly WP-Cron scans
- Uses caching and a scan lock to reduce repeated heavy work
Performance notes:
- Attachment scanning runs in batches
- Results are cached to avoid repeated full scans
- Cache is invalidated when attachments are added, edited, or deleted
Security notes:
- The admin page is restricted to users with the
upload_filescapability - Manual actions are protected with nonces
- Input is sanitized and output is escaped
- File reads are restricted to uploads-based attachment paths