Script Report

外掛說明

Script Report is a minimal and focused debugging tool for WordPress developers. It helps you audit and visualize JavaScript and CSS dependencies on any admin or frontend page.

When something loads out of order, loads twice, or slows down a page, Script Report helps you see exactly what is happening.

Use the Script Report link in the admin navbar on any page to open a complete breakdown of scripts and styles, their load order, dependencies, and origin.

Why Use Script Report?

Developers often ask:

Why is this script loading here
Who enqueued this style
Why is my dependency not working
Is something loading twice
What is affecting performance on this page

Script Report gives you clear answers instantly.

What You Can Inspect

JavaScript

View a complete breakdown of:

  • Registered scripts
  • Enqueued scripts
  • Total required scripts
  • Load order
  • File size
  • Footer or header loading
  • Inline scripts
  • Enqueued by source
  • Required by dependencies

CSS

Inspect styles with the same detailed structure:

  • Registered styles
  • Enqueued styles
  • Total required styles
  • Load order
  • File size
  • Dependency relationships
  • Enqueued by source
  • Required by dependencies

Script Modules WordPress 6.5+

Audit registered and enqueued script modules along with their dependency chains.

Views

Switch between two views:

List view
Clean, structured overview of all scripts and styles.

Tree view
Visual representation of dependency chains. Circular or missing dependencies are clearly flagged.

Filtering

Quickly filter by handle or source to narrow down large lists. Filtering works client side for fast inspection.

螢幕擷圖

  • Open the “Script Report” panel using admin navbar
  • List view showing scripts and styles with load order and metadata.
  • Tree view displaying dependency chains.
  • Script Report item in the top admin bar for quick access.

安裝方式

  1. Upload the plugin files to wp-content/plugins/script-report/, or install through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins screen.
  3. As an Administrator, click the “Script Report” link in the admin navbar on any page to view the report.

常見問題集

Who can see the report?

Users with the Administrator capability manage_options can open the report.

You may also enable access in development environments by defining:

define( 'SCRIPT_REPORT_DEBUG', true );

Do not enable this constant on production unless temporarily required.

Is it safe for production?

Yes. The report is only displayed to users who can manage_options, or when explicitly enabled using SCRIPT_REPORT_DEBUG.

No data is stored and nothing runs unless you open the report via the admin bar link.

Does this affect site performance?

No. Script Report only runs when you open it via the admin bar. Normal visitors and pages remain unaffected.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Script Report〉的開發相關工作。

參與者

將〈Script Report〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2.2 18-03-2026

  • Fix – Resolve fatal error caused by incorrect telemetry template and asset paths
  • Improvement – Use plugin constants for reliable path resolution

1.2.1

  • Fix – Resolve fatal error caused by incorrect telemetry template and asset paths
  • Improvement – Use plugin constants for reliable path resolution

1.2.0

  • New – Deactivation feedback survey to help improve the plugin
  • New – Improve plugin activation menu focus
  • Improvement – Isolated telemetry library to prevent conflicts with other plugins

1.1.0

  • New – Filter scripts and styles by plugin or theme — find exactly what they are loading

1.0.0

  • Initial release.