93% multiple-shipping-options-for-woocommerce

Code Review | Multiple Shipping Options for WooCommerce

WordPress plugin Multiple Shipping Options for WooCommerce scored 93% from 54 tests.

About plugin

  • Plugin page: multiple-shipping...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8.1
  • WordPress version: 5.9.2
  • First release: Sep 1, 2021
  • Latest release: Sep 19, 2021
  • Number of updates: 3
  • Update frequency: every 6.0 days
  • Top authors: minilogicstechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼290.53ms] Passed 4 tests

This is a short check of server-side resources used by Multiple Shipping Options for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1561.08 ▲9.56
Dashboard /wp-admin3.48 ▲0.0835.69 ▲4.07
Posts /wp-admin/edit.php3.72 ▲0.0839.77 ▼2.14
Add New Post /wp-admin/post-new.php6.95 ▼0.0296.72 ▼1,173.59
Media Library /wp-admin/upload.php3.37 ▲0.0737.08 ▲11.00

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Multiple Shipping Options for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲6115.63 ▼0.026.73 ▲0.332.53 ▲0.48
Dashboard /wp-admin2,898 ▲376.15 ▲0.06151.09 ▲13.81177.84 ▼10.48
Posts /wp-admin/edit.php2,696 ▲113.25 ▲0.0266.48 ▲3.09209.99 ▲60.12
Add New Post /wp-admin/post-new.php1,630 ▼13019.93 ▼2.18496.87 ▲60.56176.98 ▼11.90
Media Library /wp-admin/upload.php1,705 ▲75.55 ▲0.01162.23 ▼57.04218.77 ▲23.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multiple-shipping-options-for-woocommerce/mso-install.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (30 tag instead of maximum 10)
The official readme.txt might help

multiple-shipping-options-for-woocommerce/multiple-shipping-options-for-woocommerce.php 85% from 13 tests

The primary PHP file in "Multiple Shipping Options for WooCommerce" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.7" instead of "5.0.0")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected11,126 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity18.93
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
▷ Static methods3327.05%
▷ Public methods12098.36%
▷ Protected methods00.00%
▷ Private methods21.64%
▷ Named functions1191.67%
▷ Anonymous functions18.33%
▷ Global constants6100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bin.png39.40KB16.74KB▼ 57.51%