| 开发者 | dagemawi409 |
|---|---|
| 更新时间 | 2026年9月9日 01:10 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp usageray audit to inspect the installed plugin stack or wp usageray inspect <plugin> for one plugin by slug or complete basename. List retained audits with wp usageray history list, compare previous with latest, or export a retained audit without rescanning content. Commands support concise tables and privacy-safe JSON or CSV output. Machine-readable formats include stable schema identifiers, automatically suppress interactive progress, and can use optional --fail-on policies for CI. Exit code 2 means a requested policy matched after successful output; operational failures remain exit code 1.
See UsageRay in action
Watch the short UsageRay overview:
https://www.youtube.com/watch?v=TWtoWhgtr2w
The video narration is AI-generated.
usageray directory to /wp-content/plugins/ or install the ZIP in WordPress.No. It reports evidence and uncertainty. It never claims that absence of visible usage makes deletion safe.
No. UsageRay is read-only.
No. Opening an individual or bulk Deactivation Preflight never changes plugin state. Only after an administrator explicitly confirms does UsageRay submit the reviewed action to WordPress's normal nonce-protected deactivation handler.
On the Installed Plugins screen, select the active plugins, choose “Review deactivation with UsageRay” from Bulk actions, and select Apply. UsageRay scans only that selection and presents a separate risk and evidence panel for every plugin.
Yes. You can cancel a manual site-wide audit or Deactivation Preflight while it is running. If the page reloads during an unfinished manual audit, UsageRay resumes it automatically. Manual progress expires after one hour. Temporary scheduled-audit progress may remain for up to two days so a low-traffic site can continue the bounded scan.
Yes, but only after an administrator explicitly enables Daily or Weekly scheduling in Tools > UsageRay. Scheduling uses WordPress cron, which runs when the site receives traffic, so times are approximate. It uses no external service, does not track the site, never changes plugin state or content, and can be turned off at any time.
Yes. Run wp usageray audit for a site-wide audit or wp usageray inspect plugin-slug for one installed plugin. A complete basename such as plugin-directory/plugin-file.php also works. Add --format=json or --format=csv for machine-readable output and --quiet to hide interactive progress. These commands do not deactivate plugins or change content.
UsageRay reuses a completed preflight for up to 10 minutes when you select Deactivate again for the same plugin. The result says when it was completed and provides a "Run a fresh preflight" link.
Generic option inspection reads option names only. For an attributable legacy widget option, WordPress must decode the option so UsageRay can identify its numeric instance keys. Widget setting values are immediately discarded and are never displayed, retained in results, or exported. Post metadata values are not retained or exported. The ACF adapter performs a database-side field-reference prefix comparison and returns only counts and content locations. For attributable custom tables, UsageRay checks the database catalog and runs COUNT(*) only. It never selects table rows or column values. Empty tables are reported separately from table identifiers that are not currently present.
It is an inactive plugin with attributable supported components, no detected visible usage, and no detected stored footprint. This narrows manual cleanup work; it is not a claim that deletion is safe.
CSV and JSON exports contain plugin status and version, cautious guidance, review decisions and notes, scan coverage and limitations, component names, evidence counts, matching content locations, and edit links. They do not contain post content, metadata values, option values, or filesystem paths. Theme-reference evidence contains only an attributed identifier, relative theme filename, child/parent role, line number, and an optional Theme File Editor link. Theme source text is never retained or exported. Scheduled-event evidence includes the hook name, recurrence, and next-run time. Event arguments are never included because they may contain private integration data.
It can find literal shortcode and custom post type registrations and block.json metadata in many inactive plugins. Runtime-only or dynamically registered components may require the plugin to be active.
Some plugins work entirely in the background or register components dynamically. WordPress does not maintain a universal ownership record for all plugin data.
--fail-on policies for CI and maintenance automation.--fail-on policies for audits, focused inspections, and retained-history comparisons.usageray_audit_completed hook plus CI and hosting-integration documentation.wp usageray history list with table, JSON, and CSV output.wp usageray compare <baseline> <current> output without rescanning content, including convenient previous and latest selectors.wp usageray export <audit> for privacy-safe retained audit snapshots in table, JSON, or CSV format.wp usageray audit and wp usageray inspect <plugin> commands with slug and complete-basename support.