62% different-shipping-and-billing-address-for-woocommerce

Code Review | Multiple Shipping And Billing Address For Woocommerce

WordPress plugin Multiple Shipping And Billing Address For Woocommerce scored62%from 54 tests.

About plugin

  • Plugin page: different-shippin...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 9
  • Update frequency: every 52.0 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /585 total downloads

Benchmarks

Plugin footprint 65% 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.00MB] [CPU: ▼3.19ms] Passed 4 tests

An overview of server-side resources used by Multiple Shipping And Billing Address For Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.63 ▼6.98
Dashboard /wp-admin3.31 ▲0.0044.77 ▼5.41
Posts /wp-admin/edit.php3.36 ▲0.0048.99 ▼0.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.68 ▲7.67
Media Library /wp-admin/upload.php3.23 ▲0.0033.41 ▼0.01
Different Address Option /wp-admin/admin.php?page=different-address3.0022.67

Server storage [IO: ▲0.14MB] [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: 1 new table, 6 new options
New tables
wp_dsabafw_billingadress
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Multiple Shipping And Billing Address For Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.46 ▼0.752.10 ▲0.3241.53 ▼9.64
Dashboard /wp-admin2,206 ▲184.85 ▼1.01108.44 ▲0.5943.34 ▼0.66
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0539.72 ▲4.4235.60 ▲2.41
Add New Post /wp-admin/post-new.php1,547 ▲3318.49 ▲0.90607.22 ▼54.4272.33 ▲5.64
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0699.89 ▼7.4841.11 ▼3.38
Different Address Option /wp-admin/admin.php?page=different-address280.440.133.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_dsabafw_billingadress
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/different-shipping-and-billing-address-for-woocommerce/dsabafw-multiple-address.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/different-shipping-and-billing-address-for-woocommerce/main/resources/dsabafw-language.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/different-shipping-and-billing-address-for-woocommerce/main/resources/dsabafw-load-js-css.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/different-shipping-and-billing-address-for-woocommerce/main/resources/dsabafw-installation-require.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=different-address
    • > Network (severe)
    wp-admin/admin.php?page=different-address - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

different-shipping-and-billing-address-for-woocommerce/dsabafw-multiple-address.php 92% from 13 tests

The main PHP file in "Multiple Shipping And Billing Address For Woocommerce" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("different-shipping-and-billing-address-for-woocommerce.php" instead of "dsabafw-multiple-address.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,546 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7145641,534
JavaScript37016558
CSS2816454

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected