An open API service indexing awesome lists of open source software.

https://github.com/prathushan/wp-site-inspector-agent

Your WordPress debug & discovery co-pilot. Instantly uncover shortcodes, hooks, templates, REST APIs, and logs β€” with AI-powered code analysis, XLSX export, and smart error fixing. Just ask, and let AI suggest the fix. Built for devs, freelancers & agencies.
https://github.com/prathushan/wp-site-inspector-agent

code-mapping custom-post-types debugging developer-tools hook-inspector php plugin-development shortcode site-audit theme-audit theme-debugger theme-development wordpres-development wordpress wordpress-hooks wordpress-plugin wordpress-tools wp-cli

Last synced: 11 months ago
JSON representation

Your WordPress debug & discovery co-pilot. Instantly uncover shortcodes, hooks, templates, REST APIs, and logs β€” with AI-powered code analysis, XLSX export, and smart error fixing. Just ask, and let AI suggest the fix. Built for devs, freelancers & agencies.

Awesome Lists containing this project

README

          

πŸ› οΈ 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](https://github.com/prathushan/WP-Site-Inspector/archive/refs/heads/main.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

- πŸ“§ Email: [prathusha.nammi@gmail.com](mailto:prathusha.nammi@gmail.com)
- πŸ› Bug reports: [GitHub Issues](https://github.com/prathushan/WP-Site-Inspector/issues)
- πŸ’‘ Feature requests: [GitHub Discussions](https://github.com/prathushan/WP-Site-Inspector/discussions)

---

## πŸ™Œ Authors

Made with ❀️ by:

- [**Prathusha**](https://github.com/prathushan)
- [**Prem Kumar**](https://github.com/PremKumar-Softscripts)
- [**Vinay**](https://github.com/v-i-nay)

Want to contribute? πŸ‘‰ [Open a Pull Request](https://github.com/prathushan/WP-Site-Inspector/pulls)

⭐️ If you find this project helpful, please consider [starring the repo](https://github.com/prathushan/WP-Site-Inspector) β€” it helps others discover it too!

---

## πŸ“„ License

Distributed under the [MIT License](https://choosealicense.com/licenses/mit/).
Free to use, modify, and distribute with attribution.

---


Audit. Analyze. Fix. Repeat.

Built for WordPress developers who demand clarity and control.