90% woocommerce-multiple-addresses

Code Review | Woocommerce Multiple Addresses

WordPress plugin Woocommerce Multiple Addresses scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-multi...
  • Plugin version: 1.0.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2013
  • Latest release: Jun 10, 2015
  • Number of updates: 22
  • Update frequency: every 25.4 days
  • Top authors: N3wNormal (72.73%)dix.alex (31.82%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /11,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.83ms] Passed 4 tests

This is a short check of server-side resources used by Woocommerce Multiple Addresses
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.07 ▲5.53
Dashboard /wp-admin3.31 ▲0.0043.58 ▼4.79
Posts /wp-admin/edit.php3.36 ▲0.0045.14 ▼4.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.20 ▼12.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.49 ▼1.81

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce Multiple Addresses
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.391.86 ▲0.1947.27 ▼1.23
Dashboard /wp-admin2,209 ▲215.91 ▲0.0998.91 ▼3.7739.50 ▼12.86
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0535.02 ▼6.8732.38 ▼3.32
Add New Post /wp-admin/post-new.php1,543 ▲1022.76 ▼0.40592.91 ▼64.1149.17 ▼6.86
Media Library /wp-admin/upload.php1,391 ▲64.29 ▲0.0295.73 ▼5.5440.34 ▼5.81

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: predefined addresses, multiple addresses, shipping, woocommerce

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

The main file in "Woocommerce Multiple Addresses" v. 1.0.7.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)

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
Good job! No executable or dangerous file extensions detected669 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5128233426
PO File33573136
JavaScript1283102
CSS1115

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods1680.00%
▷ Protected methods00.00%
▷ Private methods420.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin