89% checkout-shipping-message-add-on-for-woocommerce

Code Review | Checkout Shipping Message Add-on for WooCommerce

WordPress plugin Checkout Shipping Message Add-on for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: checkout-shipping...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.7
  • WordPress version: 6.3.1
  • First release: Dec 12, 2019
  • Latest release: Apr 14, 2021
  • Number of updates: 4
  • Update frequency: every 122.2 days
  • Top authors: willduttenhance (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.41ms] Passed 4 tests

A check of server-side resources used by Checkout Shipping Message Add-on for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.32 ▼5.78
Dashboard /wp-admin3.32 ▼0.0347.33 ▼19.22
Posts /wp-admin/edit.php3.37 ▲0.0149.28 ▼1.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.89 ▼23.03
Media Library /wp-admin/upload.php3.24 ▲0.0142.35 ▲5.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Checkout Shipping Message Add-on for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.33 ▲0.051.62 ▼0.0342.88 ▲3.97
Dashboard /wp-admin2,192 ▲155.55 ▼0.0284.97 ▼7.6937.93 ▼4.47
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0236.50 ▼0.3933.79 ▼6.63
Add New Post /wp-admin/post-new.php1,526 ▼023.41 ▼0.34706.24 ▲29.3853.92 ▼5.54
Media Library /wp-admin/upload.php1,397 ▼64.23 ▼0.00135.41 ▲32.3353.39 ▲7.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

checkout-shipping-message-add-on-for-woocommerce/checkout-shipping-message.php 92% from 13 tests

This is the main PHP file of "Checkout Shipping Message Add-on for WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("checkout-shipping-message-add-on-for-woocommerce.php" instead of "checkout-shipping-message.php")

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
Good job! No executable or dangerous file extensions detected116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21232109
CSS1207

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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