Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/wp-fortune-wheel/includes/support.php+15
Undefined index: support
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.64ms] Passed 4 tests
This is a short check of server-side resources used by WP Fortune Wheel
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.08 ▼35.51 |
Dashboard /wp-admin | 2.05 ▼1.25 | 5.19 ▼45.02 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 6.00 ▼40.02 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.19 ▼94.02 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.25 ▼29.52 |
Subscribers /wp-admin/edit.php?post_type=wfw_email | 2.05 | 4.76 |
System Status /wp-admin/admin.php?page=wfw-system-status | 2.05 | 6.50 |
WP Fortune Wheel /wp-admin/admin.php?page=wp-fortune-wheel | 2.05 | 5.02 |
Report /wp-admin/admin.php?page=wfw-report | 2.05 | 6.20 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options |
---|
_wfw_settings |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
wp-fortune-wheel_start_use |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Fortune Wheel
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,503 ▲768 | 16.25 ▲1.50 | 21.78 ▲20.09 | 90.56 ▲49.19 |
Dashboard /wp-admin | 2,651 ▲462 | 7.21 ▲2.12 | 148.30 ▲31.33 | 45.03 ▲1.28 |
Posts /wp-admin/edit.php | 2,480 ▲391 | 3.74 ▲1.71 | 56.72 ▲18.66 | 29.96 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,592 ▲72 | 24.09 ▲0.99 | 661.00 ▲18.92 | 36.45 ▼22.96 |
Media Library /wp-admin/upload.php | 1,738 ▲353 | 5.01 ▲0.83 | 91.22 ▼12.58 | 42.34 ▼2.27 |
Subscribers /wp-admin/edit.php?post_type=wfw_email | 1,539 | 3.72 | 56.49 | 27.84 |
System Status /wp-admin/admin.php?page=wfw-system-status | 1,255 | 3.39 | 51.83 | 28.01 |
WP Fortune Wheel /wp-admin/admin.php?page=wp-fortune-wheel | 4,457 | 10.87 | 386.78 | 94.49 |
Report /wp-admin/admin.php?page=wfw-report | 1,310 | 3.53 | 49.46 | 21.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-fortune-wheel/includes/support.php+15
Undefined index: support
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- wp-fortune-wheel_start_use
- widget_recent-comments
- _wfw_settings
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wfw-report
- > Notice in wp-content/plugins/wp-fortune-wheel/includes/support.php+15
Undefined index: support
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wfw-report
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WFW_Support' does not have a method 'admin_menu'
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wfw-report
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WFW_Support' does not have a method 'form_ads'
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wfw-report
- > Network (severe)
wp-content/plugins/wp-fortune-wheel/css/admin-icon-style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2 in wp-fortune-wheel/assets to your readme.txt
wp-fortune-wheel/wp-fortune-wheel.php Passed 13 tests
"WP Fortune Wheel" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
Collect customer emails by let them play interesting Fortune wheel game to win amazing prizes
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
Good job! No executable or dangerous file extensions detected13,278 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,499 | 422 | 8,996 |
PHP | 4 | 240 | 680 | 3,073 |
CSS | 18 | 168 | 121 | 1,123 |
SVG | 1 | 0 | 3 | 86 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 167.33 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 342.00 |
Average method complexity | 8.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 10 | 15.62% |
▷ Public methods | 62 | 96.88% |
▷ Protected methods | 2 | 3.12% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 7 | 43.75% |
▷ Class constants | 9 | 56.25% |
▷ 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
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Schedule_social_media_posts1.png | 10.70KB | 4.06KB | ▼ 62.03% |
images/fs-sprite.png | 0.22KB | 0.18KB | ▼ 15.63% |
images/Schedule_social_media_posts4.png | 15.33KB | 5.56KB | ▼ 63.76% |
images/Schedule_social_media_posts3.png | 15.29KB | 5.25KB | ▼ 65.66% |
images/Schedule_social_media_posts2.png | 10.60KB | 4.05KB | ▼ 61.82% |