Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲0.79MB] [CPU: ▼1.23ms] Passed 4 tests
This is a short check of server-side resources used by Coupon X: Discount Pop Up, Promo Code Pop Ups, Announcement Pop Up
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 33.68 ▼8.84 |
Dashboard /wp-admin | 4.10 ▲0.80 | 55.38 ▲4.56 |
Posts /wp-admin/edit.php | 4.21 ▲0.86 | 48.14 ▲3.11 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.80 | 97.56 ▼3.73 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 46.67 ▲11.90 |
Integrations /wp-admin/admin.php?page=cx_integrations | 3.99 | 34.22 |
Upgrade to Pro /wp-admin/admin.php?page=couponx_pricing_tbl | 4.25 | 69.50 |
Coupon X Pro Features /wp-admin/admin.php?page=couponx_pro_features | 4.00 | 36.63 |
Dashboard /wp-admin/admin.php?page=couponx | 4.03 | 46.51 |
Create New Widget /wp-admin/admin.php?page=add_couponx | 4.03 | 39.38 |
Leads /wp-admin/admin.php?page=leads_list | 3.99 | 35.71 |
Server storage [IO: ▲3.27MB] [DB: ▼0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 116 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cx_leads |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
coupon-x-discount-pop-up_show_review_box_after |
widget_recent-comments |
cx_signup_popup |
Browser metrics Passed 4 tests
Checking browser requirements for Coupon X: Discount Pop Up, Promo Code Pop Ups, Announcement Pop Up
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,990 ▲255 | 13.61 ▼0.77 | 7.32 ▲5.47 | 45.75 ▲1.89 |
Dashboard /wp-admin | 2,282 ▲91 | 5.84 ▲0.96 | 100.32 ▼3.20 | 41.84 ▼6.15 |
Posts /wp-admin/edit.php | 2,169 ▲80 | 2.07 ▲0.03 | 39.19 ▲2.52 | 31.07 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,583 ▲41 | 18.58 ▲0.10 | 612.80 ▼13.54 | 59.81 ▼10.02 |
Media Library /wp-admin/upload.php | 1,467 ▲79 | 4.32 ▲0.08 | 96.27 ▼15.16 | 43.26 ▼3.90 |
Integrations /wp-admin/admin.php?page=cx_integrations | 967 | 2.05 | 29.52 | 46.42 |
Upgrade to Pro /wp-admin/admin.php?page=couponx_pricing_tbl | 3,833 | 2.15 | 48.08 | 80.09 |
Coupon X Pro Features /wp-admin/admin.php?page=couponx_pro_features | 998 | 2.15 | 26.62 | 32.37 |
Dashboard /wp-admin/admin.php?page=couponx | 1,316 | 3.79 | 65.74 | 84.81 |
Create New Widget /wp-admin/admin.php?page=add_couponx | 1,316 | 3.76 | 65.86 | 71.24 |
Leads /wp-admin/admin.php?page=leads_list | 1,032 | 3.00 | 57.93 | 37.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_cx_leads
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- coupon-x-discount-pop-up_show_review_box_after
- widget_theysaidso_widget
- can_compress_scripts
- cx_signup_popup
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(COUPON_X_PATH/inc/class-dashboard.php): failed to open stream: No such file or directory in wp-content/plugins/coupon-x-discount-pop-up/inc/widget_parts/class-cx-widget-coupon.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'COUPON_X_PATH/inc/class-dashboard.php' (include_path='.:/usr/share/php') in wp-content/plugins/coupon-x-discount-pop-up/inc/widget_parts/class-cx-widget-coupon.php on line 11
- > PHP Warning
Use of undefined constant COUPON_X_PATH - assumed 'COUPON_X_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/coupon-x-discount-pop-up/inc/widget_parts/class-cx-widget-coupon.php on line 11
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=leads_list
- > Network (severe)
wp-content/plugins/coupon-x-discount-pop-up/assets/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=leads_list
- > Network (severe)
wp-content/plugins/coupon-x-discount-pop-up/assets/images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
coupon-x-discount-pop-up/coupon-x-for-wc.php 85% from 13 tests
"Coupon X: Discount Pop Up, Promo Code Pop Ups, Announcement Pop Up" version 1.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("coupon-x-discount-pop-up.php" instead of "coupon-x-for-wc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin22,635 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 1,667 | 808 | 9,280 |
PHP | 18 | 898 | 1,107 | 8,369 |
CSS | 14 | 837 | 51 | 4,764 |
SVG | 21 | 0 | 0 | 222 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 31.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 5.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 11 | 10.38% |
▷ Public methods | 106 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/cx_image_cover.png | 15.96KB | 16.24KB | 0.00% |
assets/img/pro-support.png | 2.16KB | 2.22KB | 0.00% |
assets/img/cx_images_right1.png | 32.15KB | 34.04KB | 0.00% |
assets/img/300x198.png | 0.11KB | 0.11KB | 0.00% |
assets/img/agency-price.png | 12.98KB | 13.83KB | 0.00% |