Usage Monitor
A WordPress plugin that provides an overview of all registered Gutenberg blocks and their usage across your site.
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/max-moss-dev/wp-usage-monitor/archive/refs/heads/main.zipBlock Usage
A WordPress plugin that provides an overview of all registered Gutenberg blocks and their usage across your site.
Features
- Complete Block Inventory: Lists all registered Gutenberg blocks from WordPress core, themes, and plugins
- Usage Tracking: Tracks how many times each block is used across your site
- Detailed Usage Statistics: Shows exactly where each block is used (posts, pages, templates)
- Easy Filtering: Filter by used/unused blocks to identify opportunities for cleanup
- Template & Site Editor Support: Includes blocks used in FSE templates and template parts
Installation
- Download the plugin zip file
- Go to Plugins → Add New in your WordPress admin
- Click "Upload Plugin" and select the zip file
- Activate the plugin
- Go to Tools → Block Usage to see your block statistics
Usage
Viewing Block Usage
- Navigate to Tools → Block Usage in your WordPress admin
- View the complete list of blocks available on your site
- See usage counts for each block
- Filter by "Used" or "Unused" to focus on specific blocks
Scanning Blocks
If you see a notice that content has been updated or if you've just installed the plugin:
- Click the "Scan usage statistics" button
- Wait for the scan to complete (a progress bar will show status)
- View the updated block usage statistics
Finding Where a Block is Used
- Click on any block name in the list
- A sidebar will appear showing all posts/pages/templates using this block
- Click any listed item to edit that content
Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
Development
Local Development Setup
- Clone this repository
- Run
npm installto install dependencies - Make your changes
- Test thoroughly before deployment
License
This project is licensed under the GPL v2 or later.