84% coupons-booster-for-woocommerce

Code Review | PRyC WP: Coupons Booster for WooCommerce

WordPress plugin PRyC WP: Coupons Booster for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: coupons-booster-f...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2022
  • Latest release: Jun 20, 2023
  • Number of updates: 30
  • Update frequency: every 17.5 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by PRyC WP: Coupons Booster for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.0543.16 ▼0.94
Dashboard /wp-admin3.60 ▼0.0350.71 ▼16.07
Posts /wp-admin/edit.php3.72 ▲0.0450.57 ▼5.05
Add New Post /wp-admin/post-new.php6.19 ▲0.0487.52 ▼25.56
Media Library /wp-admin/upload.php3.53 ▲0.0440.45 ▲1.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for PRyC WP: Coupons Booster for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.001.86 ▼0.1740.36 ▼5.33
Dashboard /wp-admin2,192 ▲215.53 ▼0.0284.05 ▼7.9040.42 ▲1.40
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0235.89 ▼1.5143.44 ▲7.15
Add New Post /wp-admin/post-new.php1,526 ▼017.80 ▲0.30708.61 ▲28.9854.77 ▲2.38
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.01108.36 ▼1.4147.61 ▲5.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupons-booster-for-woocommerce/coupon-booster-for-woocommerce.php:16

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: woocommerce, ecommerce, cart, coupon, coupons...

coupons-booster-for-woocommerce/coupon-booster-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "PRyC WP: Coupons Booster for WooCommerce" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("coupons-booster-for-woocommerce.php" instead of "coupon-booster-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected181 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18658143
PO File1121438

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin