Title: Script Surgery
Author: vexr
Published: <strong>2026 年 6 月 3 日</strong>
Last modified: 2026 年 6 月 3 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/script-surgery.svg)

# Script Surgery

 作者：[vexr](https://profiles.wordpress.org/vexr/)

[下载](https://downloads.wordpress.org/plugin/script-surgery.zip)

 * [详情](https://cn.wordpress.org/plugins/script-surgery/#description)
 * [评价](https://cn.wordpress.org/plugins/script-surgery/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/script-surgery/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/script-surgery/#developers)

 [支持](https://wordpress.org/support/plugin/script-surgery/)

## 描述

**Script Surgery** gives you a visual, actionable view of every script and style
loaded on your WordPress site — broken down by page type (homepage, single post,
product, cart, etc.).

#### What it does

**Visual asset inventory**
 See every enqueued script and style on each page type:
the handle, which plugin or theme added it, file size, whether it loads in `<head
>` (render-blocking) or footer, and async/defer status.

**Source attribution**
 Each asset is attributed to: WordPress Core, a plugin (by
name), your theme, or an external CDN. No guesswork.

**Per-page-type disable rules**
 Disable any script or style on specific page types
with one click. Elementor scripts loading on your checkout page? Slider scripts 
loading on cart? Disable them — no code required.

**Render-blocking detection**
 Scripts loading in `<head>` without async or defer
are flagged as render-blocking. Styles are flagged similarly. Fix the highest-impact
issues first.

**Bulk actions**
 “Only on this page” — disable a script everywhere except the current
page type in one click. Reset individual or all rules at once.

#### How data is collected

Data is captured automatically when a logged-in administrator visits any frontend
page. No cron jobs, no external requests. The WordPress admin bar shows a ⚗ indicator
on each page type so you know what’s been captured.

#### Privacy

Script Surgery only runs for logged-in administrators. No data is sent externally.
All data is stored in your own database (transients + one options entry).

## 安装

 1. Upload the `script-surgery` folder to `/wp-content/plugins/`
 2. Activate through the ‘Plugins’ menu in WordPress
 3. Visit your site’s frontend pages as a logged-in admin — data is captured automatically
 4. Go to **Script Surgery** in the WordPress admin menu

## 评价

此插件暂无评价。

## 贡献者及开发者

「Script Surgery」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ vexr ](https://profiles.wordpress.org/vexr/)

[帮助将「Script Surgery」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/script-surgery)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/script-surgery/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/script-surgery/)，或通过[RSS](https://plugins.trac.wordpress.org/log/script-surgery/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/script-surgery/)。

## 更新日志

#### 0.1.0

 * Initial release. Script/style capture, source attribution, size detection, render-
   blocking flagging, per-page-type disable rules.

## 额外信息

 *  版本 **0.2.0**
 *  最后更新：**3 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/script-surgery/)
 * 标签
 * [core web vitals](https://cn.wordpress.org/plugins/tags/core-web-vitals/)[optimization](https://cn.wordpress.org/plugins/tags/optimization/)
   [Page Speed](https://cn.wordpress.org/plugins/tags/page-speed/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [scripts](https://cn.wordpress.org/plugins/tags/scripts/)
 *  [高级视图](https://cn.wordpress.org/plugins/script-surgery/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/script-surgery/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/script-surgery/reviews/)

## 贡献者

 *   [ vexr ](https://profiles.wordpress.org/vexr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/script-surgery/)