90% hide-address-fields-for-woocommerce

Code Review | Hide Address Fields for WooCommerce

WordPress plugin Hide Address Fields for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: hide-address-fiel...
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 9, 2020
  • Latest release: Oct 22, 2023
  • Number of updates: 30
  • Update frequency: every 36.9 days
  • Top authors: condless (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,977 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼9.67ms] Passed 4 tests

An overview of server-side resources used by Hide Address Fields for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2037.48 ▼3.38
Dashboard /wp-admin3.51 ▲0.1646.21 ▼18.16
Posts /wp-admin/edit.php3.62 ▲0.2649.43 ▲0.34
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.64 ▼17.46
Media Library /wp-admin/upload.php3.43 ▲0.2038.20 ▲2.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hide Address Fields for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.60 ▲0.251.54 ▼0.1339.42 ▼4.79
Dashboard /wp-admin2,195 ▲155.62 ▼0.0085.12 ▼13.1241.45 ▼2.44
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0533.83 ▼1.4134.50 ▼1.25
Add New Post /wp-admin/post-new.php1,528 ▲223.14 ▼0.27670.71 ▲20.4659.31 ▲11.78
Media Library /wp-admin/upload.php1,397 ▲34.17 ▲0.01104.21 ▲8.9346.02 ▲4.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

hide-address-fields-for-woocommerce/hide-address-fields-for-woocommerce.php Passed 13 tests

The main PHP script in "Hide Address Fields for WooCommerce" version 1.1.8 is automatically included on every request by WordPress
116 characters long description:
WooCommerce plugin for hiding the billing address fields on checkout based on the selected shipping/payment methods.

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
No dangerous file extensions were detected987 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP374293940
PO File1111347

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity181.00
▷ Minimum class complexity181.00
▷ Maximum class complexity181.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin