89% coupon-helper-for-woocommerce

Code Review | Coupon Helper for WooCommerce

WordPress plugin Coupon Helper for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: coupon-helper-for...
  • Plugin version: 1.3.6
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2017
  • Latest release: Nov 10, 2023
  • Number of updates: 11
  • Update frequency: every 200.0 days
  • Top authors: imemine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /833 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.02MB] [CPU: ▼4.17ms] Passed 4 tests

This is a short check of server-side resources used by Coupon Helper for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.39 ▼8.39
Dashboard /wp-admin3.33 ▲0.0345.29 ▼5.32
Posts /wp-admin/edit.php3.38 ▲0.0247.62 ▼0.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.83 ▲5.04
Media Library /wp-admin/upload.php3.25 ▲0.0232.95 ▼2.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Coupon Helper for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲2014.39 ▲0.031.67 ▼0.2438.66 ▼7.51
Dashboard /wp-admin2,197 ▲175.61 ▼0.0691.82 ▼1.4736.72 ▼9.27
Posts /wp-admin/edit.php2,105 ▲51.99 ▼0.0139.80 ▲2.6335.81 ▲1.96
Add New Post /wp-admin/post-new.php1,528 ▲223.14 ▼0.02597.17 ▼85.8552.22 ▼4.09
Media Library /wp-admin/upload.php1,396 ▼44.18 ▲0.0297.97 ▼1.3041.96 ▼2.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected 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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

coupon-helper-for-woocommerce/coupon-helper-woo.php 85% from 13 tests

The primary PHP file in "Coupon Helper for WooCommerce" version 1.3.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("coupon-helper-for-woocommerce.php" instead of "coupon-helper-woo.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1393676
JavaScript15011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.68
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin