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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.34ms] Passed 4 tests
An overview of server-side resources used by CTL Battleship Minesweeper Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.33 ▼5.49 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.73 ▲2.56 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.44 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 78.57 ▼18.14 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.21 ▼0.35 |
Premium Games /wp-admin/admin.php?page=ctl_arcade_lite_games | 3.25 | 30.72 |
Install Battleship Minesweeper /wp-admin/admin.php?page=ctl_arcade_lite_game_ctl-battleship-minesweeper-lite | 3.25 | 31.10 |
About Us /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us | 3.25 | 28.74 |
Server storage [IO: ▲5.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
CTL Battleship Minesweeper Lite: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 14.85 ▲0.59 | 1.81 ▼0.10 | 43.61 ▼0.58 |
Dashboard /wp-admin | 2,241 ▲56 | 5.81 ▼0.07 | 98.31 ▼9.40 | 39.02 ▼6.32 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.15 ▲0.10 | 33.76 ▼6.63 | 33.98 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.10 ▼0.64 | 628.48 ▼43.55 | 74.41 ▲16.81 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.23 ▲0.03 | 93.72 ▼12.00 | 40.38 ▼9.69 |
Premium Games /wp-admin/admin.php?page=ctl_arcade_lite_games | 871 | 2.03 | 37.90 | 35.98 |
Install Battleship Minesweeper /wp-admin/admin.php?page=ctl_arcade_lite_game_ctl-battleship-minesweeper-lite | 849 | 2.03 | 23.67 | 25.85 |
About Us /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us | 2,437 | 17.99 | 426.95 | 110.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us
- > Deprecation (warning) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yy/r/Qg-CynimBug.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
- > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_games_about_us
- > Console-api (severe) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yy/r/Qg-CynimBug.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
ctl-battleship-minesweeper-lite/ctl-battleship-minesweeper-lite.php Passed 13 tests
The entry point to "CTL Battleship Minesweeper Lite" version 1.0 is a PHP file that has certain tags in its header comment area
65 characters long description:
Battleship Minesweeper Lite for CTL Arcade Lite Wordpress Plugin.
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
Everything looks great! No dangerous files found in this plugin582 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 20 | 336 |
CSS | 2 | 9 | 0 | 92 |
HTML | 2 | 14 | 0 | 80 |
JavaScript | 3 | 0 | 14 | 74 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
game/sprites/button_grid.png | 1.77KB | 1.80KB | 0.00% |
game/sprites/toggle_flag.png | 2.30KB | 2.40KB | 0.00% |
game/sprites/logo_ctl.png | 17.78KB | 7.83KB | ▼ 55.96% |
game/sprites/bg_help.png | 7.37KB | 7.33KB | ▼ 0.56% |
game/sprites/but_info.png | 4.04KB | 1.14KB | ▼ 71.82% |