Add audit tool to identify media attachments missing local original files
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by locating the Optimole admin settings code and the code that reads WordPress Media Library attachment metadata and local upload paths. Check how existing settings tools report results and whether they support exports. Done means a bulk scan identifies missing local originals, shows a summary and detailed list, and exports the missing paths or IDs.
Written by the indexing model from the issue text.
Description
Impact: 65 · Confidence: 90 · Complexity: 50
Description
Problem: When image offloading was enabled or plugins were disconnected, site owners who wish to restore local files or check media library health have no automated way to determine which Media Library entries are missing local physical files in /wp-content/uploads/.
Desired Behavior: Provide a bulk diagnostic check/audit tool in Optimole settings (or Media Library) that scans Media Library attachments, verifies local file existence on the server, and outputs a list/CSV of missing files to streamline targeted backup restoration.
Acceptance Criteria:
- A scanner tool in Optimole admin settings that checks attachment metadata against server disk paths.
- Displays a summary and detailed report of attachments whose local original files return 404 / file not found.
- Allows exporting the list of missing file paths/IDs to assist with selective manual or backup restoration.
Customer Context
The customer has offloaded images that were deleted from cloud storage after account expiration. They have standalone image backups but need a quick automated method to figure out which specific image files are missing locally so they don't have to check thousands of product images manually.
Root Cause Analysis
The customer needs to repair broken image paths on their site by restoring only the missing files from local backups. Optimole currently lacks any built-in diagnostic scan or missing-file inventory tool to check WordPress Media Library attachments against local physical disk availability. Site owners must manually inspect file paths or use third-party tools to identify missing originals.
Source: HelpScout #3344740257
Generated by feature-request-triage workflow (ID: feature-request-triage_6aee4e0852bbc5.14091123)
- Dominant language
- PHP
- Stars
- 74
- Forks
- 14
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 39
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Codeinwp/optimole-wp
-
customer report feature-request-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Codeinwp/optimole-wp#1239 ·
Maintainers usually reply within 1 day
-
Page profiler never stores above-the-fold background images: `b` is always sent with empty selector mapsPossibly taken @girishpanchal30 claimed this 9 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Codeinwp/optimole-wp#1216 · 1 assignee ·
Maintainers usually reply within 1 day
-
bug-report customer report
Difficulty 4/5 3-5 days Newbie friendliness 56/100
Codeinwp/optimole-wp#1211 ·
Maintainers usually reply within 1 day
-
customer report feature-request-triage
Difficulty 5/5 Over a week Newbie friendliness 35/100
Codeinwp/optimole-wp#1179 ·
Maintainers usually reply within 1 day
-
customer report feature-request-triage
Difficulty 4/5 3-5 days Newbie friendliness 54/100
Codeinwp/optimole-wp#1178 ·
Maintainers usually reply within 1 day
All issues in Codeinwp/optimole-wp
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
claude
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
sprain/sprainocchio#38 ·
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Перевод устарел
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day