89% advanced-shipping-validation-for-woocommerce

Code Review | Advanced Shipping Validation for WooCommerce

WordPress plugin Advanced Shipping Validation for WooCommerce scored 89% 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-6.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2015
  • Latest release: Jun 6, 2022
  • Number of updates: 20
  • Update frequency: every 118.2 days
  • Top authors: sormano (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

800+ active / 13,137 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Advanced Shipping Validation for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5042.84 ▼1.57
Dashboard /wp-admin3.87 ▲0.5756.25 ▲12.06
Posts /wp-admin/edit.php3.98 ▲0.6347.51 ▼1.31
Add New Post /wp-admin/post-new.php6.47 ▲0.5997.45 ▲8.89
Media Library /wp-admin/upload.php3.79 ▲0.5741.33 ▲5.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Shipping Validation for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.131.77 ▼0.1842.82 ▲1.38
Dashboard /wp-admin2,206 ▲185.83 ▼0.0599.37 ▼9.0838.92 ▼4.26
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0535.68 ▼5.0034.68 ▼2.97
Add New Post /wp-admin/post-new.php1,534 ▲2023.33 ▲5.66619.48 ▼62.4151.13 ▼0.23
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.0495.33 ▼7.0841.52 ▼3.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

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 on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: Please take inspiration from this readme.txt

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

The main file in "Advanced Shipping Validation for WooCommerce" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,226 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin