Add audit tool to identify media attachments missing local original files

未关闭
#1,231 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
php, wordpress
领域
backend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

customer report feature-request-triage

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)

主要语言
PHP
星标
74
派生
14
平均合并
1 天 20 小时
30 天内合并 PR
39

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Codeinwp/optimole-wp 的其他 Issue

查看 Codeinwp/optimole-wp 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。