Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

wp-performance-review工作绩效评估

Agent Skill

wp-performance-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

194

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wp-performance-review(工作绩效评估)
来源仓库:https://github.com/vapvarun/claude-backup
仓库路径:skills/wp-performance-review
安装命令:
npx skills add https://github.com/vapvarun/claude-backup --skill wp-performance-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vapvarun/claude-backup --skill wp-performance-review

简介

wp-performance-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于研究检索类任务,如网站性能评估或优化建议查询。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

WP Performance Review

When to use

Use this skill when:

  • Reviewing PR/code for WordPress theme or plugin
  • User reports slow page loads, timeouts, or 500 errors
  • Auditing before high-traffic event (launch, sale, viral moment)
  • Optimizing WP_Query or database operations
  • Investigating memory exhaustion or DB locks

Inputs required

  • Files or directories to review.
  • Context: dev/staging/prod environment.
  • Any constraints: read-only access, no plugin installs.
  • Symptoms: slow TTFB, specific URL, admin vs frontend.

Procedure

0) Identify scope and file types

  1. Identify file type and apply relevant checks
  2. Note hosting environment (managed, self-hosted, shared)
  3. Determine if this is admin-only or frontend code

1) Scan for critical patterns first

Run quick detection scans:

# Unbounded queries - CRITICAL
grep -rn "posts_per_page.*-1\|numberposts.*-1" .

# query_posts - CRITICAL
grep -rn "query_posts\s*(" .

# Session start - CRITICAL (bypasses page cache)
grep -rn "session_start\s*(" .

# Polling patterns - CRITICAL (self-DDoS)
grep -rn "setInterval.*fetch\|setInterval.*ajax" .

Read:

  • references/anti-patterns.md

2) Check warnings (inefficient but not catastrophic)

# DB writes on frontend
grep -rn "update_option\|add_option" . | grep -v "admin\|activate"

# Uncached expensive functions
grep -rn "url_to_postid\|attachment_url_to_postid" .

# External HTTP without caching
grep -rn "wp_remote_get\|wp_remote_post" .

# Cache bypass
grep -rn "cache_results.*false" .

3) Check file-type specific patterns

WP_Query / Database Code:

  • Missing posts_per_page argument
  • meta_query with value comparisons (unindexed)
  • post__not_in with large arrays
  • LIKE '%term%' (leading wildcard)

AJAX Handlers:

  • POST method for read operations (bypasses cache)
  • Missing nonce verification

Template Files:

  • Database queries inside loops (N+1)
  • wp_remote_get in templates

Read:

  • references/file-type-checks.md

4) Report findings with severity

Structure findings as:

## Performance Review: [filename]

### Critical Issues
- **Line X**: [Issue] - [Explanation] - [Fix]

### Warnings
- **Line X**: [Issue] - [Explanation] - [Fix]

### Recommendations
- [Optimization opportunities]

Read:

  • references/output-format.md

Verification

  • All critical issues have been identified
  • Line numbers are accurate
  • Fixes are actionable and WordPress-specific
  • Context is considered (admin vs frontend)

Failure modes / debugging

  • False positive on admin-only code:

- Check context - admin, CLI, cron are lower risk

  • Missing session_start() in plugin:

- Always grep across ALL code including plugins

  • Ignoring JS polling patterns:

- Review .js files for setInterval + fetch

Read:

  • references/common-mistakes.md

WordPress 6.9 Performance Improvements

Be aware of these 6.9 changes when profiling:

On-demand CSS for classic themes:

  • Classic themes now get on-demand CSS loading (previously only block themes)
  • Reduces CSS payload by 30-65% by only loading styles for blocks actually used
  • If profiling a classic theme, this should already be helping

Block themes with no render-blocking resources:

  • Block themes without custom stylesheets (like Twenty Twenty-Three/Four) can now load with zero render-blocking CSS
  • Styles come from global styles (theme.json) and separate block styles, all inlined
  • Significantly improves LCP (Largest Contentful Paint)

Inline CSS limit increased:

  • The threshold for inlining small stylesheets has been raised
  • Reduces render-blocking resources

WP-CLI Profiling Commands

If WP-CLI is available, use these for deep profiling:

# See where time goes (bootstrap/main_query/template)
wp profile stage --url=https://example.com/page/

# Find slow hooks/callbacks
wp profile hook --url=https://example.com/page/

# Profile specific code path
wp profile eval 'do_action("init");'

# Run health checks
wp doctor check

Query Monitor Headless Usage

For backend-only debugging, Query Monitor works via REST API:

  1. Authenticate (nonce or Application Password)
  2. Request with ?_envelope parameter
  3. Inspect x-qm-* headers or qm property in response

Escalation

  • If production and no explicit approval, do NOT: install plugins, enable SAVEQUERIES, run load tests, or flush caches during traffic
  • For system-level profiling (APM, PHP profilers), coordinate with ops/hosting

Consult:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.56%
按下载量换算19

windsurf

25.55%
按下载量换算16

OpenCode

18.6%
按下载量换算12

Codex

13.04%
按下载量换算8

Antigravity

7.11%
按下载量换算4

Gemini CLI

3.84%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills