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 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
6,528
星标
2
全站下载量排名
#4,361
全站前 40% · 「运维安全」前 28%
平台累计下载星标评论
ClawHub ↗6,5282-
SkillHub ↗6,1782—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它分为不会修改站点数据的只读诊断,以及可能清理数据库或修改配置的写操作;基础诊断可在未安装插件的 WordPress 站点上运行。清理和配置变更可能删除或改变数据,执行前应确认可恢复备份、精确影响范围并取得用户批准。

资料发布于 2026-10-29

可以用来做什么

  • 进行 WordPress 站点健康和性能只读检查
  • 定位数据库、配置或查询性能问题
  • 审查需要用户确认的清理或优化操作

什么时候用

  • 先进行只读诊断,或在执行写操作前已准备可恢复备份并明确获批时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

只列出该站点的只读性能检查项,不要运行会修改数据的命令。
审查拟删除的修订记录清理方案,先确认备份、删除范围和审批要求。

月度数据趋势

累计下载6,528
2,2574,5516,8442026-03 · 累计下载 2,5732026-05 · 累计下载 3,5232026-06 · 累计下载 3,8112026-07 · 累计下载 4,7052026-08 · 累计下载 5,3622026-09 · 累计下载 5,8472026-10 · 累计下载 6,52826-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-106,528—2
2026-095,847—2
2026-085,362+14.0%2
2026-074,705+23.5%2
2026-063,811+8.2%2
2026-053,523—2
2026-032,573—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.0万★ 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),按月更新。口径说明见数据方法。