78% multiple-shipping-address-woocommerce

Code Review | Multiple Shipping Address Woocommerce

WordPress plugin Multiple Shipping Address Woocommerce scored 78% from 54 tests.

About plugin

  • Plugin page: multiple-shipping...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jan 22, 2020
  • Latest release: Sep 21, 2021
  • Number of updates: 22
  • Update frequency: every 27.6 days
  • Top authors: vp956009 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

800+ active / 4,725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Multiple Shipping Address Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0033.62 ▼17.98
Dashboard /wp-admin3.06 ▲0.0049.85 ▲0.13
Posts /wp-admin/edit.php3.11 ▲0.0044.96 ▼0.32
Add New Post /wp-admin/post-new.php5.42 ▼0.0291.56 ▼565.25
Media Library /wp-admin/upload.php3.00 ▲0.0032.49 ▼0.71
Multiple Address Option /wp-admin/admin.php?page=multiple-address2.7422.28
Essential Kit /wp-admin/admin.php?page=ocwma_kit2.7418.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, no new options
New tables
wp_ocwma_billingadress

Browser metrics Passed 4 tests

An overview of browser requirements for Multiple Shipping Address Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲19216.16 ▲0.2110.99 ▲0.6346.86 ▼2.09
Dashboard /wp-admin2,967 ▲305.93 ▼0.04149.34 ▼5.16102.96 ▼4.11
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0166.29 ▲0.7787.31 ▼1.34
Add New Post /wp-admin/post-new.php1,500 ▼18318.51 ▼0.24433.10 ▲44.41111.07 ▲6.33
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.01151.87 ▲5.57118.59 ▲0.68
Multiple Address Option /wp-admin/admin.php?page=multiple-address280.900.1010.65
Essential Kit /wp-admin/admin.php?page=ocwma_kit280.900.0511.28

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 tables detected upon uninstall: 1 table
    • wp_ocwma_billingadress

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/multiple-shipping-address-woocommerce/oc-woo-multiple-address.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=multiple-address
    • > Network (severe)
    wp-admin/admin.php?page=multiple-address - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=ocwma_kit
    • > Network (severe)
    wp-admin/admin.php?page=ocwma_kit - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: The official readme.txt might help

multiple-shipping-address-woocommerce/oc-woo-multiple-address.php 92% from 13 tests

The primary PHP file in "Multiple Shipping Address Woocommerce" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multiple-shipping-address-woocommerce.php" instead of "oc-woo-multiple-address.php")

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
Good job! No executable or dangerous file extensions detected2,994 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5291371,742
CSS22714686
JavaScript39014566

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity30.80
▷ Minimum class complexity3.00
▷ Maximum class complexity74.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods55
▷ Static methods59.09%
▷ Public methods55100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/star.png39.75KB10.35KB▼ 73.95%