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_files capability
- Manual actions are protected with nonces
- Input is sanitized and output is escaped
- File reads are restricted to uploads-based attachment paths