84% niko-taxonomy-filters

Code Review | Niko Taxonomy Filters

WordPress plugin Niko Taxonomy Filters scored84%from 54 tests.

About plugin

  • Plugin page: niko-taxonomy-fil...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.5.1
  • WordPress version: 6.3.1
  • First release: May 9, 2016
  • Latest release: May 9, 2016
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: Trevald (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Niko Taxonomy Filters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.60 ▼2.87
Dashboard /wp-admin3.31 ▼0.0444.61 ▼14.67
Posts /wp-admin/edit.php3.36 ▲0.0044.58 ▼1.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.68 ▼21.86
Media Library /wp-admin/upload.php3.23 ▲0.0034.76 ▲0.37

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Niko Taxonomy Filters
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.28 ▼0.011.64 ▼0.1344.14 ▲6.23
Dashboard /wp-admin2,192 ▲155.50 ▼0.1882.68 ▼7.3437.29 ▼6.03
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0135.20 ▼2.0934.71 ▲1.66
Add New Post /wp-admin/post-new.php1,535 ▼118.13 ▼0.11602.12 ▼57.7266.08 ▲4.43
Media Library /wp-admin/upload.php1,403 ▼04.21 ▼0.0296.12 ▼1.0042.24 ▼3.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niko-taxonomy-filters/niko-taxonomy-filters.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === niko-taxonomy-filters === )
  • Donate link: Invalid url: "-"
The official readme.txt is a good inspiration

niko-taxonomy-filters/niko-taxonomy-filters.php Passed 13 tests

The principal PHP file in "Niko Taxonomy Filters" v. 0.1 is loaded by WordPress automatically on each request
46 characters long description:
Add taxonomy filters to post listings in admin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin29 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111726
Markdown1103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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 were not PNG files found in your plugin