Benchmarks
Plugin footprint 65% 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.76MB] [CPU: ▲5.33ms] Passed 4 tests
Server-side resources used by WP Coupons and Deals - WordPress Coupon Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 48.43 ▲11.35 |
Dashboard /wp-admin | 4.12 ▲0.78 | 55.78 ▼7.59 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 53.89 ▲7.25 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.74 | 109.57 ▲10.30 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 48.01 ▲16.21 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.41 | 43.63 |
WP Coupons and Deals /wp-admin/index.php?page=wpcd_welcome_menu_page | 4.12 | 41.94 |
Server storage [IO: ▲4.62MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 312 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-posts |
widget_wpcd_coupons_deals_widget |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
wpcd_form-shortcode-split-form |
theysaidso_admin_options |
fs_active_plugins |
fs_debug_mode |
wpcd_review_notify |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Coupons and Deals - WordPress Coupon Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,272 ▲511 | 15.11 ▲0.76 | 7.80 ▲6.22 | 30.52 ▼7.66 |
Dashboard /wp-admin | 2,511 ▲331 | 6.18 ▲0.51 | 111.17 ▲23.49 | 97.84 ▲54.17 |
Posts /wp-admin/edit.php | 2,328 ▲228 | 3.32 ▲1.30 | 53.17 ▲15.45 | 70.67 ▲39.50 |
Add New Post /wp-admin/post-new.php | 1,729 ▲203 | 21.95 ▼1.14 | 609.92 ▼91.96 | 34.46 ▼18.31 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.20 ▼0.15 | 83.30 ▼19.79 | 79.16 ▲33.80 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,303 | 3.01 | 39.95 | 63.24 |
WP Coupons and Deals /wp-admin/index.php?page=wpcd_welcome_menu_page | 1,924 | 10.07 | 269.04 | 138.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-coupons-and-deals/includes/sdk/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 14 options in the database
- widget_wpcd_coupons_deals_widget
- can_compress_scripts
- theysaidso_admin_options
- wpcd_review_notify
- widget_recent-posts
- widget_recent-comments
- fs_accounts
- wpcd_form-shortcode-enable-thrash
- db_upgraded
- wpcd_popup-goto-link
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-coupons-and-deals/includes/templates/archive/coupon_type__image.php:6
- > PHP Fatal error
Trait 'WPCD_Global_Caller_Trait' not found in wp-content/plugins/wp-coupons-and-deals/includes/classes/wpcd-ajax-base.php on line 7
- > PHP Fatal error
Trait 'WPCD_Global_Caller_Trait' not found in wp-content/plugins/wp-coupons-and-deals/includes/classes/wpcd-short-code-base.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-coupons-and-deals/includes/templates/extras/vote-system.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_count_posts() in wp-content/plugins/wp-coupons-and-deals/includes/templates/extras/dashboard-widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-coupons-and-deals/includes/templates/extras/coupon-link.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/wp-coupons-and-deals/includes/templates/widget/widget-default.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-coupons-and-deals/includes/templates/extras/social-share.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: coupons, deal, affiliate, deals, affiliate marketing...
wp-coupons-and-deals/wp-coupons-deals.php 92% from 13 tests
This is the main PHP file of "WP Coupons and Deals - WordPress Coupon Plugin" version 3.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-coupons-and-deals.php" instead of "wp-coupons-deals.php")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected50,689 lines of code in 231 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 8,873 | 19,149 | 38,912 |
CSS | 47 | 1,111 | 175 | 7,741 |
JavaScript | 7 | 393 | 259 | 2,302 |
PO File | 3 | 609 | 1,359 | 1,712 |
XML | 1 | 3 | 0 | 16 |
SVG | 5 | 0 | 0 | 6 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 63.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 77 | |
▷ Abstract classes | 4 | 5.19% |
▷ Concrete classes | 73 | 94.81% |
▷ Final classes | 0 | 0.00% |
Methods | 1,392 | |
▷ Static methods | 262 | 18.82% |
▷ Public methods | 997 | 71.62% |
▷ Protected methods | 20 | 1.44% |
▷ Private methods | 375 | 26.94% |
Functions | 117 | |
▷ Named functions | 117 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 157 | |
▷ Global constants | 98 | 62.42% |
▷ Class constants | 59 | 37.58% |
▷ Public constants | 59 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 0.40MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/searchicon.png | 0.84KB | 0.46KB | ▼ 45.23% |
assets/img/lightweight.png | 9.58KB | 4.40KB | ▼ 54.07% |
assets/admin/img/coupon-200x200.png | 14.65KB | 6.15KB | ▼ 58.02% |
assets/img/image.png | 7.23KB | 6.31KB | ▼ 12.76% |
assets/img/widget.png | 7.67KB | 3.39KB | ▼ 55.82% |