Benchmarks
Plugin footprint 82% 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.11MB] [CPU: ▼0.48ms] 75% from 4 tests
This is a short check of server-side resources used by Coupon Zen
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,409.67ms on /wp-admin/edit.php?post_type=couponzen&page=couponzen-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 46.73 ▲7.37 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.33 ▼3.98 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.18 ▲3.52 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.01 ▲1.40 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 33.30 ▼2.86 |
Add Coupon /wp-admin/post-new.php?post_type=couponzen | 3.45 | 53.42 |
All Coupons /wp-admin/edit.php?post_type=couponzen | 3.38 | 35.69 |
Events /wp-admin/edit-tags.php?taxonomy=couponzen_event&post_type=couponzen | 3.33 | 33.55 |
Recommendations /wp-admin/edit.php?post_type=couponzen&page=couponzen-recommendations | 7.62 | 1,409.67 |
Settings /wp-admin/edit.php?post_type=couponzen&page=couponzen-setting | 3.31 | 38.94 |
Categories /wp-admin/edit-tags.php?taxonomy=couponzen_category&post_type=couponzen | 3.33 | 35.56 |
Server storage [IO: ▲0.28MB] [DB: ▲0.67MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
sticky_post_update_check |
Browser metrics Passed 4 tests
An overview of browser requirements for Coupon Zen
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 13.62 ▼0.78 | 1.93 ▲0.31 | 44.58 ▲3.01 |
Dashboard /wp-admin | 2,248 ▲56 | 5.86 ▲0.90 | 94.62 ▼12.53 | 78.61 ▲36.10 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.20 ▲0.19 | 40.18 ▲3.69 | 35.13 ▲3.37 |
Add New Post /wp-admin/post-new.php | 1,560 ▲41 | 23.18 ▼0.08 | 718.00 ▲38.87 | 55.72 ▲2.30 |
Media Library /wp-admin/upload.php | 1,435 ▲44 | 4.10 ▼0.07 | 95.14 ▼1.03 | 75.48 ▲29.73 |
Add Coupon /wp-admin/post-new.php?post_type=couponzen | 2,589 | 7.94 | 174.06 | 137.45 |
All Coupons /wp-admin/edit.php?post_type=couponzen | 1,174 | 2.34 | 35.10 | 30.67 |
Events /wp-admin/edit-tags.php?taxonomy=couponzen_event&post_type=couponzen | 1,320 | 2.18 | 26.69 | 29.82 |
Recommendations /wp-admin/edit.php?post_type=couponzen&page=couponzen-recommendations | 2,953 | 2.20 | 34.13 | 78.21 |
Settings /wp-admin/edit.php?post_type=couponzen&page=couponzen-setting | 1,651 | 2.69 | 58.32 | 30.61 |
Categories /wp-admin/edit-tags.php?taxonomy=couponzen_category&post_type=couponzen | 1,312 | 2.17 | 25.94 | 29.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- sticky_post_update_check
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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 | 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 take a closer look at the following
- 7× 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/coupon-zen/admin/classes/class.admin-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/coupon-zen/frontend/templates/couponzen-full-width-page-template.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coupon-zen/frontend/templates/archive-couponzen.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/coupon-zen/include/shortcodes.php:150
- > PHP Fatal error
Uncaught Error: Class 'couponZen\\Admin\\Recommended_Plugins' not found in wp-content/plugins/coupon-zen/admin/classes/class.recommended_plugins_menu_call.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupon-zen/admin/classes/class.custom-post-type.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupon-zen/admin/include/custom-meta-fields.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: deals, coupon plugin, wp coupons, affiliate, coupon
coupon-zen/coupon-zen.php 92% from 13 tests
"Coupon Zen" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin3,073 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 356 | 159 | 1,853 |
CSS | 2 | 108 | 7 | 863 |
JavaScript | 4 | 55 | 45 | 355 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 4 | 8.89% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/assets/images/extensions/ht-menu.png | 2.85KB | 0.00KB | ▼ 100.00% |
(invalid) admin/assets/images/extensions/cf7-extensions-pro.png | 8.57KB | 0.00KB | ▼ 100.00% |
admin/assets/images/extensions/just-tables-pro.png | 1.02KB | 1.05KB | 0.00% |
admin/assets/icon/ht-cupons.png | 3.42KB | 0.99KB | ▼ 70.90% |
admin/assets/images/extensions/hashbar-pro.png | 3.15KB | 3.30KB | 0.00% |