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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.25ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Coupons for WooCommerce Free
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 33.14 ▼2.25 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.21 ▲1.36 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 43.80 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 79.22 ▼15.67 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 37.80 ▲6.37 |
Server storage [IO: ▲14.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 524 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Coupons for WooCommerce Free
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲19 | 14.25 ▼0.10 | 1.75 ▼0.07 | 36.21 ▼3.78 |
Dashboard /wp-admin | 2,214 ▲40 | 5.68 ▲0.10 | 81.92 ▼3.56 | 67.51 ▲28.92 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.97 ▼0.02 | 35.17 ▼5.14 | 35.12 ▼4.90 |
Add New Post /wp-admin/post-new.php | 1,695 ▲169 | 22.45 ▼1.01 | 681.81 ▲48.18 | 62.78 ▲17.11 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.06 ▼0.21 | 99.13 ▲0.73 | 84.25 ▲39.39 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 117× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/ultimate-coupon-for-woocommerce/render/Front/markup/template-snackbar-blackfriday-1.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/Color_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Scalar_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-coupon-for-woocommerce/render/Admin/js/conditions.js.php:6
- > PHP Notice
Undefined variable: errors in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Theme_Options_Container' not found in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Network_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/ultimate-coupon-for-woocommerce/vendor/htmlburger/carbon-fields/core/Service/REST_API_Service.php:11
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #7, #8 in ultimate-coupon-for-woocommerce/assets to your readme.txt
ultimate-coupon-for-woocommerce/ultimate-coupon-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "Ultimate Coupons for WooCommerce Free" version 1.1.9
79 characters long description:
An e-commerce discount and marketing plugin for WooCommerce. Powered by Jompha.
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 plugin84,242 lines of code in 442 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 176 | 6,762 | 9,112 | 33,314 |
CSS | 14 | 8,370 | 5,767 | 30,802 |
PHP | 169 | 3,328 | 7,309 | 12,846 |
SVG | 3 | 0 | 12 | 2,880 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 48 | 338 | 0 | 1,764 |
JSON | 3 | 0 | 0 | 366 |
Markdown | 3 | 24 | 0 | 68 |
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 code | 0.31 |
Average class complexity | 10.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 139 | |
▷ Abstract classes | 11 | 7.91% |
▷ Concrete classes | 128 | 92.09% |
▷ Final classes | 2 | 1.56% |
Methods | 1,085 | |
▷ Static methods | 127 | 11.71% |
▷ Public methods | 883 | 81.38% |
▷ Protected methods | 165 | 15.21% |
▷ Private methods | 37 | 3.41% |
Functions | 102 | |
▷ Named functions | 22 | 21.57% |
▷ Anonymous functions | 80 | 78.43% |
Constants | 47 | |
▷ Global constants | 16 | 34.04% |
▷ Class constants | 31 | 65.96% |
▷ Public constants | 31 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.97MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/semantic/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |
resources/images/preview-template-snackbar-christmas-1.png | 64.49KB | 19.79KB | ▼ 69.31% |
resources/images/template-snackbar-blackfriday-1-background.png | 198.33KB | 121.66KB | ▼ 38.66% |
resources/images/preview-template-snackbar-blackfriday-1.png | 192.67KB | 99.03KB | ▼ 48.60% |
resources/images/ucfw-icon.png | 4.14KB | 2.23KB | ▼ 46.10% |