Description
Before you remove a block plugin, switch themes or clean up a site, you need to know which blocks are actually in use and where. BlockLens scans your content once and gives you a clear inventory:
- All blocks in use with the number of uses and the number of posts, pages and other items that contain them.
- Where each block is used: title, type, status and direct Edit and View links.
- Blocks that are not registered on the server, which usually means the plugin or theme that provided them is inactive or removed.
- Nested blocks count too (blocks inside groups, columns and other containers).
- Scans all content types with an admin screen, plus synced patterns, navigation menus and the templates and template parts you customized in the Site Editor. Published, draft, pending, private and scheduled items are included.
- Built for large sites: the scan runs in small batches with a progress bar and can be paused and resumed. After the first scan, the index updates automatically whenever content is saved or deleted.
- Filter and search by block name, provider (namespace) or “not registered only”.
- CSV export of the full inventory or of all items that use one block.
Privacy: BlockLens makes no external requests, loads nothing from third-party servers and collects no usage data. All data stays in your database and is removed when you delete the plugin.
You find BlockLens under Tools BlockLens. Only administrators (users with the manage_options capability) can open it.
Screenshots




Installation
- Install and activate the plugin.
- Go to Tools BlockLens.
- Click Scan site. On large sites this can take a few minutes; you can pause and resume at any time.
FAQ
-
Does BlockLens change my content?
-
No. It only reads content and stores the results in its own database table.
-
A block shows as “Not registered”, but the plugin is active. Why?
-
BlockLens checks which blocks are registered on the server. Some plugins register blocks only in the editor (JavaScript). Those blocks work normally but are reported as not registered. Check the provider name to see which plugin a block belongs to.
-
What is not scanned?
-
Content that is not stored in the database: templates and patterns that come only from theme or plugin files, block widgets, and blocks added by PHP at runtime. Classic (non-block) content is not listed.
-
Does it work on multisite?
-
Yes, per site. Run the scan on each site where you need it.
-
Does it slow down my site?
-
No. Nothing runs on the front end. The full scan runs only when you start it, in small batches. Afterwards only the saved item is re-indexed.
-
Can developers change what is scanned?
-
Yes. Filters:
blocklens_post_types,blocklens_post_statuses,blocklens_batch_size. Action:blocklens_after_scan. -
What happens when I delete the plugin?
-
The index table and all plugin options are removed.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“BlockLens – Block Usage Finder” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “BlockLens – Block Usage Finder” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.1.1
- Text domain changed to the plugin slug (blocklens-block-usage-finder) so translations from translate.wordpress.org load correctly. No functional changes.
0.1.0
- First release: batch scan with progress, inventory, per-block usage, not-registered detection, filters, CSV export, automatic index updates.
