Title: Structure Viewer
Author: Blincks
Published: <strong>May 3, 2025</strong>
Last modified: March 23, 2026

---

Search plugins

![](https://ps.w.org/structure-viewer/assets/banner-772x250.jpg?rev=3286634)

![](https://ps.w.org/structure-viewer/assets/icon-256x256.png?rev=3286634)

# Structure Viewer

 By [Blincks](https://profiles.wordpress.org/blincks/)

[Download](https://downloads.wordpress.org/plugin/structure-viewer.2.1.1.zip)

 * [Details](https://pcd.wordpress.org/plugins/structure-viewer/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/structure-viewer/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/structure-viewer/#installation)
 * [Development](https://pcd.wordpress.org/plugins/structure-viewer/#developers)

 [Support](https://wordpress.org/support/plugin/structure-viewer/)

## Description

**Structure Viewer 2.1** is a comprehensive developer toolkit for WordPress that
provides deep insight into your installed plugins and themes. Beyond simple file
browsing, it offers powerful search capabilities, in-file content viewing, individual
file downloads, multiple export formats (including PDF), and intelligent filtering—
all within a clean, modern interface.

### 🚀 **Core Features:**

**📁 Advanced File Explorer**
 – **Tree View Navigation**: Expandable folder structure
with intuitive icons – **File Information**: View file sizes and modification dates
on demand – **Image Handling**: Image files automatically open in new tabs – **Modal
File Viewer**: View file contents directly in the admin with syntax highlighting–**
File Download**: Download any individual file directly from the file viewer modal–**
Keyboard Navigation**: Use arrow keys to navigate through the file tree

**🔍 Powerful Search & Filter**
 – **Real-time Search**: Instantly search across
all files and folders – **File Type Filtering**: Filter by specific file types (
PHP, JS, CSS, Images, etc.) – **Extension-based Search**: Search by file extension(
e.g., `.php`, `.js`) – **Contextual Results**: Results show full file paths and 
metadata

**📤 Multi-Format Export**
 – **Export as TXT**: Plain text structure for easy sharing–**
Export as JSON**: Structured data for API integration – **Export as XML**: Standardized
format for data processing – **Export as PDF**: Formatted PDF with header, page 
numbers, and branding – **Clipboard Copy**: One-click copy of entire structure to
clipboard – **Direct Downloads**: Export files with proper naming and MIME types–**
Individual File Download**: Download any single file from within the file viewer

**🎨 Enhanced User Experience**
 – **Responsive Design**: Works perfectly on desktop,
tablet, and mobile – **Loading Indicators**: Visual feedback during operations –**
Persistent Settings**: Remember your preferences between sessions – **Accessibility**:
Keyboard navigation and focus management – **Clean Interface**: Modern WordPress
admin styling

**⚡ Advanced Features:**
 – **WP-CLI Integration**: Manage structures from command
line – **Security Focused**: Strict permission checks and path validation – **Performance
Optimized**: Efficient file scanning with exclusions – **Nonce Protection**: Secure
AJAX operations – **Smart Exclusions**: Automatically ignores `node_modules`, `.
git`, and system files

### 🛠 **Professional Use Cases:**

**🔧 Development & Debugging**
 – Quickly locate specific files in complex plugin
structures – Identify missing or misplaced files causing issues – Understand plugin/
theme architecture for customization – Debug file permission or path-related problems

**📊 Auditing & Security**
 – Review third-party plugin structures for suspicious
files – Verify file integrity after updates – Check for unnecessary or redundant
files – Ensure proper file organization standards

**🤖 AI-Assisted Development**
 – Export complete structures for AI analysis (ChatGPT,
Claude, etc.) – Provide AI with context about plugin architecture – Get precise 
code modification suggestions – Example: “Here’s WooCommerce’s structure, how do
I modify cart functionality?”

**📋 Documentation & Collaboration**
 – Generate structure documentation for teams–
Share plugin layouts with remote developers – Create visual maps of complex projects–
Maintain reference documentation for future development

### Additional Information

 * **Security**: Requires `manage_options` capability with nonce protection, input
   validation, output escaping, and directory traversal prevention.
 * **Performance**: Lightweight modular architecture with optimized file scanning
   and selective asset loading.
 * **Compatibility**: Tested with WordPress 6.9 and PHP 7.2+. PDF export uses jsPDF
   2.5.1 loaded from cdnjs (no server-side PDF library required).
 * **Support**: For support, feature requests, or bug reports, please visit the 
   plugin page.
 * **Contributing**: Developers can contribute via GitHub (link in plugin description).

### Credits

Developed by [Blincks](https://www.blincks.com) — A web design and development agency.
Structure Viewer is one of our open-source tools built for the developer community.

## Screenshots

 * [[
 * Main interface showing plugin structure tree
 * [[
 * File viewer modal with Download File button
 * [[
 * Search results with file type filtering
 * [[
 * Export options including PDF format

## Installation

 1. **Download the Plugin**:
 2.  * Download the `structure-viewer` folder (as a ZIP file if needed).
 3. **Upload to WordPress**:
 4.  * Via WordPress Admin: Go to Plugins > Add New > Upload Plugin, then upload the
       ZIP file and click “Install Now”.
     * Via FTP: Upload the `structure-viewer` folder to the `/wp-content/plugins/` 
       directory on your server.
 5. **Activate the Plugin**:
 6.  * Go to Plugins > Installed Plugins, find “Structure Viewer”, and click “Activate”.
 7. **Access the Tool**:
 8.  * Navigate to **Tools > Structure Viewer** in your WordPress admin dashboard.
     * Or click the “Explore” link in your plugin listing.

## FAQ

### Who can use Structure Viewer?

This plugin requires the `manage_options` capability, meaning only administrators
and users with similar permissions can access it.

### Can I view all plugins/themes at once?

Yes! Select “All Plugins” or “All Themes” from the dropdown to view comprehensive
structures of all installed items.

### How does the file viewer work?

Non-image files open in a modal viewer within WordPress. Image files (JPG, PNG, 
GIF, etc.) automatically open in new browser tabs.

### What file types can I export?

Structure Viewer supports four export formats: TXT (plain text), JSON (structured
data), XML (standardized format), and PDF (formatted document with header and page
numbers). You can also download any individual file directly from the file viewer
modal.

### Is there a file size limit for viewing?

Yes, for security and performance, the file viewer has a 1MB limit. Larger files
should be accessed directly.

### Can I search within specific file types?

Absolutely! Use the File Type filter to show only PHP files, JavaScript files, CSS
files, images, or other specific file types.

### Does this work with WP-CLI?

Yes! Structure Viewer includes WP-CLI commands:
 – `wp structure-viewer export <
type> <name>` – Export structures via command line – `wp structure-viewer list <
plugins|themes>` – List available items

### Is my data secure?

Structure Viewer includes multiple security layers: nonce verification, path traversal
prevention, capability checks, and input sanitization.

### What files are excluded from scans?

By default: `node_modules`, `.git`, `.svn`, `.DS_Store`, log files, and system files
are excluded for performance.

## Reviews

![](https://secure.gravatar.com/avatar/10afb29cb651cad3aa0de712d2b731f07da1bccb3cb97fa80229e9b25af7f86d?
s=60&d=retro&r=g)

### 󠀁[A Must Have Plugin for Developers](https://wordpress.org/support/topic/a-must-have-plugin-for-developers-3/)󠁿

 [timefighter11](https://profiles.wordpress.org/timefighter11/) March 23, 2026 1
reply

As a web developer who audits and customizes a lot of third-party plugins/themes,
this plugin has become must have for me for AI assisted development. Helping me 
train the AI environment quickly and speeding up my development work significantly.
A suggestion: It would be great if I can search inside the file codes as well. Big
thanks to the team, really useful free tool! 👏🏻

![](https://secure.gravatar.com/avatar/a362cec4dc1c8a771885c824658333e32dc405fbdd714c82159146a3d79e8019?
s=60&d=retro&r=g)

### 󠀁[A Simple and Handy Tool for Viewing Plugin and Theme Files](https://wordpress.org/support/topic/a-simple-and-handy-tool-for-viewing-plugin-and-theme-files/)󠁿

 [musmanali117](https://profiles.wordpress.org/musmanali117/) December 6, 2025 1
reply

Structure Viewer is a lightweight and straightforward plugin that lets you browse
the full file and folder structure of your themes and plugins directly inside the
WordPress dashboard. It’s read-only and safe to use, making it useful for developers,
auditors, or anyone who needs to inspect code without FTP acces

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/structure-viewer/reviews/)

## Contributors & Developers

“Structure Viewer” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Blincks ](https://profiles.wordpress.org/blincks/)

[Translate “Structure Viewer” into your language.](https://translate.wordpress.org/projects/wp-plugins/structure-viewer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/structure-viewer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/structure-viewer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/structure-viewer/)
by [RSS](https://plugins.trac.wordpress.org/log/structure-viewer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.1.1

 * **Bug fix**: Copy Structure button now works correctly in Safari.

#### 2.1

 * **Individual File Download**: Download any file directly from the file viewer
   modal with a single click — supports all file types including binary files
 * **PDF Export**: Export plugin and theme structures as formatted PDF documents
   with a styled header, monospace tree content, page numbers, and automatic page
   breaks
 * **Security**: Download handler includes strict path traversal prevention, nonce
   verification, and MIME type detection via `finfo`
 * **Code quality improvements**: Internal refactoring, minor bug fixes, and stability
   improvements across export and file viewer modules

#### 2.0

 * **Complete UI/UX Overhaul**: Modernized interface with improved controls and 
   responsive design
 * **Advanced File Viewer**: Modal-based file content viewer with syntax highlighting
 * **Multi-Format Export**: Added JSON and XML export formats alongside existing
   TXT
 * **Enhanced Search**: Real-time search with file type filtering and contextual
   results
 * **Clipboard Integration**: One-click copy of entire structures to clipboard
 * **Keyboard Navigation**: Full keyboard support for accessibility
 * **WP-CLI Commands**: Added command-line interface for developers
 * **Performance Improvements**: Optimized file scanning and AJAX handling
 * **Security Enhancements**: Improved validation and permission checks
 * **Mobile Responsive**: Fully responsive design for all screen sizes
 * **Persistent Settings**: UI preferences saved between sessions

#### 1.2

 * Enhanced the UI of the export button for better visibility and styling.
 * Added a “Settings” link in the plugin listing to quickly access the Structure
   Viewer page.

#### 1.1

 * Added export functionality to download the structure as a text file.

#### 1.0

 * Initial release of Structure Viewer.
 * Basic functionality to view plugin and theme structures.

## Meta

 *  Version **2.1.1**
 *  Last updated **2 weeks ago**
 *  Active installations **10+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/structure-viewer/)
 * Tags
 * [code-viewer](https://pcd.wordpress.org/plugins/tags/code-viewer/)[developer-tools](https://pcd.wordpress.org/plugins/tags/developer-tools/)
   [file manager](https://pcd.wordpress.org/plugins/tags/file-manager/)[plugin manager](https://pcd.wordpress.org/plugins/tags/plugin-manager/)
   [theme files](https://pcd.wordpress.org/plugins/tags/theme-files/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/structure-viewer/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/structure-viewer/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/structure-viewer/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/structure-viewer/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/structure-viewer/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/structure-viewer/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/structure-viewer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/structure-viewer/reviews/)

## Contributors

 *   [ Blincks ](https://profiles.wordpress.org/blincks/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/structure-viewer/)