99% advanced-shipping-validation-for-woocommerce

Code Review | Advanced Shipping Validation for WooCommerce

WordPress plugin Advanced Shipping Validation for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-shipping...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 5.9.2
  • First release: Dec 24, 2015
  • Latest release: Jan 28, 2020
  • Number of updates: 18
  • Update frequency: every 83.5 days
  • Top authors: sormano (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 11,019 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.56MB] [CPU: ▼288.63ms] Passed 4 tests

An overview of server-side resources used by Advanced Shipping Validation for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.5659.64 ▲10.52
Dashboard /wp-admin3.98 ▲0.5739.27 ▲2.40
Posts /wp-admin/edit.php4.20 ▲0.5640.86 ▲3.87
Add New Post /wp-admin/post-new.php7.55 ▲0.55100.04 ▼1,160.34
Media Library /wp-admin/upload.php3.93 ▲0.6331.42 ▼0.43

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 75 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Shipping Validation for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.91 ▲0.275.98 ▼0.132.94 ▼0.24
Dashboard /wp-admin2,885 ▲246.16 ▼0.06118.87 ▼15.76154.65 ▼8.54
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0063.81 ▼1.24139.43 ▼2.35
Add New Post /wp-admin/post-new.php1,661 ▼3516.67 ▼5.38414.59 ▼18.44152.71 ▼10.05
Media Library /wp-admin/upload.php1,698 ▲65.44 ▼0.06141.95 ▲4.74191.06 ▼0.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt might help

advanced-shipping-validation-for-woocommerce/advanced-shipping-validation-for-woocommerce.php 92% from 13 tests

The main PHP script in "Advanced Shipping Validation for WooCommerce" version 1.1.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected3,226 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.10
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes11.96%
▷ Concrete classes5098.04%
▷ Final classes00.00%
▷ Static methods20.89%
▷ Public methods22198.22%
▷ Protected methods00.00%
▷ Private methods41.78%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ 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