89% coupon-individual-use-solver-for-woocommerce

Code Review | Individual Use Solver for WooCommerce Coupons - Coupon Categories

WordPress plugin Individual Use Solver for WooCommerce Coupons - Coupon Categories scored89%from 54 tests.

About plugin

  • Plugin page: coupon-individual...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2023
  • Latest release: Oct 20, 2023
  • Number of updates: 6
  • Update frequency: every 1.8 days
  • Top authors: lwsdevelopers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /59 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼12.15ms] Passed 4 tests

An overview of server-side resources used by Individual Use Solver for WooCommerce Coupons - Coupon Categories
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.38 ▲0.30
Dashboard /wp-admin3.41 ▲0.0642.58 ▼19.33
Posts /wp-admin/edit.php3.52 ▲0.1740.05 ▼6.93
Add New Post /wp-admin/post-new.php5.99 ▲0.1078.49 ▼22.65
Media Library /wp-admin/upload.php3.33 ▲0.1038.74 ▲4.47

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Individual Use Solver for WooCommerce Coupons - Coupon Categories
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.091.69 ▼0.0844.26 ▼3.54
Dashboard /wp-admin2,195 ▲185.48 ▼0.1783.23 ▼22.4440.07 ▼2.27
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0631.80 ▼8.3436.07 ▲0.18
Add New Post /wp-admin/post-new.php1,528 ▼123.24 ▲2.30668.27 ▲36.3053.93 ▼4.43
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.04111.70 ▲11.3648.27 ▼5.00

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 issues were found


Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (...)
Please take inspiration from this readme.txt

coupon-individual-use-solver-for-woocommerce/lws-coupon-individual-use-solver.php 69% from 13 tests

The primary PHP file in "Individual Use Solver for WooCommerce Coupons - Coupon Categories" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coupon-individual-use-solver-for-woocommerce.php" instead of "lws-coupon-individual-use-solver.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "7.1.0")

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
Success! There were no dangerous files found in this plugin778 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.83
▷ Minimum class complexity2.00
▷ Maximum class complexity30.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
▷ Static methods1024.39%
▷ Public methods3482.93%
▷ Protected methods49.76%
▷ Private methods37.32%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants637.50%
▷ Class constants1062.50%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin