84% woocommerce-shipstation-integration

Code Review | WooCommerce ShipStation Integration

WordPress plugin WooCommerce ShipStation Integration scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-ships...
  • Plugin version: 4.3.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2018
  • Latest release: Sep 5, 2023
  • Number of updates: 61
  • Update frequency: every 29.7 days
  • Top authors: harriswong (18.03%)bor0 (18.03%)royho (11.48%)waclawjacek (9.84%)superdav42 (8.2%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50,000+ active /1,182,470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.67ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce ShipStation Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.58 ▼1.83
Dashboard /wp-admin3.32 ▲0.0246.38 ▼3.67
Posts /wp-admin/edit.php3.37 ▲0.0247.70 ▼0.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.48 ▼11.15
Media Library /wp-admin/upload.php3.24 ▲0.0232.52 ▼2.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce ShipStation Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.25 ▼1.375.49 ▲3.9339.44 ▼1.10
Dashboard /wp-admin2,214 ▲234.82 ▼0.0499.48 ▼2.6739.37 ▼3.41
Posts /wp-admin/edit.php2,099 ▲102.05 ▼0.0141.77 ▲0.1535.16 ▼1.76
Add New Post /wp-admin/post-new.php1,522 ▲817.71 ▲0.19676.74 ▲46.3251.23 ▼11.45
Media Library /wp-admin/upload.php1,393 ▲24.33 ▲0.1296.77 ▼4.6441.76 ▼4.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/woocommerce-shipstation-integration/includes/data/data-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: shipping, woocommerce, automattic

woocommerce-shipstation-integration/woocommerce-shipstation.php 85% from 13 tests

Analyzing the main PHP file in "WooCommerce ShipStation Integration" version 4.3.9
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4.0" instead of "3.4")
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-shipstation-integration.php" instead of "woocommerce-shipstation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,090 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP102894381,074
CSS12016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.88
▷ Minimum class complexity5.00
▷ Maximum class complexity51.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods46
▷ Static methods1021.74%
▷ Public methods3576.09%
▷ Protected methods24.35%
▷ Private methods919.57%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/shipstation-logo-blue.png6.72KB4.67KB▼ 30.41%