analyze_plugin
Analyze a WordPress plugin directory to detect security gaps, header issues, cleanup omissions, hook problems, translation-readiness gaps, REST permission flaws, and dangerous function usage.
Instructions
Analyze a WordPress plugin directory for best practices and issues. Checks: plugin header, security (escaping, sanitization, nonces, capabilities), uninstall cleanup, activation/deactivation hooks, translation-readiness, REST API permission callbacks, dangerous function usage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pluginPath": "<pluginPath>",
"conversationId": "<conversationId>"
},
"name": "analyze_plugin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pluginPath | Yes | Absolute path to the WordPress plugin directory. | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |