99% admin-category-filter

Code Review | Post Category Filter

WordPress plugin Post Category Filter scored 99% from 54 tests.

About plugin

  • Plugin page: admin-category-fi...
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9
  • WordPress version: 5.9.2
  • First release: Jan 24, 2014
  • Latest release: Dec 1, 2017
  • Number of updates: 53
  • Update frequency: every 26.6 days
  • Top authors: vengisss (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

3,000+ active / 30,625 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼303.07ms] Passed 4 tests

Server-side resources used by Post Category Filter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.01118.34 ▲60.89
Dashboard /wp-admin3.42 ▲0.0237.47 ▼46.97
Posts /wp-admin/edit.php3.65 ▲0.0240.96 ▼7.66
Add New Post /wp-admin/post-new.php6.89 ▼0.07104.75 ▼1,158.13
Media Library /wp-admin/upload.php3.31 ▲0.0132.46 ▲0.47

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Post Category Filter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.25 ▼0.7014.78 ▲8.802.58 ▲0.09
Dashboard /wp-admin2,881 ▲206.16 ▼0.00130.45 ▼7.52153.26 ▼6.73
Posts /wp-admin/edit.php2,723 ▲293.25 ▲0.0162.96 ▼1.96139.89 ▼41.34
Add New Post /wp-admin/post-new.php1,666 ▼8517.30 ▼3.58398.27 ▼162.77195.26 ▲9.60
Media Library /wp-admin/upload.php1,701 ▲65.49 ▼0.02146.92 ▲3.01179.73 ▼16.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

admin-category-filter/category-filter.php 92% from 13 tests

The main PHP script in "Post Category Filter" version 1.6.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-category-filter.php" instead of "category-filter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin110 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File11320

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin