90% ship-to-a-different-address-checked-unchecked

Code Review | WooCommerce – Ship to a different address checked or unchecked

WordPress plugin WooCommerce – Ship to a different address checked or unchecked scored90%from 54 tests.

About plugin

  • Plugin page: ship-to-a-differe...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2020
  • Latest release: Feb 2, 2023
  • Number of updates: 10
  • Update frequency: every 93.0 days
  • Top authors: nareshparmar827 (70%)dipakparmar443 (40%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /9,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WooCommerce – Ship to a different address checked or unchecked
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0053.15 ▲8.48
Dashboard /wp-admin3.31 ▲0.0049.95 ▲1.92
Posts /wp-admin/edit.php3.36 ▲0.0047.54 ▼5.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.48 ▼14.88
Media Library /wp-admin/upload.php3.23 ▲0.0039.64 ▲3.91

Server storage [IO: ▲0.01MB] [DB: ▲0.31MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce – Ship to a different address checked or unchecked
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.69 ▲0.341.96 ▲0.2842.68 ▼1.93
Dashboard /wp-admin2,198 ▲245.64 ▲0.0790.87 ▲2.9544.00 ▼1.29
Posts /wp-admin/edit.php2,097 ▼62.00 ▲0.0634.80 ▼10.1835.24 ▼3.95
Add New Post /wp-admin/post-new.php1,526 ▼923.48 ▲5.16674.01 ▲48.2362.49 ▲2.64
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0398.91 ▲0.0247.66 ▲2.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Looking good! No server-side errors or output on direct access of PHP files

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: ship to different address checked, ship to different address unchecked, woocommerce, ship to different address

ship-to-a-different-address-checked-unchecked/ship-to-a-different-address-checked-unchecked.php Passed 13 tests

The main file in "WooCommerce – Ship to a different address checked or unchecked" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
WooCommerce – Ship to a different address checked or unchecked

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin98 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3284398

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin