89% wc-shipping-method-description

Code Review | Shipping Method Description for WooCommerce

WordPress plugin Shipping Method Description for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-shipping-metho...
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Aug 17, 2021
  • Latest release: Jul 14, 2022
  • Number of updates: 19
  • Update frequency: every 17.4 days
  • Top authors: thomascharbit (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /7,229 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Shipping Method Description for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.59 ▼4.22
Dashboard /wp-admin3.32 ▲0.0248.63 ▲0.54
Posts /wp-admin/edit.php3.37 ▲0.0248.72 ▲9.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.08 ▼14.18
Media Library /wp-admin/upload.php3.24 ▲0.0235.49 ▼0.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Shipping Method Description for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.37 ▼0.361.84 ▲0.0345.32 ▲0.90
Dashboard /wp-admin2,204 ▲305.58 ▼0.0890.30 ▼5.3944.92 ▼0.22
Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0439.68 ▲2.9536.39 ▲4.12
Add New Post /wp-admin/post-new.php1,534 ▲822.91 ▼0.66653.75 ▲13.9059.50 ▲2.46
Media Library /wp-admin/upload.php1,409 ▲94.21 ▲0.02102.04 ▼13.0345.86 ▼2.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woocommerce, description, shipping

wc-shipping-method-description/shipping-method-description-for-woocommerce.php 85% from 13 tests

"Shipping Method Description for WooCommerce" version 1.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-shipping-method-description.php" instead of "shipping-method-description-for-woocommerce.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "4.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin93 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3165193

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin