Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.51ms] Passed 4 tests
An overview of server-side resources used by Smart Coupons For WooCommerce Coupons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.48 ▼6.38 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.32 ▼1.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.38 ▲5.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.04 ▲9.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.51 ▲1.18 |
Server storage [IO: ▲3.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 171 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Smart Coupons For WooCommerce Coupons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▲0.09 | 1.57 ▼0.19 | 37.33 ▼6.71 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.12 | 98.95 ▲1.63 | 42.35 ▼4.03 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.94 ▼0.06 | 40.55 ▲3.56 | 34.82 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.54 ▲0.46 | 681.51 ▲49.19 | 56.07 ▲2.78 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.21 ▲0.02 | 95.10 ▼1.05 | 42.71 ▲2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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 following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wt-smart-coupons-for-woocommerce/common/modules/coupon_style/data/data.template_stitched_padding.php
- > /wp-content/plugins/wt-smart-coupons-for-woocommerce/common/modules/coupon_style/data/data.template_default.php
- > /wp-content/plugins/wt-smart-coupons-for-woocommerce/public/templates/wt-smart-coupon-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wt-smart-coupons-for-woocommerce/includes/class-wt-smartcoupon-uninstall-feedback.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wt-smart-coupons-for-woocommerce/admin/views/general_settings.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
wt-smart-coupons-for-woocommerce/wt-smart-coupon.php 85% from 13 tests
The main PHP file in "Smart Coupons For WooCommerce Coupons" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wt-smart-coupons-for-woocommerce.php" instead of "wt-smart-coupon.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
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
There were no executable files found in this plugin27,540 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 4,877 | 7,834 | 14,068 |
PHP | 69 | 2,147 | 3,032 | 10,570 |
JavaScript | 14 | 216 | 130 | 2,118 |
CSS | 8 | 67 | 65 | 588 |
SVG | 22 | 0 | 0 | 196 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 33.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 260.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 88.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 402 | |
▷ Static methods | 133 | 33.08% |
▷ Public methods | 352 | 87.56% |
▷ Protected methods | 4 | 1.00% |
▷ Private methods | 46 | 11.44% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.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
32 PNG files occupy 0.45MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/modules/freevspro/assets/images/tick_icon_green.png | 6.63KB | 0.38KB | ▼ 94.27% |
admin/modules/other_solutions/assets/images/wt_al_logo.png | 4.30KB | 2.71KB | ▼ 37.06% |
admin/modules/other_solutions/assets/images/stripe-plugin.png | 21.80KB | 21.54KB | ▼ 1.16% |
admin/modules/other_solutions/assets/images/url-coupons-plugin.png | 19.84KB | 19.59KB | ▼ 1.26% |
admin/modules/other_solutions/assets/images/bulk_generate.png | 48.72KB | 16.54KB | ▼ 66.04% |