WP Manifestindependent plugin directory
manifest / analytics / posts-counts-stats--wp-plugin

Posts Counts Stats

WordPress plugin for display yearly/monthly posts counts statistics inside WP' admin panel

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/bieli/posts-counts-stats--wp-plugin/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

posts-counts-stats WordPress plugin

Intro

WordPress plugin for display yearly/monthly posts counts statistics inside WP' admin panel.

Display yearly and monthly posts counts in WordPress admin settings in a hierarchical format.

There are links on count number with redirect to posts list and filter for particular year and month, so you can review posts from selected year and month.

There is additional dashboard widget for WP admin cocpit main page (with only yearly summaries of posts counts). You can go to details page (with monthly posts counts stats) from widget (link exists).

You can see yearly stats on simple bar graph, too.

How to install inside Wordpress

Compatibility with WP versions from 6.1.x to 6.7.x (not tested with WP dev/trunk branch!).

With server SSH access (manual create folder and file inside plugins dir)

  1. Create a new folder in your wp-content/plugins directory, e.g., posts-counts-stats.

  2. Save the code above in a file called posts-counts-stats.php (copy/pasted from this repository) within the folder.

Without SSH access (using ZIP file)

  1. Go to this page (https://github.com/bieli/posts-counts-stats--wp-plugin/releases) and download latest ZIP file posts-conunts-stats.zip from Assets.

  2. Upload plugin inside WP admin panel Plugins -> Upload from ZIP

...

  1. Go to the WordPress admin panel and activate the plugin in the Plugins section.

  2. Navigate to Settings > Posts Counts Stats in the WordPress admin menu to view the stats.

How it works (view with random data about posts)

Visual effect of usage this plugin in WP admin

Visual effect of usage this plugin in WP admin dashboard widget

Development basic steps (depends on your env.)

  1. Run composer install to install dependencies.

  2. You need to add/modify unit test files under tests/ (e.g., tests/Unit/PostsCountsStatsTest.php).

  3. Execute tests with composer test or vendor/bin/phpunit.