89% wc-shipengine-shipping

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

WordPress plugin Multi-Carrier ShipEngine Shipping Rates & Address Validation for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: wc-shipengine-shi...
  • Plugin version: 1.3.9
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 21, 2021
  • Latest release: Aug 21, 2023
  • Number of updates: 29
  • Update frequency: every 32.1 days
  • Top authors: oneteamsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,085 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Multi-Carrier ShipEngine Shipping Rates & Address Validation for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.56 ▼11.06
Dashboard /wp-admin3.31 ▲0.0149.53 ▲1.66
Posts /wp-admin/edit.php3.43 ▲0.0746.69 ▼0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.51 ▼2.33
Media Library /wp-admin/upload.php3.24 ▲0.0136.81 ▲1.57

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Multi-Carrier ShipEngine Shipping Rates & Address Validation for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.983.96 ▲1.6340.51 ▼10.29
Dashboard /wp-admin2,209 ▲214.85 ▼1.00100.07 ▼2.7736.59 ▼7.56
Posts /wp-admin/edit.php2,089 ▲32.00 ▲0.0233.33 ▼3.5934.15 ▲2.51
Add New Post /wp-admin/post-new.php1,534 ▲1423.22 ▲0.15642.90 ▲5.2750.66 ▼6.22
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0295.65 ▼7.2143.99 ▼0.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

wc-shipengine-shipping/wc-shipengine-shipping.php 92% from 13 tests

The principal PHP file in "Multi-Carrier ShipEngine Shipping Rates & Address Validation for WooCommerce" v. 1.3.9 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Plugin Name: A shorter plugin name is better (currently 76 characters long instead of max. 70)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,702 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,0772364,702

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.38
Average class complexity31.47
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes19
▷ Abstract classes526.32%
▷ Concrete classes1473.68%
▷ Final classes00.00%
Methods312
▷ Static methods20.64%
▷ Public methods17756.73%
▷ Protected methods12941.35%
▷ Private methods61.92%
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

Using a strong compression for your PNG files is a great way to speed-up 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%