83% wc-filter-by-multiple-tax

Code Review | WC Filter By Multiple Tax

WordPress plugin WC Filter By Multiple Tax scored83%from 54 tests.

About plugin

  • Plugin page: wc-filter-by-mult...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Jul 24, 2017
  • Latest release: Oct 26, 2017
  • Number of updates: 26
  • Update frequency: every 3.7 days
  • Top authors: peepress (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.33ms] Passed 4 tests

This is a short check of server-side resources used by WC Filter By Multiple Tax
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.19 ▼11.56
Dashboard /wp-admin3.33 ▲0.0252.63 ▼1.27
Posts /wp-admin/edit.php3.38 ▲0.0249.30 ▼3.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.67 ▼13.43
Media Library /wp-admin/upload.php3.25 ▲0.0235.10 ▼0.78

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Filter By Multiple Tax
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.34 ▼0.011.68 ▼0.5343.22 ▼1.90
Dashboard /wp-admin2,213 ▲365.60 ▲0.0193.91 ▲5.8141.73 ▼1.65
Posts /wp-admin/edit.php2,122 ▲222.02 ▲0.0037.00 ▼0.2738.18 ▼0.82
Add New Post /wp-admin/post-new.php1,546 ▲1723.14 ▼0.50686.42 ▲23.3151.44 ▼3.73
Media Library /wp-admin/upload.php1,415 ▲124.25 ▲0.1097.05 ▼4.3245.26 ▲1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-filter-by-multiple-tax/includes/_frontend_enqueue.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-filter-by-multiple-tax/includes/_admin_enqueue.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-filter-by-multiple-tax/includes/abstracts/abstract-wc-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed: You can take inspiration from this readme.txt

wc-filter-by-multiple-tax/wc-filter-by-multiple-tax.php 92% from 13 tests

The principal PHP file in "WC Filter By Multiple Tax" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 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 detected2,860 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP205614301,765
LESS44330648
JavaScript21137318
PO File15050127
CSS2002

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 242)
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity66.60
▷ Minimum class complexity1.00
▷ Maximum class complexity274.00
Average method complexity11.58
▷ Minimum method complexity1.00
▷ Maximum method complexity242.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes125.00%
Methods31
▷ Static methods26.45%
▷ Public methods2787.10%
▷ Protected methods00.00%
▷ Private methods412.90%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin