π οΈ WP Site Inspector Agent
Your WordPress Debug & Discovery Co-Pilot
Audit themes, plugins, REST APIs, and fix errors with AI β in seconds.
π Overview
WP Site Inspector Agent is an open-source WordPress plugin built for developers, freelancers, and agencies who need instant, actionable insights into any WordPress site.
Itβs like an x-ray machine for your WordPress stack β exposing everything from shortcodes and hooks to REST APIs, templates, and hidden issues.
β‘ No more digging through theme files.
π§ No more guessing where bugs live.
β¨ Features
- β Scan active/parent themes without setup
- β Instantly list shortcodes, hooks, templates, post types
- β Detect REST API calls, CDN links & JS usage
- β View file paths & line numbers
- β List all published pages, posts & custom post types
- β
Export reports to
.xls - β Admin-only access with secure design
- β Fatal error detection + alert emails
- β Built-in AI chatbot for log analysis (BYOK)
- β AI-powered log auto-fix
- β Multilingual UI: π¬π§ English, π©πͺ German, πͺπΈ Spanish
π Why Use It?
If you've ever said:
- βWhatβs even happening on this site?β
- βWhere is this shortcode defined?β
- βWhich plugin is breaking the homepage?β
Then WP Site Inspector Agent is made for you.
Perfect for:
π§βπ» Freelancers β’ π§ͺ QA Engineers β’ π’ Agencies β’ π‘ WP Contributors β’ π©βπ Students
π Use Cases
- π§© Auditing undocumented themes & templates
- π οΈ Debugging custom features
- π Refactoring legacy code
- π€ Creating handoff-ready documentation
- π Generating a technical site map
π€ AI Code Assistant
AI chatbot that finds, explains, and fixes errors.
βοΈ Ask: βWhy did this error happen?β
βοΈ Suggest fixes for deprecated or fatal code
βοΈ Get file-level insights on PHP warnings or notices
βοΈ Understand complex or undocumented functions
βοΈ Get explanations for deprecation notices and warnings
βοΈ Identify which plugin/theme generated the error
βοΈ Copy fix suggestions directly into your theme/plugin
βοΈ Use your own API key (BYOK) for private debugging
β‘ AI-powered log auto-fix
Automatically detect and fix errors directly from logs.
- Parses your logs for file names and line numbers
- Opens affected files and auto-fixes issues with LLMs
- Takes an automatic backup (
.bak) of the file - If anything goes wrong, auto-restores the original version
- Compatible with all major WordPress themes and plugins
- Handles common errors like undefined variables, missing includes, deprecated functions
- Displays status updates: Pending, Fulfilled, Failed
- Works with custom-coded themes and plugins
- Designed for both novice and advanced developers
Powered by your preferred model: OpenAI, Claude, Gemini, DeepSeek, or OpenRouter β via your own API key (BYOK)
Example Query:
"Undefined variable $undefined_variable (File: /code/wp-content/themes/twentytwentyfive/functions.php Line: 164)"
π BYOK (Bring Your Own Key) Support
WP Site Inspector Agent gives you full control over AI usage. In the plugin settings, you can add your own API key and choose from supported providers and models.
Supported Providers & Models:
| Provider | Models |
|---|---|
wp-site-inspector |
WPSI-01 |
openai |
gpt-4, gpt-3.5-turbo |
deepseek |
deepseek-chat, deepseek-coder, deepseek-chat-v3 |
anthropic |
Claude 3 Opus, Claude 3 Sonnet, Claude 3 Haiku |
google |
Gemini 1.5 Pro, Gemini 1.0 Pro |
mistral |
Mistral Small, Mistral Medium, Mistral Large |
openrouter |
GPT-3.5 Turbo, GPT-4, DeepSeek Chat v3 (Free) |
π Donβt have a key? Use Our Free Model!
You can also use our own hosted model: WPSI-01, available under the wp-site-inspector provider.
β We offer limited free access per day.
π§ Just send a request via email to get your personal API key.
π Secure, no vendor lock-in, and completely private.
π Multilingual Support
- π¬π§ English
- π©πͺ German
- πͺπΈ Spanish
UI auto-detects and adapts to your site's language.
π€ One-Click Export
Export your full scan to .xlsx β perfect for:
- π§ͺ QA reports
- π§Ύ Client documentation
- π§ Dev handoffs
π¦ Coming Soon
- π§ͺ WP-CLI integration
βοΈ Installation
- Download latest ZIP
- Go to Plugins β Add New β Upload Plugin
- Install and activate
- Start inspecting from the WP Admin menu
π‘ Why We Built This
Because:
- WordPress sites grow messy β fast
- Developers waste hours asking βWhatβs active and why?β
- Legacy code makes debugging painful
This plugin saves time, simplifies audits, and improves team handoffs.
π¬ Contact
- π§ Email: [email protected]
- π Bug reports: GitHub Issues
- π‘ Feature requests: GitHub Discussions
π Authors
Made with β€οΈ by:
Want to contribute? π Open a Pull Request
βοΈ If you find this project helpful, please consider starring the repo β it helps others discover it too!
π License
Distributed under the MIT License.
Free to use, modify, and distribute with attribution.
Audit. Analyze. Fix. Repeat.
Built for WordPress developers who demand clarity and control.