84% woocommerce-products-by-custom-tax

Code Review | Woocommerce - Products By Custom Tax

WordPress plugin Woocommerce - Products By Custom Tax scored 84% from 54 tests.

About plugin

  • Plugin page: woocommerce-produ...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Mar 20, 2017
  • Number of updates: 31
  • Update frequency: every 23.2 days
  • Top authors: elvismdev (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 3,368 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼6.06ms] Passed 4 tests

A check of server-side resources used by Woocommerce - Products By Custom Tax
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.52 ▼6.46
Dashboard /wp-admin3.31 ▲0.0146.66 ▼4.49
Posts /wp-admin/edit.php3.36 ▲0.0146.92 ▲2.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.60 ▼12.39
Media Library /wp-admin/upload.php3.23 ▲0.0134.40 ▼0.88

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Woocommerce - Products By Custom Tax: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.26 ▼1.151.65 ▼0.2039.75 ▼9.97
Dashboard /wp-admin2,217 ▲295.81 ▲0.9095.75 ▼21.1840.21 ▼0.85
Posts /wp-admin/edit.php2,099 ▲102.04 ▲0.0339.65 ▲3.3536.04 ▲0.45
Add New Post /wp-admin/post-new.php1,558 ▲2418.39 ▼4.80639.70 ▼20.7056.02 ▼0.55
Media Library /wp-admin/upload.php1,399 ▲114.18 ▼0.0293.63 ▼5.4943.05 ▼1.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-products-by-custom-tax/admin/partials/woocommerce-products-by-custom-tax-admin-display.php:2

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: custom, shortcode, taxonomy, woocommerce

woocommerce-products-by-custom-tax/woocommerce-products-by-custom-tax.php 92% from 13 tests

The main PHP file in "Woocommerce - Products By Custom Tax" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin151 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP840181151

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin