90% hide-woocommerce-product-shipping-information

Code Review | Hide WooCommerce Product Shipping Info

WordPress plugin Hide WooCommerce Product Shipping Info scored90%from 54 tests.

About plugin

  • Plugin page: hide-woocommerce-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Dec 2, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: iCaleb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Hide WooCommerce Product Shipping Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.81 ▼3.27
Dashboard /wp-admin3.31 ▼0.0444.26 ▼10.94
Posts /wp-admin/edit.php3.36 ▲0.0048.71 ▲2.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.09 ▼1.10
Media Library /wp-admin/upload.php3.23 ▲0.0036.30 ▲1.84

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hide WooCommerce Product Shipping Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.11 ▼0.431.81 ▼0.3540.62 ▲3.20
Dashboard /wp-admin2,195 ▲185.56 ▼0.1180.92 ▼3.1637.87 ▼3.34
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0038.64 ▲2.3937.06 ▼1.96
Add New Post /wp-admin/post-new.php1,526 ▼223.47 ▲0.59664.89 ▲15.8259.24 ▲6.37
Media Library /wp-admin/upload.php1,397 ▼04.19 ▼0.0292.82 ▼6.9445.35 ▲2.18

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: hide woocommerce shipping, shipping information, woocommerce shipping, woocommerce, shipping dimensions...

hide-woocommerce-product-shipping-information/hide-woocommerce-product-shipping-information.php Passed 13 tests

The main PHP script in "Hide WooCommerce Product Shipping Info" version 1.0 is automatically included on every request by WordPress
79 characters long description:
Control which products should display shipping information on the product page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected84 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3247384

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin