Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.06MB] [CPU: ▼0.17ms] 75% from 4 tests
An overview of server-side resources used by Lucky Wheel for WooCommerce - Spin a Sale
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 540.76ms on /wp-admin/admin.php?page=woo-lucky-wheel-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.02 | 41.26 ▲0.80 |
Dashboard /wp-admin | 4.43 ▲1.09 | 59.79 ▼1.90 |
Posts /wp-admin/edit.php | 4.48 ▲1.13 | 50.77 ▼1.20 |
Add New Post /wp-admin/post-new.php | 6.95 ▲1.06 | 90.86 ▲1.62 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 47.31 ▲14.78 |
System Status /wp-admin/admin.php?page=wlwl-system-status | 4.26 | 44.18 |
Extensions /wp-admin/admin.php?page=woo-lucky-wheel-extensions | 4.54 | 540.76 |
Report /wp-admin/admin.php?page=wlwl-report | 4.27 | 38.75 |
WC Lucky Wheel /wp-admin/admin.php?page=woo-lucky-wheel | 4.27 | 42.96 |
Emails /wp-admin/edit.php?post_type=wlwl_email | 4.40 | 43.50 |
Server storage [IO: ▲2.32MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
db_upgraded |
woo-lucky-wheel_start_use |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Lucky Wheel for WooCommerce - Spin a Sale
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,527 ▼235 | 14.33 ▲0.18 | 0.51 ▼1.22 | 17.97 ▼26.10 |
Dashboard /wp-admin | 2,271 ▲91 | 5.63 ▼0.00 | 96.43 ▲3.06 | 46.41 ▲7.13 |
Posts /wp-admin/edit.php | 2,174 ▲74 | 2.10 ▲0.13 | 38.92 ▲2.75 | 33.04 ▼5.90 |
Add New Post /wp-admin/post-new.php | 1,589 ▲63 | 23.38 ▲0.14 | 650.89 ▼68.34 | 69.19 ▲8.96 |
Media Library /wp-admin/upload.php | 1,473 ▲73 | 4.20 ▲0.03 | 100.74 ▼6.08 | 48.05 ▲3.39 |
System Status /wp-admin/admin.php?page=wlwl-system-status | 862 | 2.04 | 26.77 | 31.39 |
Extensions /wp-admin/admin.php?page=woo-lucky-wheel-extensions | 1,787 | 2.05 | 28.21 | 60.89 |
Report /wp-admin/admin.php?page=wlwl-report | 932 | 2.01 | 23.97 | 24.23 |
WC Lucky Wheel /wp-admin/admin.php?page=woo-lucky-wheel | 1,554 | 2.31 | 49.72 | 45.99 |
Emails /wp-admin/edit.php?post_type=wlwl_email | 1,175 | 1.90 | 33.59 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- woo-lucky-wheel_start_use
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=woo-lucky-wheel
- > Error in wp-content/plugins/woo-lucky-wheel/admin/admin.php+765
Uncaught Error: Call to undefined function wc_is_valid_url() in wp-content/plugins/woo-lucky-wheel/admin/admin.php:765
Stack trace:
#0 wp-includes/class-wp-hook.php(310): VI_WOO_LUCKY_WHEEL_Admin_Admin->settings_page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=woo-lucky-wheel
- > 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: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/woo-lucky-wheel/js/admin-javascript.js?ver=1.1.2:9:39)\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/admin.php?page=woo-lucky-wheel
- > 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: $(...).sortable is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: wheelio for woocommerce, woocommerce fortune wheel, lucky wheel, mailchimp, optin popup...
woo-lucky-wheel/woo-lucky-wheel.php Passed 13 tests
This is the main PHP file of "Lucky Wheel for WooCommerce - Spin a Sale" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
Collect customers emails by letting them play interesting Lucky wheel game to get lucky discount coupon
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
Success! There were no dangerous files found in this plugin17,862 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,504 | 416 | 8,827 |
PHP | 9 | 391 | 759 | 5,809 |
PO File | 2 | 536 | 675 | 1,313 |
CSS | 18 | 201 | 166 | 1,262 |
SVG | 2 | 0 | 3 | 651 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 88.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 6.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 11 | 10.58% |
▷ Public methods | 96 | 92.31% |
▷ Protected methods | 6 | 5.77% |
▷ Private methods | 2 | 1.92% |
Functions | 15 | |
▷ Named functions | 6 | 40.00% |
▷ Anonymous functions | 9 | 60.00% |
Constants | 18 | |
▷ Global constants | 9 | 50.00% |
▷ Class constants | 9 | 50.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/falling-snow/snowflakes-lg.png | 17.91KB | 6.58KB | ▼ 63.28% |
images/2020.png | 17.05KB | 8.88KB | ▼ 47.93% |
images/falling-snow/snowballs-lg.png | 3.49KB | 1.92KB | ▼ 44.86% |
images/falling-snow/snowballs-sm.png | 11.07KB | 3.76KB | ▼ 66.06% |
images/fs-sprite.png | 0.22KB | 0.18KB | ▼ 15.63% |