Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼11.96ms] Passed 4 tests
Server-side resources used by Travel Game - Vacation Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.64 ▼1.89 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.34 ▼15.43 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.07 ▼2.89 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.56 ▼27.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.31 ▲1.20 |
Travel Game /wp-admin/options-general.php?page=wscg-plugin-menu | 3.26 | 32.55 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_wscg_game_widget |
WSCG_SETTING |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Travel Game - Vacation Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.58 ▼0.77 | 8.31 ▲6.41 | 40.99 ▼0.14 |
Dashboard /wp-admin | 2,224 ▲44 | 5.54 ▼0.13 | 84.99 ▼3.10 | 41.11 ▼0.59 |
Posts /wp-admin/edit.php | 2,133 ▲36 | 2.01 ▲0.02 | 35.83 ▼1.88 | 37.97 ▲6.04 |
Add New Post /wp-admin/post-new.php | 1,624 ▲95 | 21.83 ▼1.09 | 667.13 ▲3.72 | 37.57 ▼13.69 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.29 ▲0.03 | 100.42 ▼2.60 | 43.10 ▲0.04 |
Travel Game /wp-admin/options-general.php?page=wscg-plugin-menu | 852 | 2.06 | 27.64 | 25.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_wscg_game_widget
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/travel-game/classes/wscg-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/travel-game/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/travel-game/travel-game.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Game in big dimension - screenshot-1.jpg), #2 (Game in small dimension - screenshot-2.jpg)
- Tags: There are too many tags (12 tag instead of maximum 10)
travel-game/travel-game.php Passed 13 tests
"Travel Game - Vacation Widget" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Try to hit the hottest destination and plan vacation early with a recreational travel game.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected581 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 51 | 47 | 329 |
JavaScript | 2 | 38 | 7 | 153 |
CSS | 2 | 23 | 1 | 99 |
PHP code Passed 2 tests
This is a very shot review 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.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
47 compressed PNG files occupy 1.43MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/card38.png | 36.65KB | 37.15KB | 0.00% |
images/winner.png | 12.94KB | 13.94KB | 0.00% |
images/card20.png | 31.64KB | 32.38KB | 0.00% |
images/card1.png | 35.57KB | 36.47KB | 0.00% |
images/card17.png | 28.48KB | 29.17KB | 0.00% |