Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▼8.60ms] Passed 4 tests
This is a short check of server-side resources used by WP Roulette Wheel - Versatile Roulette Game with Pop-Up, Email Collection and Coupon Generation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.32 ▼6.87 |
Dashboard /wp-admin | 3.71 ▲0.37 | 49.97 ▼11.98 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 51.16 ▲1.55 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 93.49 ▼17.10 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 43.14 ▲10.00 |
WP Roulette Wheel /wp-admin/options-general.php?page=wproulettewheel | 3.60 | 46.54 |
Server storage [IO: ▲4.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 60 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wprw_roulettewheel |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Roulette Wheel - Versatile Roulette Game with Pop-Up, Email Collection and Coupon Generation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.48 ▲0.21 | 1.79 ▲0.16 | 43.31 ▲4.25 |
Dashboard /wp-admin | 2,228 ▲31 | 5.85 ▲0.93 | 105.89 ▲1.30 | 37.90 ▼4.47 |
Posts /wp-admin/edit.php | 2,083 ▼17 | 2.03 ▲0.04 | 36.65 ▼4.56 | 36.26 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,548 ▲8 | 23.24 ▲5.09 | 618.26 ▼31.61 | 57.05 ▼5.91 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.15 ▼0.11 | 110.86 ▲5.82 | 45.46 ▲1.86 |
WP Roulette Wheel /wp-admin/options-general.php?page=wproulettewheel | 4,210 | 4.54 | 154.45 | 178.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wproulettewheel
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/options-general.php?page=wproulettewheel
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-roulette-wheel/includes/templates/wheel-display-template.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-roulette-wheel/includes/templates/input-display-template.php:22
- > PHP Notice
Undefined variable: ispopup in wp-content/plugins/wp-roulette-wheel/includes/templates/wheel-display-template.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-roulette-wheel/includes/templates/modal-display-template.php:22
- > PHP Notice
Undefined variable: ispopup in wp-content/plugins/wp-roulette-wheel/includes/templates/wheel-display-template.php on line 21
- > PHP Notice
Undefined variable: isadmin in wp-content/plugins/wp-roulette-wheel/includes/templates/input-display-template.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-roulette-wheel/includes/templates/popup-display-template.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
wp-roulette-wheel/wproulettewheel.php 77% from 13 tests
The principal PHP file in "WP Roulette Wheel - Versatile Roulette Game with Pop-Up, Email Collection and Coupon Generation" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-roulette-wheel.php" instead of "wproulettewheel.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 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
There were no executable files found in this plugin13,175 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,979 | 1,280 | 7,073 |
SVG | 4 | 0 | 12 | 2,881 |
PHP | 13 | 352 | 381 | 2,092 |
CSS | 6 | 71 | 512 | 826 |
JSON | 3 | 0 | 0 | 248 |
Markdown | 4 | 15 | 0 | 55 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 87 | |
▷ Static methods | 14 | 16.09% |
▷ Public methods | 87 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.29MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/wheel-preview.png | 98.92KB | 105.70KB | 0.00% |
admin/assets/images/website-example.png | 48.45KB | 51.20KB | 0.00% |
includes/assets/lib/semantic/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |
includes/assets/images/wheelbackgroundfinal.png | 126.45KB | 133.93KB | 0.00% |