
OctoSize Media Scanner
v1.0.0gasmark8 · 2026年6月30日 上架
Find oversized images, large uploads, and heavy media in your WordPress media library.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 348
- 最近更新
- 2026年7月1日
需要 WordPress 6.1+已测试到 7.0.9PHP 8.0+
贡献者
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