89% wc-shipstation-shipping

Code Review | Multi-Carrier ShipStation Shipping Rates for WooCommerce

WordPress plugin Multi-Carrier ShipStation Shipping Rates for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-shipstation-sh...
  • Plugin version: 1.4.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: Aug 21, 2023
  • Number of updates: 42
  • Update frequency: every 22.8 days
  • Top authors: oneteamsoftware (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active /6,953 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.28ms] Passed 4 tests

An overview of server-side resources used by Multi-Carrier ShipStation Shipping Rates for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.57 ▼0.17
Dashboard /wp-admin3.41 ▲0.1158.22 ▲7.74
Posts /wp-admin/edit.php3.52 ▲0.1748.47 ▼8.12
Add New Post /wp-admin/post-new.php5.99 ▲0.1188.57 ▼20.81
Media Library /wp-admin/upload.php3.33 ▲0.1141.15 ▼0.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Multi-Carrier ShipStation Shipping Rates for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.131.72 ▼0.4442.62 ▼0.75
Dashboard /wp-admin2,203 ▲124.85 ▼1.05105.77 ▲0.2940.59 ▼6.83
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0237.77 ▼4.0433.73 ▼1.59
Add New Post /wp-admin/post-new.php1,533 ▲1423.12 ▲0.02676.82 ▲73.2754.81 ▼16.83
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.07123.27 ▲14.7862.89 ▲20.27

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

The main PHP script in "Multi-Carrier ShipStation Shipping Rates for WooCommerce" version 1.4.9 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires PHP: Required version 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,639 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,0442304,639

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity31.42
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes19
▷ Abstract classes526.32%
▷ Concrete classes1473.68%
▷ Final classes00.00%
Methods304
▷ Static methods20.66%
▷ Public methods17457.24%
▷ Protected methods12440.79%
▷ Private methods61.97%
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

All PNG images should be compressed to minimize bandwidth usage for end users
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-icon.png0.59KB0.75KB0.00%
assets/images/1TeamSoftware-logo.png14.55KB4.50KB▼ 69.05%