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 β€” 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:

    • Download the structure-viewer folder (as a ZIP file if needed).
  2. Upload to WordPress:

    • 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.
  3. Activate the Plugin:

    • Go to Plugins > Installed Plugins, find “Structure Viewer”, and click “Activate”.
  4. Access the Tool:

    • 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

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! πŸ‘πŸ»
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

Contributors & Developers

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

Contributors

Translate “Structure Viewer” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by 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.