89% wc-shipping-packages

Code Review | Shipping Packages for WooCommerce - Dropship from multiple locations like AliExpress, eBay, Amazon, Etsy

WordPress plugin Shipping Packages for WooCommerce - Dropship from multiple locations like AliExpress, eBay, Amazon, Etsy scored89%from 54 tests.

About plugin

  • Plugin page: wc-shipping-packages
  • Plugin version: 1.1.32
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2019
  • Latest release: Oct 31, 2023
  • Number of updates: 83
  • Update frequency: every 20.5 days
  • Top authors: oneteamsoftware (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /28,316 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.71ms] Passed 4 tests

This is a short check of server-side resources used by Shipping Packages for WooCommerce - Dropship from multiple locations like AliExpress, eBay, Amazon, Etsy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.92 ▲3.58
Dashboard /wp-admin3.44 ▲0.0943.13 ▼16.52
Posts /wp-admin/edit.php3.55 ▲0.1944.76 ▲4.59
Add New Post /wp-admin/post-new.php6.02 ▲0.1381.55 ▼17.10
Media Library /wp-admin/upload.php3.36 ▲0.1334.52 ▼0.79

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Shipping Packages for WooCommerce - Dropship from multiple locations like AliExpress, eBay, Amazon, Etsy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.19 ▼0.531.72 ▼0.1144.58 ▼3.29
Dashboard /wp-admin2,195 ▲215.62 ▲0.1286.95 ▼4.0936.32 ▲2.13
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0533.69 ▼6.6737.61 ▼0.12
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▲0.01670.31 ▼36.1345.35 ▼9.59
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0295.77 ▼2.2943.00 ▲1.15

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in wc-shipping-packages/assets to your readme.txt
Please take inspiration from this readme.txt

wc-shipping-packages/wc-shipping-packages.php Passed 13 tests

This is the main PHP file of "Shipping Packages for WooCommerce - Dropship from multiple locations like AliExpress, eBay, Amazon, Etsy" version 1.1.32, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Groups products in the cart into packages, so they can be shipped with different shipping methods.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,660 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8382991,525
CSS1230125
JavaScript12010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity36.00
▷ Minimum class complexity2.00
▷ Maximum class complexity124.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods69
▷ Static methods11.45%
▷ Public methods4159.42%
▷ Protected methods2739.13%
▷ Private methods11.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
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%