89% free-shipping-coupons-behavior-for-woocommerce

Code Review | "Free Shipping" Coupons Behavior for WooCommerce

WordPress plugin "Free Shipping" Coupons Behavior for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: free-shipping-cou...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2019
  • Latest release: Sep 19, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: blueglassinteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.10ms] Passed 4 tests

This is a short check of server-side resources used by "Free Shipping" Coupons Behavior for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.67 ▼1.62
Dashboard /wp-admin3.34 ▲0.0444.87 ▼4.40
Posts /wp-admin/edit.php3.39 ▲0.0450.15 ▲3.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.88 ▼0.95
Media Library /wp-admin/upload.php3.26 ▲0.0437.03 ▲2.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for "Free Shipping" Coupons Behavior for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.081.94 ▼0.3042.56 ▼0.70
Dashboard /wp-admin2,209 ▲215.85 ▲0.95107.53 ▼10.0442.80 ▼5.13
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0141.24 ▲3.7134.67 ▼0.50
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▲0.02673.83 ▼22.4858.02 ▲7.13
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.1199.73 ▼7.6944.66 ▼2.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 86% from 29 tests

readme.txt Passed 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
6 plugin tags: shipping, coupons, free shipping, delivery, woocommerce...

free-shipping-coupons-behavior-for-woocommerce/woo_coupon_free_shipping.php 69% from 13 tests

Analyzing the main PHP file in ""Free Shipping" Coupons Behavior for WooCommerce" version 1.0.0
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("free-shipping-coupons-behavior-for-woocommerce.php" instead of "woo_coupon_free_shipping.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.3" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin196 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16249196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin