Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-coupon-system/framework/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
Server metrics [RAM: ▼1.51MB] [CPU: ▼47.84ms] Passed 4 tests
An overview of server-side resources used by WP Coupon System
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.75 ▼0.98 | 10.79 ▼30.45 |
Dashboard /wp-admin | 2.77 ▼0.79 | 11.90 ▼43.03 |
Posts /wp-admin/edit.php | 2.77 ▼0.91 | 11.13 ▼37.15 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.38 | 10.40 ▼80.57 |
Media Library /wp-admin/upload.php | 2.77 ▼0.72 | 11.12 ▼30.59 |
Coupon Category /wp-admin/edit-tags.php?taxonomy=coupon_cat&post_type=coupon | 2.77 | 9.52 |
Add New /wp-admin/post-new.php?post_type=coupon | 2.77 | 12.93 |
Coupons /wp-admin/edit.php?post_type=coupon | 2.78 | 13.64 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Coupon System: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.38 ▲0.01 | 2.00 ▲0.23 | 42.53 ▼3.37 |
Dashboard /wp-admin | 2,228 ▲57 | 5.66 ▲0.02 | 99.54 ▲10.22 | 42.68 ▼3.25 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.01 ▼0.00 | 40.02 ▲2.30 | 38.76 ▲5.35 |
Add New Post /wp-admin/post-new.php | 9,277 ▲7,732 | 24.45 ▲1.27 | 708.86 ▲39.71 | 63.81 ▼1.81 |
Media Library /wp-admin/upload.php | 1,433 ▲39 | 4.22 ▼0.03 | 98.04 ▼4.03 | 42.29 ▼6.15 |
Coupon Category /wp-admin/edit-tags.php?taxonomy=coupon_cat&post_type=coupon | 1,304 | 2.14 | 26.78 | 28.56 |
Add New /wp-admin/post-new.php?post_type=coupon | 2,219 | 4.00 | 72.75 | 101.51 |
Coupons /wp-admin/edit.php?post_type=coupon | 1,111 | 1.93 | 30.45 | 30.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-coupon-system/framework/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=coupon
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/wp-coupon-system/framework/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=coupon
- > Notice in wp-content/plugins/wp-coupon-system/framework/classes/metabox.php+474
Undefined index: repeating
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=coupon
- > Warning in wp-content/plugins/wp-coupon-system/framework/includes/wpalchemy/MetaBox.php+2657
count(): Parameter must be an array or an object that implements Countable
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
The following issues need your attention
- 118× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/wp-coupon-system/framework/views/control/sorter.php on line 1
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-coupon-system/framework/config/dependencies.php on line 184
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-coupon-system/admin/shortcodes.php:116
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/wp-coupon-system/framework/classes/control/field/checkbox.php:3
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/wp-coupon-system/framework/classes/control/field/fontawesome.php:3
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-coupon-system/framework/config/dependencies.php on line 67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-coupon-system/admin/icon.php:14
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/wp-coupon-system/framework/views/control/toggle.php:1
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/wp-coupon-system/framework/views/control/checkbox.php:1
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/wp-coupon-system/framework/classes/control/field/codeeditor.php:3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=coupon
- > Javascript (severe) in unknown
/wp-content/plugins/wp-coupon-system/framework/public/js/vendor/jquery.tipsy.js?ver=1.0.0a 179:24 Uncaught TypeError: this[binder] is not a function
- > GET request to /wp-admin/post-new.php?post_type=coupon
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: vp.init_ace_editor is not a function" "TypeError: vp.init_ace_editor is not a function\n at vp.init_controls (/wp-content/plugins/wp-coupon-system/framework/public/js/shared.min.js?ver=1.1:1:18433)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/wp-coupon-system/framework/public/js/metabox.min.js?ver=6.3.1:1:975)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:1594)\n at e (/wp-content/plugins/wp-coupon-system/framework/public/js/metabox.min.js?ver=6.3.1:1:915)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-coupon-system/framework/public/js/metabox.min.js?ver=6.3.1:1:2532)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=coupon
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: vp.init_ace_editor is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wp coupon system, wordpress coupon plugin, wp free coupon plugin, wp coupon, wp coupon management...
wp-coupon-system/wp-coupon-system.php Passed 13 tests
The main PHP script in "WP Coupon System" version 1.0 is automatically included on every request by WordPress
43 characters long description:
Super modern wordpress coupon system plugin
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin16,279 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 2,123 | 2,318 | 8,984 |
CSS | 15 | 167 | 189 | 3,832 |
JavaScript | 47 | 447 | 298 | 2,959 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 4 | 7.14% |
▷ Concrete classes | 52 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 505 | |
▷ Static methods | 89 | 17.62% |
▷ Public methods | 472 | 93.47% |
▷ Protected methods | 19 | 3.76% |
▷ Private methods | 14 | 2.77% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 40 | |
▷ Global constants | 37 | 92.50% |
▷ Class constants | 3 | 7.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |