73% grit-taxonomy-filter

Code Review | GRIT Taxonomy Filter

WordPress plugin GRIT Taxonomy Filter scored73%from 54 tests.

About plugin

  • Plugin page: grit-taxonomy-filter
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.5
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Jul 2, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mrityunjay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /841 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.56ms] Passed 4 tests

An overview of server-side resources used by GRIT Taxonomy Filter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0844.43 ▲2.17
Dashboard /wp-admin3.39 ▲0.0851.82 ▲0.35
Posts /wp-admin/edit.php3.50 ▲0.1451.69 ▼1.11
Add New Post /wp-admin/post-new.php5.99 ▲0.1097.68 ▼10.46
Media Library /wp-admin/upload.php3.31 ▲0.0838.88 ▲1.00
GRIT Taxonomy Filter /wp-admin/options-general.php?page=grit_taxonomy_filter3.2833.66

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GRIT Taxonomy Filter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲9713.51 ▼0.878.75 ▲6.6241.16 ▲0.54
Dashboard /wp-admin2,206 ▲325.65 ▼0.0385.92 ▼3.8238.05 ▼2.47
Posts /wp-admin/edit.php2,108 ▲81.99 ▼0.0139.25 ▲3.5736.07 ▲2.20
Add New Post /wp-admin/post-new.php1,533 ▲723.36 ▲5.91661.20 ▼15.7052.67 ▼8.24
Media Library /wp-admin/upload.php1,411 ▲84.20 ▼0.0099.76 ▼1.4645.83 ▼5.74
GRIT Taxonomy Filter /wp-admin/options-general.php?page=grit_taxonomy_filter8302.0524.6427.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=grit_taxonomy_filter
    • > Notice in wp-content/plugins/grit-taxonomy-filter/admin/partials/grit-taxonomy-filter-admin-display.php+31
    Trying to access array offset on value of type bool

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/grit-taxonomy-filter/public/partials/grit-taxonomy-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/grit-taxonomy-filter/admin/partials/grit-taxonomy-filter-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Donate link: Please fix this invalid url: "paypal.me/miishraa"
The official readme.txt might help

grit-taxonomy-filter/grit-taxonomy-filter.php Passed 13 tests

"GRIT Taxonomy Filter" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
It adds a taxonomy filter upto three levels in page or post using shortcode.

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
No dangerous file extensions were detected426 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12215572356
JavaScript2314138
CSS21832

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin