90% admin-taxonomy-filter

Code Review | Admin Taxonomy Filter

WordPress plugin Admin Taxonomy Filter scored 90% 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: 6.3.1
  • 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

14 reviews

Install metrics

5,000+ active / 31,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Admin Taxonomy Filter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.56 ▼8.75
Dashboard /wp-admin3.32 ▲0.0145.93 ▼5.14
Posts /wp-admin/edit.php3.37 ▲0.0151.02 ▲0.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.49 ▼13.98
Media Library /wp-admin/upload.php3.24 ▲0.0134.17 ▲0.74
Taxonomy Filter /wp-admin/options-general.php?page=admin-taxonomy-filter3.2135.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Taxonomy Filter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.30 ▼0.931.69 ▼0.0439.54 ▼10.68
Dashboard /wp-admin2,210 ▲195.81 ▲0.9497.01 ▼10.2739.90 ▼7.28
Posts /wp-admin/edit.php2,093 ▲72.02 ▼0.0440.97 ▲3.8234.65 ▲3.01
Add New Post /wp-admin/post-new.php1,517 ▼2517.56 ▼5.46648.06 ▲17.8858.94 ▲7.19
Media Library /wp-admin/upload.php1,395 ▲44.23 ▲0.0298.44 ▲1.5542.03 ▲0.68
Taxonomy Filter /wp-admin/options-general.php?page=admin-taxonomy-filter8682.0322.6827.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: taxonomies, taxonomy filter, post list, admin, taxonomy...

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

The main PHP script in "Admin Taxonomy Filter" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32234137

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected