https://github.com/prathushan/wp-site-inspector
A powerful admin-only tool that scans your active theme to list shortcodes, hooks, templates, APIs, post types, plugins used, and published content. Perfect for debugging and auditing complex or legacy WordPress projects.
https://github.com/prathushan/wp-site-inspector
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: 4 months ago
JSON representation
A powerful admin-only tool that scans your active theme to list shortcodes, hooks, templates, APIs, post types, plugins used, and published content. Perfect for debugging and auditing complex or legacy WordPress projects.
- Host: GitHub
- URL: https://github.com/prathushan/wp-site-inspector
- Owner: prathushan
- License: gpl-2.0
- Created: 2025-05-15T16:35:35.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-06-12T06:09:30.000Z (4 months ago)
- Last Synced: 2025-06-12T07:26:26.131Z (4 months ago)
- Topics: 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
- Language: PHP
- Homepage:
- Size: 158 KB
- Stars: 22
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# π οΈ WP Site Inspector β Your WordPress Debug & Discovery Co-Pilot
**WP Site Inspector** is an open-source WordPress plugin for developers, freelancers, and agencies who need **instant insights** into whatβs happening under the hood of any WordPress site.
Think of it as your siteβs x-ray machine β mapping everything from shortcodes and hooks to REST APIs, templates, and logs.
> β‘ No more digging through files. No more flying blind.
**π [β Star us on GitHub](https://github.com/prathushan/WP-Site-Inspector)**
**π [Report a Bug](https://github.com/prathushan/WP-Site-Inspector/issues)** Β· π‘ [Request a Feature](https://github.com/prathushan/WP-Site-Inspector/issues)
---
## β¨ Features
β Scan active and parent themes β *no setup needed*
β Instantly list shortcodes, hooks, templates, post types
β View full file paths & line numbers
β Detect REST API calls & CDN links
β Display all published pages, posts & CPTs
β Export results to `.xls`
β Admin-only access with security best practices
β Fatal error detection + email alerts
β Built-in AI chatbot for log analysis *(BYOK)*
β Multilingual UI: English, French, Spanish
β One-click full site `.zip` backup---
## π Why Use It?
If you've ever said:
> βWhatβs even happening on this site?β
> βWhere is this shortcode defined?β
> βWhat template is this page using?β
> βWhich plugin is breaking the homepage?βThen **WP Site Inspector** is made for you.
Perfect for debugging legacy projects, onboarding new ones, or simply understanding someone elseβs codebase β this plugin gives you **superpowers**.
---
## π Use Cases
- π§© Auditing undocumented WP themes
- π οΈ Debugging custom features with clarity
- π Refactoring old code safely
- π€ Handoff-ready documentation
- π Exporting a complete technical site map**Ideal for:**
π§βπ» Freelancers Β· π§ͺ QA Engineers Β· π’ Agencies Β· π‘ WP Contributors Β· π©βπ Students---
## π€ Smarter Debugging with AI (NEW!)
Bring intelligence to your debug flow using **AI Code Assistant** and **Code AI** β both powered by your own API key (BYOK).
### π AI Code Assistant β Debug Smarter, Not Harder

Integrate with:
- π OpenAI (ChatGPT)
- π Anthropic (Claude)
- π DeepSeek, Gemini, or OpenRouter-compatible modelsAsk:
> βWhy did this error happen?β
> βWhich plugin triggered this warning?β
> βHow do I fix this deprecated function?βπ§ Itβs like **ChatGPT for your error logs** β secure, private, and built into WP.
---
### π» Code AI β Your AI Pair Programmer in WP

Directly inside your theme and plugin files β BYOK-powered.
- π§© Understand complex or legacy functions
- π οΈ Refactor outdated logic
- π§ͺ Spot bugs and security issues
- βοΈ Generate WP-specific snippets
- π Evaluate logs inline> Example queries:
> βWhat does this function do?β
> βRewrite this as a shortcodeβ
> βGenerate WP_Query for 5 productsββοΈ Powered by **your choice of LLM** β no vendor lock-in.

---
## β Unified BYOK Support
No subscriptions, no limits β just plug in your API key.
**Supported models:**
- OpenAI
- Anthropic
- DeepSeek
- OpenRouterYour tools. Your rules.
---
## π€ One-Click xls Export
Export everything with a click β clean `.xls` format.
Great for:
- π§ͺ QA teams
- π§Ύ Client reports
- π§ Dev handoffs
- π Project docs---
## π Multilingual Ready
Currently supports:
- π¬π§ English
- π«π· French
- πͺπΈ SpanishUI adapts to your siteβs language automatically β no setup needed.
---
## π One-Click Backup
Back up your entire site β files + DB β in one click.
Creates a downloadable `.zip`. No extra plugins needed.---
## π¦ Coming Soon
- β‘ AI-powered log auto-fix
- π Plugin folder scanner
- π File/function filters
- π§ͺ WP-CLI integration
- π§ AI-based fix suggestions
- ποΈ Visual theme dependency map---
## βοΈ How to Install
1. Download the `.zip` from GitHub
2. Go to `Plugins > Add New > Upload Plugin`
3. Upload and click **Install Now**, then **Activate**
4. Start inspecting via the WP Admin menu---
## π§ Why We Built This
We created WP Site Inspector because:
- WordPress sites grow messy β fast
- Devs spend hours asking βWhatβs active and why?β
- Legacy code makes debugging painfulThis plugin saves time, simplifies audits, and ensures smoother handoffs.
No fluff. No guesswork. Just answers.---
## π License
Distributed under the MIT License.
---
## π¬ Contact
Weβd love your feedback or contributions!
π§ Email: `prathusha.nammi@gmail.com`
π GitHub: [Open an issue](https://github.com/prathushan/WP-Site-Inspector/issues)---
## π Authors
**Made with β€οΈ by [Prathusha](https://github.com/prathushan), [Prem](https://github.com/PremKumar-Softscripts), and [Vinay](https://github.com/v-i-nay)**
**Contributions welcome** π [Open a PR or feature request](https://github.com/prathushan/WP-Site-Inspector/issues)
---