84% wc-multi-tiered-shipping

Code Review | CFD Multi-Tiered Shipping For WooCommerce

WordPress plugin CFD Multi-Tiered Shipping For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-multi-tiered-s...
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 7, 2015
  • Latest release: Aug 20, 2018
  • Number of updates: 42
  • Update frequency: every 24.5 days
  • Top authors: mhodges (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,217 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by CFD Multi-Tiered Shipping For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.01 ▼9.48
Dashboard /wp-admin3.38 ▲0.0852.27 ▲0.91
Posts /wp-admin/edit.php3.43 ▲0.0852.62 ▲1.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.27 ▼24.55
Media Library /wp-admin/upload.php3.31 ▲0.0835.93 ▼1.24

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/wc-multi-tiered-shipping/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

CFD Multi-Tiered Shipping For WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.55 ▼1.012.00 ▲0.2842.21 ▼1.19
Dashboard /wp-admin2,224 ▲185.88 ▼0.00116.19 ▲11.7342.26 ▼2.12
Posts /wp-admin/edit.php2,103 ▲61.99 ▼0.1439.09 ▲2.4736.66 ▲3.57
Add New Post /wp-admin/post-new.php1,526 ▼023.69 ▲5.90592.72 ▼103.6444.22 ▼15.69
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.0199.40 ▼13.4644.39 ▼4.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-multi-tiered-shipping/wc-multi-tiered-shipping.php:710

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

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: The official readme.txt is a good inspiration

wc-multi-tiered-shipping/wc-multi-tiered-shipping.php Passed 13 tests

The primary PHP file in "CFD Multi-Tiered Shipping For WooCommerce" version 2.1.1 is used by WordPress to initiate all plugin functionality
61 characters long description:
Add a multi-tiered shipping option to the WooCommerce plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected433 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152233433

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants00.00%
▷ Class constants19100.00%
▷ Public constants19100.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 are no PNG files in this plugin