89% wc-shippo-shipping

Code Review | Multi-Carrier Shippo Shipping Rates & Address Validation for WooCommerce

WordPress plugin Multi-Carrier Shippo Shipping Rates & Address Validation for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-shippo-shipping
  • Plugin version: 1.5.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2020
  • Latest release: Aug 21, 2023
  • Number of updates: 66
  • Update frequency: every 16.2 days
  • Top authors: oneteamsoftware (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /27,772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.88ms] Passed 4 tests

Analyzing server-side resources used by Multi-Carrier Shippo Shipping Rates & Address Validation for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.03 ▼0.43
Dashboard /wp-admin3.31 ▲0.0148.26 ▼0.47
Posts /wp-admin/edit.php3.43 ▲0.0749.24 ▲1.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.42 ▼23.15
Media Library /wp-admin/upload.php3.24 ▲0.0136.57 ▲0.55

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Multi-Carrier Shippo Shipping Rates & Address Validation for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.101.60 ▼0.1342.20 ▼1.40
Dashboard /wp-admin2,195 ▲155.59 ▼0.0286.56 ▼4.9142.48 ▲1.80
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0033.83 ▼1.7635.41 ▼0.78
Add New Post /wp-admin/post-new.php1,537 ▲1118.28 ▼4.91632.07 ▼36.3775.84 ▲20.28
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.0497.22 ▼8.5541.86 ▼5.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

wc-shippo-shipping/wc-shippo-shipping.php 85% from 13 tests

The entry point to "Multi-Carrier Shippo Shipping Rates & Address Validation for WooCommerce" version 1.5.9 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Plugin Name: Please shorten the plugin name (currently 72 characters long instead of max. 70)
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.3" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,166 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,0982275,166

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity32.47
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes19
▷ Abstract classes526.32%
▷ Concrete classes1473.68%
▷ Final classes00.00%
Methods309
▷ Static methods20.65%
▷ Public methods17857.61%
▷ Protected methods12540.45%
▷ Private methods61.94%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/1TeamSoftware-logo.png14.55KB4.50KB▼ 69.05%
assets/images/1TeamSoftware-icon.png0.59KB0.75KB0.00%