An open API service indexing awesome lists of open source software.

https://github.com/WebDevStudios/block-usage-tracker

A plugin that lists active blocks on the site and counts their usage.
https://github.com/WebDevStudios/block-usage-tracker

Last synced: 4 months ago
JSON representation

A plugin that lists active blocks on the site and counts their usage.

Awesome Lists containing this project

README

          

# 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](https://github.com/robertdevore/block-usage-tracker).
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.