84% wc-no-shipping-message

Code Review | WooCommerce No Shipping Message

WordPress plugin WooCommerce No Shipping Message scored84%from 54 tests.

About plugin

  • Plugin page: wc-no-shipping-me...
  • Plugin version: 2.1.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Nov 20, 2023
  • Number of updates: 54
  • Update frequency: every 54.5 days
  • Top authors: dangoodman (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

5,000+ active /97,906 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.25ms] Passed 4 tests

Server-side resources used by WooCommerce No Shipping Message
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.86 ▼4.16
Dashboard /wp-admin3.32 ▲0.0246.23 ▼3.04
Posts /wp-admin/edit.php3.37 ▲0.0247.06 ▼0.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.74 ▼5.31
Media Library /wp-admin/upload.php3.25 ▲0.0233.03 ▼0.48

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
wnsm_db_version
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce No Shipping Message
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2814.30 ▼0.341.85 ▼0.2842.48 ▼1.59
Dashboard /wp-admin2,198 ▲175.59 ▼0.0893.38 ▼10.1337.17 ▼5.16
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0538.73 ▼3.0635.46 ▼1.49
Add New Post /wp-admin/post-new.php1,526 ▼323.31 ▲0.19643.46 ▼11.4357.65 ▲6.69
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0894.63 ▼6.5141.81 ▼1.08

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • wnsm_db_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Wnsm\\get_file_data() in wp-content/plugins/wc-no-shipping-message/src/App.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-no-shipping-message/migrations/2.0.0.php:12

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 errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: woocommerce shipping, shipping, woocommerce no shipping, woocommerce no shipping options were found, woocommerce

wc-no-shipping-message/wc-no-shipping-message.php 92% from 13 tests

This is the main PHP file of "WooCommerce No Shipping Message" version 2.1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 191 characters long)

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
Good job! No executable or dangerous file extensions detected390 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP78734346
JavaScript110138
CSS1106

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods842.11%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
3 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshots/checkout-notice.png94.16KB42.27KB▼ 55.11%
assets/screenshots/checkout.png90.04KB40.54KB▼ 54.98%
assets/screenshots/cart.png84.69KB36.63KB▼ 56.75%