WP Site Inspector

Your WordPress debug & discovery co-pilot. Instantly reveal shortcodes, hooks, templates, REST APIs, logs β€” plus AI-powered log/code analysis, one-click backups, and CSV export. Built for devs, freelancers & agencies.

27
1
PHP

πŸ› οΈ WP Site Inspector Agent

Your WordPress Debug & Discovery Co-Pilot
Audit themes, plugins, REST APIs, and fix errors with AI β€” in seconds.

License: MIT Manual Version Badge GitHub Stars GitHub Issues WordPress Tested


πŸ“– 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

WP Site Inspector UI
  • βœ… 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

Ask AI Screenshot

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

AI Fix Flow

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

  1. Download latest ZIP
  2. Go to Plugins β†’ Add New β†’ Upload Plugin
  3. Install and activate
  4. 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


πŸ™Œ 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.