89% themehigh-multiple-addresses

Code Review | Multiple Shipping Addresses for WooCommerce (Address Book)

WordPress plugin Multiple Shipping Addresses for WooCommerce (Address Book) scored89%from 54 tests.

About plugin

  • Plugin page: themehigh-multipl...
  • Plugin version: 2.2.4
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 7, 2020
  • Latest release: Nov 7, 2023
  • Number of updates: 38
  • Update frequency: every 31.3 days
  • Top authors: ThemeHigh (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /22,340 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Multiple Shipping Addresses for WooCommerce (Address Book)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.21 ▼1.28
Dashboard /wp-admin3.31 ▲0.0149.04 ▼1.75
Posts /wp-admin/edit.php3.36 ▲0.0150.32 ▲1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.24 ▼7.82
Media Library /wp-admin/upload.php3.24 ▲0.0135.41 ▲2.20

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

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

Browser metrics Passed 4 tests

Multiple Shipping Addresses for WooCommerce (Address Book): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.22 ▼0.491.84 ▼0.0841.47 ▼2.80
Dashboard /wp-admin2,198 ▲215.62 ▼0.0388.19 ▼12.0137.79 ▼3.70
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0135.00 ▼2.5134.07 ▼0.10
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▼0.04690.67 ▲62.0055.90 ▲8.29
Media Library /wp-admin/upload.php1,403 ▼04.23 ▼0.01103.78 ▲0.7742.90 ▲2.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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)
Even though no errors were found, 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
Everything seems fine, however this is by no means an exhaustive 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)
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
These attributes need to be fixed: You can look at the official readme.txt

themehigh-multiple-addresses/themehigh-multiple-addresses.php 92% from 13 tests

This is the main PHP file of "Multiple Shipping Addresses for WooCommerce (Address Book)" version 2.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.2" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,118 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP206071,8205,052
JavaScript4132911,227
CSS64363768
SVG70071

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity73.67
▷ Minimum class complexity1.00
▷ Maximum class complexity673.00
Average method complexity5.89
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods223
▷ Static methods6730.04%
▷ Public methods19286.10%
▷ Protected methods20.90%
▷ Private methods2913.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants1045.45%
▷ Class constants1254.55%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/images/upgrade-banner.png71.18KB32.77KB▼ 53.95%
admin/assets/css/images/help.png0.30KB0.32KB0.00%
public/assets/css/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%
admin/assets/css/images/delete.png0.48KB0.51KB0.00%
admin/assets/css/images/tick.png3.05KB0.27KB▼ 91.20%