100% admin-taxonomy-filter

Code Review | Admin Taxonomy Filter

WordPress plugin Admin Taxonomy Filter scored 100% from 54 tests.

About plugin

  • Plugin page: admin-taxonomy-fi...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9.1
  • WordPress version: 5.9.2
  • First release: Jul 20, 2017
  • Latest release: Feb 27, 2022
  • Number of updates: 4
  • Update frequency: every 420.8 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

4,000+ active / 20,384 total downloads

Benchmarks

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 gracefully, with no errors

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

A check of server-side resources used by Admin Taxonomy Filter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.94 ▲4.05
Dashboard /wp-admin3.43 ▲0.0234.78 ▼1.01
Posts /wp-admin/edit.php3.65 ▲0.0138.57 ▲0.63
Add New Post /wp-admin/post-new.php6.90 ▼0.0799.81 ▼1,227.46
Media Library /wp-admin/upload.php3.31 ▲0.0024.31 ▼7.74
Taxonomy Filter /wp-admin/options-general.php?page=admin-taxonomy-filter3.2722.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Taxonomy Filter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1416.21 ▲0.626.19 ▲0.092.27 ▼0.62
Dashboard /wp-admin2,897 ▲466.14 ▼0.11120.16 ▼17.45154.89 ▼8.69
Posts /wp-admin/edit.php2,693 ▲83.24 ▼0.1261.62 ▼3.32149.42 ▲8.56
Add New Post /wp-admin/post-new.php1,664 ▼4615.83 ▼5.53419.09 ▼18.02161.83 ▲0.94
Media Library /wp-admin/upload.php1,703 ▲55.49 ▼0.04136.40 ▼9.17186.48 ▼0.35
Taxonomy Filter /wp-admin/options-general.php?page=admin-taxonomy-filter1,1022.3952.88116.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: taxonomy, taxonomies, admin, post list, post filter...

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

This is the main PHP file of "Admin Taxonomy Filter" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32234137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods222.22%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin