Overview tab
The Overview tab shows five summary cards:| Card | Description |
|---|---|
| Total Attachments | The number of attachment posts in the WordPress database. |
| Uploads Size | The total size of all files in the uploads directory. |
| Orphaned | Attachments whose physical file is missing from disk. |
| Unused | Attachments not referenced in post content and not set as featured images. |
| Duplicate Groups | Sets of files that share the same MD5 hash. |
Orphaned tab
An orphaned attachment has a record in the database but its physical file no longer exists on disk — for example, after a failed migration or manual file deletion. The Orphaned tab scans for these attachments and lists them with their title, MIME type, upload date, and attachment ID. Select one or more rows using the checkboxes (or the header checkbox to select all) and click Delete selected to permanently remove the attachment records viawp_delete_attachment.
Unused tab
An unused attachment is one that:- is not set as the featured image for any post, and
- has no filename reference in any published post’s content.
wp_delete_attachment.
The unused scan is based on filename matching in post content. Attachments referenced via shortcodes, blocks, or custom fields that store only the attachment ID rather than the file URL may still appear as unused. Review the list carefully before deleting.
Duplicates tab
The Duplicates tab groups attachments by MD5 hash. Each group shows:- The number of identical files.
- The total wasted disk space for the group.
- A partial MD5 hash for reference.
- Each file’s title, size, ID, and upload date with a thumbnail.
wp_delete_attachment on that specific attachment.
Compress tab
The Compress tab re-compresses existing JPEG and PNG attachments in place using WordPress’s built-inwp_get_image_editor. This reduces file size without changing the image format.
Quality slider
Adjust the Quality slider (range: 40–100, default: 82) before compressing. Lower values produce smaller files. The recommended range for JPEG is 75–85. PNG re-compression is always lossless regardless of the quality setting.Compressing files
The tab lists all JPEG and PNG attachments with their current size, a thumbnail, and a Compress button per row. Click Compress on a file to re-process it at the selected quality. After compression, the row shows:- Original size — size before compression.
- Result — new size after compression.
- Saved — bytes saved and percentage reduction.
Compression is applied to the original attachment file on disk. The change is permanent. Consider backing up your uploads directory before running bulk compression for the first time.
