90% woocommerce-hide-checkout-shipping-address

Code Review | WooCommerce Hide Checkout Shipping Address

WordPress plugin WooCommerce Hide Checkout Shipping Address scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-hide-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Nov 5, 2016
  • Number of updates: 17
  • Update frequency: every 38.5 days
  • Top authors: ronald_edelschaap (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /15,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.89ms] Passed 4 tests

A check of server-side resources used by WooCommerce Hide Checkout Shipping Address
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.36 ▲3.63
Dashboard /wp-admin3.36 ▲0.0249.60 ▼20.85
Posts /wp-admin/edit.php3.47 ▲0.1249.53 ▼0.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.55 ▼19.20
Media Library /wp-admin/upload.php3.28 ▲0.0638.86 ▲0.79

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Hide Checkout Shipping Address
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.25 ▲0.021.77 ▲0.0943.90 ▼3.77
Dashboard /wp-admin2,198 ▲245.52 ▼0.0883.74 ▼22.9141.35 ▼2.27
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0137.58 ▲2.0134.43 ▼4.30
Add New Post /wp-admin/post-new.php1,529 ▼217.64 ▼5.71640.53 ▼43.3947.23 ▼6.48
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0798.94 ▼15.6244.13 ▼2.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: woocommerce, hide shipping address, checkout, shipping, shipping method...

woocommerce-hide-checkout-shipping-address/woocommerce-hide-checkout-shipping-address.php 92% from 13 tests

"WooCommerce Hide Checkout Shipping Address" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin510 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2129406381
JavaScript14067
PO File1101062

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.31
Average class complexity22.00
▷ Minimum class complexity15.00
▷ Maximum class complexity29.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods52
▷ Static methods1732.69%
▷ Public methods3363.46%
▷ Protected methods00.00%
▷ Private methods1936.54%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 files were detected