Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.89MB] [CPU: ▲7.47ms] Passed 4 tests
Server-side resources used by WordPress Lucky Wheel - Spin a Sale
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.84 | 40.86 ▲2.68 |
Dashboard /wp-admin | 4.25 ▲0.95 | 57.03 ▲9.68 |
Posts /wp-admin/edit.php | 4.30 ▲0.95 | 57.17 ▲9.84 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.89 | 94.64 ▲7.68 |
Media Library /wp-admin/upload.php | 4.11 ▲0.89 | 48.07 ▲11.47 |
Report /wp-admin/admin.php?page=wplwl-report | 4.09 | 38.81 |
Emails /wp-admin/edit.php?post_type=wplwl_email | 4.19 | 47.90 |
WP Lucky Wheel /wp-admin/admin.php?page=wp-lucky-wheel | 4.13 | 43.52 |
Extensions /wp-admin/admin.php?page=wp-lucky-wheel-extensions | 4.10 | 40.10 |
System Status /wp-admin/admin.php?page=wplwl-system-status | 4.08 | 43.16 |
Server storage [IO: ▲1.88MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wp-lucky-wheel_start_use |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WordPress Lucky Wheel - Spin a Sale: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,185 ▲424 | 13.79 ▲0.53 | 26.69 ▲21.62 | 91.82 ▲43.47 |
Dashboard /wp-admin | 2,259 ▲82 | 5.64 ▲0.03 | 91.45 ▼6.25 | 44.87 ▲1.36 |
Posts /wp-admin/edit.php | 2,164 ▲61 | 1.99 ▼0.02 | 40.16 ▲3.83 | 36.93 ▲4.06 |
Add New Post /wp-admin/post-new.php | 1,575 ▲44 | 23.10 ▲0.06 | 624.80 ▼18.42 | 63.86 ▲10.65 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.13 ▼0.05 | 98.84 ▼6.93 | 42.45 ▼2.92 |
Report /wp-admin/admin.php?page=wplwl-report | 926 | 2.00 | 29.27 | 25.45 |
Emails /wp-admin/edit.php?post_type=wplwl_email | 1,173 | 1.93 | 36.15 | 31.31 |
WP Lucky Wheel /wp-admin/admin.php?page=wp-lucky-wheel | 5,707 | 10.84 | 427.50 | 143.62 |
Extensions /wp-admin/admin.php?page=wp-lucky-wheel-extensions | 1,778 | 2.05 | 27.96 | 55.29 |
System Status /wp-admin/admin.php?page=wplwl-system-status | 874 | 1.99 | 28.46 | 34.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- wp-lucky-wheel_start_use
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-lucky-wheel
- > Notice in wp-content/plugins/wp-lucky-wheel/includes/data.php+166
Undefined index: wheel_speed
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
9 plugin tags: spin 2 win, wheelio for wordpress, optin popup, mailchimp, wordpress fortune wheel...
wp-lucky-wheel/wp-lucky-wheel.php Passed 13 tests
The main file in "WordPress Lucky Wheel - Spin a Sale" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Collect customers emails by letting them play interesting Lucky wheel game to get interesting awards
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected16,115 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,487 | 421 | 8,716 |
PHP | 8 | 275 | 745 | 4,948 |
CSS | 18 | 226 | 178 | 1,313 |
SVG | 2 | 0 | 3 | 651 |
PO File | 1 | 216 | 275 | 487 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 86.29 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 6.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 11 | 11.70% |
▷ Public methods | 88 | 93.62% |
▷ Protected methods | 4 | 4.26% |
▷ Private methods | 2 | 2.13% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 17 | |
▷ Global constants | 8 | 47.06% |
▷ Class constants | 9 | 52.94% |
▷ Public constants | 9 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fs-sprite.png | 0.22KB | 0.18KB | ▼ 15.63% |
images/2020.png | 17.05KB | 8.88KB | ▼ 47.93% |