Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼2.54ms] Passed 4 tests
This is a short check of server-side resources used by Coupon Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 40.66 ▼6.42 |
Dashboard /wp-admin | 3.58 ▲0.27 | 48.68 ▼0.11 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.92 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 89.87 ▼4.32 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.68 ▲0.91 |
Category /wp-admin/edit-tags.php?taxonomy=coupon-category&post_type=coupon | 3.49 | 39.17 |
Go Pro ➤ /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting&tab=pro_settings | 3.50 | 33.59 |
Add New /wp-admin/post-new.php?post_type=coupon | 3.56 | 49.71 |
All Coupons /wp-admin/edit.php?post_type=coupon | 3.54 | 40.57 |
Settings /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting | 3.49 | 33.52 |
Store /wp-admin/edit-tags.php?taxonomy=coupon-store&post_type=coupon | 3.49 | 36.40 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
coupon_plugin_settings |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Coupon Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲139 | 13.19 ▼0.80 | 1.61 ▼0.18 | 40.64 ▼7.84 |
Dashboard /wp-admin | 2,267 ▲79 | 5.90 ▲0.79 | 100.26 ▼12.85 | 41.13 ▼0.55 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.02 ▲0.03 | 36.45 ▼6.45 | 34.92 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,562 ▲20 | 23.19 ▲4.70 | 612.64 ▲0.94 | 65.02 ▲14.40 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.25 ▲0.07 | 98.06 ▼14.13 | 50.11 ▼2.90 |
Category /wp-admin/edit-tags.php?taxonomy=coupon-category&post_type=coupon | 1,319 | 2.18 | 27.06 | 29.03 |
Go Pro ➤ /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting&tab=pro_settings | 1,073 | 1.92 | 29.81 | 60.23 |
Add New /wp-admin/post-new.php?post_type=coupon | 1,774 | 2.88 | 56.18 | 61.71 |
All Coupons /wp-admin/edit.php?post_type=coupon | 1,168 | 1.93 | 35.33 | 37.34 |
Settings /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting | 1,528 | 2.85 | 66.06 | 33.92 |
Store /wp-admin/edit-tags.php?taxonomy=coupon-store&post_type=coupon | 1,319 | 2.15 | 28.18 | 29.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- coupon_plugin_settings
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 50× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function CouponPlugin\\Custom\\PostType\\add_action() in wp-content/plugins/coupon-lite/src/custom/post-type/coupon.php:14
- > PHP Warning
Use of undefined constant COUPON_PLUGIN_PATH - assumed 'COUPON_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/coupon-lite/src/custom/custom.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/coupon-lite/src/custom/shortcode/views/coupon.php:24
- > PHP Warning
include(COUPON_PLUGIN_PATHsrc/custom/admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
include(COUPON_PLUGIN_PATHsrc/custom/helpers/functions.php): failed to open stream: No such file or directory in wp-content/plugins/coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
include(): Failed opening 'COUPON_PLUGIN_PATHsrc/custom/meta/term-meta.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
include(COUPON_PLUGIN_PATHsrc/custom/meta/term-meta.php): failed to open stream: No such file or directory in wp-content/plugins/coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
Use of undefined constant COUPON_PLUGIN_PATH - assumed 'COUPON_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/coupon-lite/src/custom/custom.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/coupon-lite/src/custom/meta/views/term-uploader.php:4
- > PHP Notice
Undefined variable: popular_coupon in wp-content/plugins/coupon-lite/src/custom/shortcode/views/coupon.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in coupon-lite/assets to your readme.txt
coupon-lite/coupon-plugin-lite.php 77% from 13 tests
This is the main PHP file of "Coupon Plugin" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "5.6")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("coupon-lite.php" instead of "coupon-plugin-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,410 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 125 | 508 | 1,019 |
PO File | 2 | 126 | 140 | 306 |
JavaScript | 3 | 0 | 0 | 43 |
SVG | 1 | 0 | 1 | 38 |
CSS | 4 | 1 | 5 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/coupon-plugin-guarantee.png | 19.38KB | 10.19KB | ▼ 47.41% |
assets/images/cg-icon.png | 1.16KB | 0.77KB | ▼ 33.19% |