Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 2.01 KB

README.md

File metadata and controls

48 lines (33 loc) · 2.01 KB

Block Usage Tracker

Block Usage Tracker is a WordPress® admin tool designed to help content managers and developers monitor block usage across a site.

The plugin lists each block type used in posts, counting the total occurrences and shows direct links to each post where a block appears.

This functionality helps teams optimize content, understand block usage patterns, and maintain consistency.

Features

  • Lists all active blocks across posts and their usage counts.
  • Displays links to each page/post where blocks are used.
  • Excludes duplicate links for better readability.
  • Caches block usage data for efficient, optimized performance.
  • User-friendly modal interface for viewing detailed block usage by post.
  • Designed with proper security and access restrictions.

Installation

From the WordPress® Admin Dashboard

  1. Download the latest release from GitHub.
  2. In your WordPress® dashboard, go to Plugins > Add New.
  3. Click Upload Plugin and choose the downloaded ZIP file.
  4. Install and activate the plugin.

Manual Installation

  1. Download the plugin files and extract the ZIP.
  2. Upload the extracted folder to /wp-content/plugins/block-usage-tracker.
  3. Activate the plugin through the Plugins menu in WordPress®.

Usage

  1. Once activated, go to Settings > Block Usage Tracker in your WordPress® admin.
  2. You'll see a table with each block type, its total usage count, and a View Details button.
  3. Click View Details for any block to open a modal with links to each post where that block is used.

Contributing

We welcome contributions to improve Block Usage Tracker! Here's how you can help:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch-name).
  3. Commit your changes (git commit -am 'Add new feature or fix').
  4. Push to the branch (git push origin feature-branch-name).
  5. Open a pull request.

For bug reports or feature requests, please open an issue in this repository.