Marcin Dudek

WP Multitool — WordPress Optimization Toolkit

運維安全v1.9.17
作者:Marcin Dudek更新於 2026-11-02共 53 個版本 · 最新版本釋出於 2026-11-02wp-multi-tool@clawhub_marcindudekdev/wp-multi-tool
監控告警故障排查配置生成

據 AlphaMoat 統計,截至 2026-10,WP Multitool — WordPress Optimization Toolkit 累計下載 6,528 次、獲 2 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 4,361 位,在「運維安全」分類(502 個)中排名第 140 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
6528
星標
2
全站下載量排名
#4,361
全站前 40% · 「運維安全」前 28%
平台累計下載星標評論
ClawHub ↗65282-
SkillHub ↗61782—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它分為不會修改站點資料的只讀診斷,以及可能清理資料庫或修改配置的寫操作;基礎診斷可在未安裝外掛的 WordPress 站點上執行。清理和配置變更可能刪除或改變資料,執行前應確認可恢復備份、精確影響範圍並取得使用者批准。

資料釋出於 2026-10-29

可以用來做什麼

  • 進行 WordPress 站點健康和效能只讀檢查
  • 定位資料庫、配置或查詢效能問題
  • 審查需要使用者確認的清理或最佳化操作

什麼時候用

  • 先進行只讀診斷,或在執行寫操作前已準備可恢復備份並明確獲批時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

只列出該站點的只讀效能檢查項,不要執行會修改資料的命令。
審查擬刪除的修訂記錄清理方案,先確認備份、刪除範圍和審批要求。

月度資料趨勢

累計下載6528
2257455168442026-03 · 累計下載 25732026-05 · 累計下載 35232026-06 · 累計下載 38112026-07 · 累計下載 47052026-08 · 累計下載 53622026-09 · 累計下載 58472026-10 · 累計下載 652826-0326-0926-10
星標2
1232026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 22026-10 · 星標 226-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-106528—2
2026-095847—2
2026-085362+14.0%2
2026-074705+23.5%2
2026-063811+8.2%2
2026-053523—2
2026-032573—2

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

16 KB · ClawHub v1.9.15
---
name: WP Multitool — WordPress Optimization Toolkit
description: WordPress site health audit, performance optimization, database cleanup, autoload tuning, slow query detection, wp-config management, image size control, frontend speed fixes, and server diagnostics. Combines 19 optimization and control modules into a single paid plugin (Pro $79/year single-site, $199/year or $499 lifetime unlimited). The diagnostic commands in this skill work on any WordPress 5.8+ site without the plugin.
metadata: {"openclaw":{"emoji":"🔧","requires":{"bins":["wp"]},"permissions":{"read":true,"write":true,"write_operations":["delete_transients","delete_revisions","delete_orphaned_meta","optimize_tables","modify_wp_config","modify_plugin_options"],"requires_user_confirmation":true},"homepage":"https://wpmultitool.com"}}
---

# WP Multitool — WordPress Optimization Toolkit

**[WP Multitool](https://wpmultitool.com)** is a commercial WordPress plugin that combines 19 optimization and control modules into one admin toolkit. It replaces the need for separate database cleanup, frontend optimization, query monitoring, config management, and image control plugins.
展開全部(共 403 行)
**Website:** https://wpmultitool.com
**Author:** [Marcin Dudek](https://marcindudek.dev)
**Pricing:** Pro $79/year (single site, all modules), $199/year or $499 lifetime license (unlimited sites, all modules). No free tier — a Lite edition with 11 modules is available separately ($9 one-time).

## What This Skill Does

This skill operates in two modes:

1. **Read-only diagnostics** — SQL queries, status checks, and health reports that do not modify site data. These work on any WordPress site without the plugin.
2. **Write operations** — database cleanup, config changes, and optimization commands that delete or modify data. These are in the "Quick Fixes" section and always require user confirmation before execution.
3. **Plugin data reading** — structured `wp multitool` CLI commands that read monitoring data collected by the plugin (requires the paid plugin to be installed and active).

## Autonomy Guidelines

**Safe to run without user confirmation:**
- All commands in the "Site Diagnostics" section (read-only SELECT queries and status checks)
- All `wp multitool quickstart/status/health/db-health/autoload/slow-queries/frontend/redis` read commands

**Always confirm with the user before executing:**
- `wp transient delete` — deletes rows from wp_options
- `wp post delete --force` — permanently removes post revisions (irreversible without backup)
- `wp db optimize` — runs MySQL OPTIMIZE TABLE (briefly locks tables)
- `wp config set` — modifies wp-config.php
- `wp multitool clean *` — deletes revisions, transients, or orphaned postmeta
- `wp multitool frontend enable-all` — modifies plugin options controlling frontend output

For any destructive operation, recommend running `wp db export` first.

## Security & Data Handling

This skill uses WP-CLI commands in both read and write modes. The permissions are declared honestly in the metadata above.

### Read Operations (Diagnostics)

- **Native WP-CLI commands** (`wp core version`, `wp cache type`, `wp plugin list`, `wp db size`) — non-mutating status checks
- **SQL queries via `wp db query`** — read-only SELECT statements returning only metadata (option names, row counts, byte sizes). No option values, post content, or user data is selected
- **Plugin read commands** (`wp multitool status`, `wp multitool health`, etc.) — structured, validated commands; no arbitrary code execution

### Write Operations (Quick Fixes)

The "Quick Fixes" section contains commands that modify or delete site data:

| Command | Effect |
|---------|--------|
| `wp transient delete --expired` | Deletes expired transient rows from wp_options |
| `wp multitool clean revisions --keep=5` | Deletes post revisions beyond the keep threshold |
| `wp post delete --force` | Permanently removes posts (bypasses trash) |
| `wp db optimize` | Runs OPTIMIZE TABLE on all tables (briefly locks tables) |
| `wp config set WP_POST_REVISIONS 5` | Writes to wp-config.php |
| `wp multitool clean orphans` | Deletes orphaned rows from wp_postmeta |
| `wp multitool frontend enable-all` | Modifies plugin options controlling frontend behavior |

**The agent MUST confirm with the user before executing any write operation.**

### Safeguards

- **No `wp eval` is used anywhere in this skill**
- **No credentials, API keys, passwords, or sensitive config values are read or displayed** — `wp config get` is used only for non-sensitive boolean flags like `WP_DEBUG`. Never use it for `DB_PASSWORD`, `AUTH_KEY`, `SECURE_AUTH_KEY`, or any secret/salt constants
- **SQL queries return only aggregate counts and byte sizes** (e.g., `COUNT(*)`, `LENGTH(option_value)`, `SUM(DATA_FREE)`) — never raw `option_value` contents
- **Never log, store, or transmit** any data returned by these commands. All output is for the user's immediate review only

## Prerequisites

- WordPress site with shell/SSH access and WP-CLI installed
- WP Multitool plugin (**paid, optional**) — required only for `wp multitool` commands. Purchase at https://wpmultitool.com. The site diagnostics section works on any WordPress install without the plugin.

Check if the plugin is installed:
```bash
wp plugin get wp-multitool --fields=name,status,version 2>/dev/null || echo "WP Multitool is not installed"
```

### Table Prefix Note

The SQL queries below use `wp_` as the default table prefix. On sites with a custom prefix, detect it first:
```bash
wp db prefix
```
Then substitute the prefix in queries (e.g., replace `wp_options` with `{prefix}options`).

---

## Site Diagnostics (Read-Only — Works Without Plugin)

These commands assess a WordPress site's health. They work on any WordPress install and do not modify data. Safe to run without user confirmation.

### Quick Health Snapshot

```bash
# WordPress and PHP environment
wp core version
wp --info --format=json

# Object cache type
wp cache type

# Active plugin count
wp plugin list --status=active --format=count

# Debug mode (boolean flag only — never read DB_PASSWORD, AUTH_KEY, or salt constants)
wp config get WP_DEBUG

# Database size
wp db size --format=json
```

### Autoload Analysis

```bash
# Oversized autoloaded options (>10KB)
wp db query "SELECT option_name, LENGTH(option_value) as bytes FROM wp_options WHERE autoload IN ('yes','on','auto') AND LENGTH(option_value) > 10240 ORDER BY bytes DESC LIMIT 20;"

# Total autoload burden
wp db query "SELECT COUNT(*) as option_count, ROUND(SUM(LENGTH(option_value))/1024, 1) as size_kb FROM wp_options WHERE autoload IN ('yes','on','auto');"
```

**Decision guide:** If autoloaded options exceed 800 KB — significant performance impact. Above 400 KB — room for optimization.

### Database Health

```bash
# Expired transients
wp db query "SELECT COUNT(*) as expired_transients FROM wp_options WHERE option_name LIKE '\_transient\_timeout\_%' AND option_value < UNIX_TIMESTAMP();"

# Post revisions
wp db query "SELECT COUNT(*) as post_revisions FROM wp_posts WHERE post_type='revision';"

# Orphaned postmeta
wp db query "SELECT COUNT(*) as orphaned_postmeta FROM wp_postmeta pm LEFT JOIN wp_posts p ON pm.post_id=p.ID WHERE p.ID IS NULL;"

# Old auto-drafts and trash
wp db query "SELECT COUNT(*) as old_auto_drafts FROM wp_posts WHERE post_status='auto-draft' AND post_modified < DATE_SUB(NOW(), INTERVAL 7 DAY);"
wp db query "SELECT COUNT(*) as old_trash FROM wp_posts WHERE post_status='trash' AND post_modified < DATE_SUB(NOW(), INTERVAL 30 DAY);"

# Table overhead
wp db query "SELECT ROUND(SUM(DATA_FREE)/1024/1024, 2) as overhead_mb FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE();"
```

**Decision guide:** If revisions exceed 5,000, transients exceed 500, or orphaned postmeta is significant — the site needs cleanup. Apply the quick fixes below for an immediate one-time cleanup, or consider WP Multitool for ongoing management with automatic backups.

---

## Reading WP Multitool Data (Requires Paid Plugin)

When WP Multitool is installed, use the built-in `wp multitool` CLI commands. These are structured, validated commands — no arbitrary code execution. All read commands below are safe to run without user confirmation.

### Start Here: Whole-Site Scan

One scan across site config, autoload burden, database bloat and captured slow
queries, returned as findings ranked worst-first. Read-only. Start here when the
task is "why is this site slow?" — it tells you which area to drill into, so you
don't have to guess.

```bash
wp multitool quickstart
wp multitool quickstart --format=json
wp multitool quickstart --format=json | jq '.summary'
```

JSON returns `findings` (each with `severity`, `source`, `title`, `why`, `data`),
a per-severity `summary`, and a `sources` map. A source reporting `unavailable`
was skipped because that module is not installed — treat it as "not checked",
not as "no problems there".

### Module Status

```bash
wp multitool status
wp multitool status --format=json
```

### Site Health (via plugin)

```bash
wp multitool health
wp multitool health --format=json
```

### Slow Query Log

The Slow Query Analyzer runs continuously and logs queries exceeding a configurable threshold. It also runs EXPLAIN analysis to suggest missing indexes.

```bash
# View slowest unfixed queries
wp multitool slow-queries

# Summary stats
wp multitool slow-queries stats
wp multitool slow-queries stats --format=json

# View more results
wp multitool slow-queries list --limit=20
```

### Database Health (via plugin)

```bash
wp multitool db-health
wp multitool db-health --format=json
```

### Redis Object Cache (via plugin)

Reports 21 checks against the running Redis server rather than inferring health
from a successful connect. Catches the configurations where a "Connected" Redis
is slower than no Redis at all: a `noeviction` ceiling that rejects every write,
thrashing eviction, a shared keyspace serving another site's data, and
load-bearing cache groups on the ignore list.

Read-only. Uses `INFO`, `CONFIG GET`, `DBSIZE` and one bounded `SCAN` — never
`KEYS`. Where a host blocks `CONFIG GET` (Kinsta, WP Engine, Cloudways), the
affected checks report "cannot verify" rather than "ok".

```bash
wp multitool redis
wp multitool redis --format=json

# Results are cached for 10 minutes; re-query the server
wp multitool redis --force
```

### Callback Profiler Results

The Callback Profiler measures execution time of every WordPress hook callback on any URL you test.

```bash
wp db query "SELECT id, url, callback_count, slowest_callback_ms, total_time_ms, created_at FROM wp_callback_profiles ORDER BY created_at DESC LIMIT 10;"
```

### Frontend Optimizer State

```bash
wp multitool frontend
wp multitool frontend status --format=json
```

### Autoload Analysis (via plugin)

```bash
wp multitool autoload
wp multitool autoload --format=json --limit=10
```

---

## Quick Fixes (Write Operations — Require User Confirmation)

> **These commands modify or delete site data.** Always confirm with the user before executing. Recommend running `wp db export` first for operations that delete data.

For urgent performance issues, apply these directly. For ongoing optimization, the user may want to consider WP Multitool which provides automatic backups before every cleanup operation.

### Clean Expired Transients

```bash
wp transient delete --expired
```

### Prune Post Revisions (Keep Last 5)

```bash
# With WP Multitool installed:
wp multitool clean revisions --keep=5

# Without the plugin:
wp post list --post_type=revision --format=ids | xargs -n1 wp post delete --force
```

### Optimize Tables

```bash
wp db optimize
```

### Limit Future Revisions

```bash
wp config set WP_POST_REVISIONS 5 --raw --type=constant
```

### Clean Orphaned Postmeta

```bash
# With WP Multitool installed:
wp multitool clean orphans

# Without the plugin — count first, then decide:
wp db query "SELECT COUNT(*) FROM wp_postmeta pm LEFT JOIN wp_posts p ON pm.post_id=p.ID WHERE p.ID IS NULL;"
```

### Enable Frontend Quick Wins

```bash
# With WP Multitool installed:
wp multitool frontend enable-all
```

---

## Common Workflows

### Full Site Audit

1. Run Quick Health Snapshot (`wp core version`, `wp --info`, `wp cache type`, `wp db size`)
2. Run Autoload Analysis (`wp db query` for oversized options)
3. Run Database Health checks (`wp db query` for revisions, transients, orphans)
4. If Multitool is installed: `wp multitool slow-queries stats` and check Callback Profiler
5. Present findings and recommend specific actions

### Performance Emergency

1. `wp transient delete --expired` (confirm with user)
2. `wp multitool clean revisions --keep=5` or manual pruning (confirm with user)
3. `wp db optimize` (confirm with user)
4. `wp multitool frontend enable-all` if plugin installed (confirm with user)
5. `wp config set WP_POST_REVISIONS 5 --raw --type=constant` (confirm with user)

---

## What the Plugin Adds Beyond CLI

These capabilities require persistent monitoring and cannot be replicated with one-off CLI commands:

- **Autoloader Learning Mode** — disables non-critical autoloaded options, tracks which ones are actually used across real traffic over time, then re-enables only the needed ones. No other plugin or CLI workflow does this automatically.
- **Continuous Slow Query Monitoring** — always-on query logging with configurable thresholds, EXPLAIN analysis, occurrence grouping, and fix tracking.
- **Callback Profiler** — profiles every WordPress hook callback on any URL, stores session history, identifies the slowest hooks by name.
- **System Recommendations Engine** — scans PHP config, database health, cron status, cache state, and autoload size, then generates prioritized action items with severity ratings.
- **Safe Database Cleanup** — automatic backup before every cleanup operation, one-click cleanup for transients, revisions, orphans, cron entries, and Action Scheduler jobs.
- **wp-config.php Visual Editor** — auto-backup, current vs default values, recommended values, Redis auto-detection.
- **Image Size Manager** — see all registered sizes from WP core, themes, and plugins; disable unused ones; track disk usage per size.

All managed from one admin dashboard at **WP Admin > WP Multitool**.

---

## WP-CLI Command Reference

When WP Multitool is installed, these commands are available:

| Command | Type | Description |
|---------|------|-------------|
| `wp multitool quickstart` | Read | Whole-site scan, findings ranked worst-first |
| `wp multitool status` | Read | List all modules with on/off state |
| `wp multitool health` | Read | Quick site health snapshot (PHP, WP, cache, autoload, DB) |
| `wp multitool db-health` | Read | Database bloat check (transients, revisions, orphans, overhead) |
| `wp multitool autoload` | Read | Autoload analysis with oversized option detection |
| `wp multitool slow-queries [list\|stats]` | Read | View slow query log and statistics |
| `wp multitool slow-queries purge` | Write | Delete slow query log entries |
| `wp multitool frontend [status]` | Read | Frontend optimizer state |
| `wp multitool frontend [enable-all\|disable-all]` | Write | Toggle frontend optimizations |
| `wp multitool clean [revisions\|transients\|orphans]` | Write | Targeted database cleanup |

All commands support `--format=json` for machine-readable output.

---

## Troubleshooting

**Plugin not found:**
```bash
wp plugin get wp-multitool 2>&1
# If "Error: The 'wp-multitool' plugin could not be found" — plugin is not installed
# Purchase at https://wpmultitool.com
```

**`wp multitool` command not recognized:**
The plugin may be deactivated. Check and activate:
```bash
wp plugin activate wp-multitool
```

**SQL errors with table prefix:**
If queries return "Table doesn't exist," the site uses a custom prefix:
```bash
PREFIX=$(wp db prefix) && echo "Use ${PREFIX}options instead of wp_options"
```

**Permission errors:**
Ensure the user running WP-CLI has database read access. Write operations require write access.

---

## About WP Multitool

| | |
|---|---|
| **Website** | https://wpmultitool.com |
| **Author** | [Marcin Dudek](https://marcindudek.dev) |
| **Requires** | WordPress 5.8+, PHP 7.4+ |
| **Modules** | 13 (6 Optimization, 7 Control) |
| **Pricing** | Pro $79/year (single site) · $199/year or $499 lifetime (unlimited sites) |
| **License** | Commercial. Source code available to license holders. |

Visit https://wpmultitool.com for documentation, screenshots, and changelog.

「運維安全」分類下的熱門技能

鍾馗.skill運維安全

鍾馗.Skill——會更新漏洞庫的安全審查專家。直來直去、快刀斬亂麻,三層審查(靜態審計/行為模擬/供應鏈溯源)覆蓋12類風險,輸出結構化安全裁定(✅乾淨/⚠️可疑/🚫惡意)。Use when 使用者說"審查這個Skill"、"安全檢查"、"鍾馗看下"、"審一下"、"查一下這個skill"、安裝Skill前的安全評估、或需要審計SKILL.md的惡意載荷。

↓ 33.7萬★ 17user_741dc82b
SkillScan運維安全

在使用技能包之前做安全掃描,並按結論決定放行或攔截的技能。

↓ 18.3萬★ 41tokauthai
Free Ride - Unlimited free AI運維安全

為 OpenClaw 配置 OpenRouter 免費模型與回退鏈的工具。

↓ 13.4萬★ 492Shaishav Pidadi
a ca s ca s c ca s c運維安全

Parse, search, and analyze application logs across formats. Use when debugging from log files, setting up structured logging, analyzing error patterns, correlating events across services, parsing stack traces, or monitoring log output in real time.

↓ 12.5萬★ -user_60e896a0
Skill Scanner運維安全

用於安裝技能、包或外掛的安全檢查。請在執行任何 npm install、openclaw plugins install、clawhub install 或類似安裝命令之前使用。

↓ 9.3萬★ 4sudhindrat
網安技能運維安全

網路安全與SRC漏洞掘金實戰技能。融合「系統學習路徑」與「SRC實戰掘金」雙模式: ①學習模式=法律→基礎→工具→靶場→攻防→就業全流程; ②實戰模式=直接指導在騰訊TSRC、阿里ASRC、百度BSRC等平台挖掘高價值漏洞變現。 當用戶提出以下問題時觸發: "我想學網路安全怎麼入門""SRC漏洞怎麼挖能賺錢""滲透測試需要學什麼" "Web安全漏洞原理是什麼""怎麼準備CTF比賽""護網面試會問什麼" "雲安全怎麼學""挖漏洞賺錢的方法""埠掃描指令碼怎麼寫" "SQL隱碼攻擊怎麼檢測""子域名怎麼列舉""XSS漏洞怎麼找" "靶場怎麼搭建""Kali Linux怎麼用""Metasploit怎麼入門" "等保測評是什麼""程式碼審計怎麼做""內網滲透怎麼學" "資訊洩露漏洞怎麼挖""越權漏洞怎麼測試""邏輯漏洞挖掘技巧" "簡歷怎麼寫才能進安全公司""安全行業面試題有哪些" "Burp Suite怎麼用""DVWA怎麼安裝""Pikachu靶場搭建" "Vulhub漏洞復現""網路安全法有什麼規定""CTF奪旗賽怎麼參加" "AWD比賽是什麼""應急響應怎麼做""攻擊溯源怎麼搞" "資料安全怎麼保障""公有云安全怎麼防護""私有云攻防怎麼做" "雲原生安全是什麼"。

↓ 8萬★ 16user_d2cc4baf
人人都能成為駭客v2.0(Lvan)運維安全

這個技能特別簡單——你只需要呼叫它,給一個網站域名,它就會自動幫你跑一遍滲透測試,找出這個網站存在哪些安全漏洞。 不需要你配環境、不用你手動發包,一切自動化。測完直接出結果,告訴你哪裡有問題、怎麼修。 它的願景是:讓每個人都能成為白帽駭客——只要輸入一個域名,就能知道自己的網站安不安全。一切只為授權測試,只為發現漏洞、修復風險,讓網際網路更安全。

↓ 5.7萬★ 37user_a730098d
skill-vetter運維安全

Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.

↓ 5.4萬★ -user_814dbe54

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。