89% woo-disable-local-pickup-on-ship-to-different-address

Code Review | WooCommerce Disable Local Pickup on Ship to Different Address

WordPress plugin WooCommerce Disable Local Pickup on Ship to Different Address scored89%from 54 tests.

About plugin

  • Plugin page: woo-disable-local...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Nov 5, 2023
  • Number of updates: 10
  • Update frequency: every 227.0 days
  • Top authors: mariankadanka (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by WooCommerce Disable Local Pickup on Ship to Different Address
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.44 ▲0.68
Dashboard /wp-admin3.31 ▲0.0144.95 ▼7.71
Posts /wp-admin/edit.php3.37 ▲0.0145.58 ▼9.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.94 ▼3.60
Media Library /wp-admin/upload.php3.24 ▲0.0131.81 ▼0.96

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Disable Local Pickup on Ship to Different Address
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.10 ▼0.451.86 ▲0.1537.12 ▼5.69
Dashboard /wp-admin2,192 ▲175.51 ▼0.0788.92 ▼16.9838.17 ▼5.08
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0839.93 ▼2.1835.13 ▼0.64
Add New Post /wp-admin/post-new.php1,526 ▼022.99 ▲0.11678.40 ▲43.7868.02 ▲14.79
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.02100.61 ▲2.5639.72 ▼4.71

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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)
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: different address shipping, local pickup, disable shipping, disable local pickup, woocommerce...

woo-disable-local-pickup-on-ship-to-different-address/woo-disable-local-pickup-on-ship-to-different-address.php 77% from 13 tests

The main file in "WooCommerce Disable Local Pickup on Ship to Different Address" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2214252

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ 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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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