Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.15ms] Passed 4 tests
This is a short check of server-side resources used by WP-Game
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.49 ▼6.55 |
Dashboard /wp-admin | 3.35 ▲0.04 | 52.44 ▼5.96 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.92 ▼5.86 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.84 ▼18.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.39 ▲4.21 |
Server storage [IO: ▲6.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
wp_game_plugin_page_id |
wp_game_plugin_page_name |
widget_recent-comments |
db_upgraded |
wp_game_plugin_page_title |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Game
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 14.33 ▼0.25 | 1.77 ▲0.12 | 43.86 ▼1.23 |
Dashboard /wp-admin | 2,245 ▲65 | 5.55 ▼0.11 | 90.28 ▼11.40 | 40.01 ▼5.54 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 1.98 ▼0.05 | 35.89 ▲0.21 | 34.80 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 18.40 ▼4.77 | 687.62 ▲7.89 | 67.59 ▲13.38 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.19 ▼0.01 | 106.17 ▲0.58 | 45.85 ▲1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-game/index.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-game/games/Puzzle/Hextris/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-game/games/Arcade/Flying_Dog/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-game/games/Puzzle/Canvas_Tetris/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-game/games/Boardgame/2048/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-game/games/Puzzle/Pacman/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/wp-game/templates/template-custom.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-game/games/Arcade/Crappy_Bird/index.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tested up to: Invalid plugin version format
wp-game/index.php 92% from 13 tests
The entry point to "WP-Game" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-game.php" instead of "index.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-game/games/Arcade/Crappy_Bird/start.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 54 | 4,331 | 8,019 | 17,309 |
CSS | 7 | 98 | 15 | 2,517 |
SVG | 4 | 0 | 0 | 2,483 |
PHP | 8 | 180 | 143 | 995 |
Markdown | 7 | 158 | 0 | 585 |
Sass | 2 | 113 | 30 | 487 |
JSON | 1 | 1 | 0 | 171 |
XML | 1 | 0 | 0 | 105 |
Ruby | 1 | 2 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
29 PNG files occupy 0.28MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
games/Boardgame/2048/meta/apple-touch-startup-image-640x920.png | 41.04KB | 11.46KB | ▼ 72.08% |
games/Arcade/Crappy_Bird/font_small_2.png | 0.09KB | 0.10KB | 0.00% |
games/Arcade/Crappy_Bird/medal_gold.png | 0.28KB | 0.28KB | 0.00% |
games/Puzzle/Hextris/images/twitter-opengraph.png | 16.85KB | 5.83KB | ▼ 65.39% |
games/Arcade/Crappy_Bird/bird.png | 0.28KB | 0.28KB | 0.00% |