Skip to content

Add bounded admin asset audit - #238

Merged
mehul0810 merged 2 commits into
release/1.8.0from
feature/141-admin-asset-audit
Aug 11, 2026
Merged

Add bounded admin asset audit#238
mehul0810 merged 2 commits into
release/1.8.0from
feature/141-admin-asset-audit

Conversation

@mehul0810

Copy link
Copy Markdown
Collaborator

Closes #141.

Summary

  • adds an opt-in Admin Asset Audit with a dedicated read-only report tab
  • samples final WordPress admin script/style queues by stable screen ID
  • reports bounded handles, asset type, likely source, confidence, and repeated cross-screen presence
  • keeps collection per-site and limited to 30 screens, 100 assets per screen, and seven days
  • adds a protected clear action, documentation, responsive UI, unit tests, and hosted browser proof

Safety and privacy

  • no script or style is dequeued, deregistered, or modified
  • repeated presence is explicitly presented as a review signal, not proof an asset is unnecessary
  • no asset URLs, query strings, nonces, request data, or user data are stored
  • source attribution is high confidence only for recognizable WordPress core/plugin/theme paths and otherwise falls back to unknown
  • disabled mode registers no collection hooks

Validation

  • composer test — 133 tests, 415 assertions
  • composer lint — 84 PHP files
  • scoped PHPCS
  • composer phpstan
  • npm run test:unit — 34 tests
  • npm run lint
  • npm run build
  • git diff --check

Hosted Playwright proof covers opt-in sampling across representative admin screens, privacy and limitation copy, repeated-presence evidence, desktop/mobile layout, clearing, disablement, and lower-privilege denial.

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

WordPress Playground Preview

The changes in this pull request can previewed and tested using a WordPress Playground instance.

Open WordPress Playground Preview

@mehul0810
mehul0810 merged commit ef880ba into release/1.8.0 Aug 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant