Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼144.39ms] Passed 4 tests
An overview of server-side resources used by Sudoku - The Game
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 44.03 ▲8.32 |
Dashboard /wp-admin | 3.12 ▲0.06 | 42.28 ▼2.46 |
Posts /wp-admin/edit.php | 3.20 ▲0.10 | 47.39 ▲0.64 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 91.94 ▼575.99 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 34.02 ▲0.27 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_sudoku_game |
Browser metrics Passed 4 tests
A check of browser resources used by Sudoku - The Game
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲279 | 16.70 ▲0.73 | 19.37 ▲7.01 | 49.36 ▼3.22 |
Dashboard /wp-admin | 2,980 ▲46 | 6.28 ▲0.33 | 182.32 ▲28.94 | 108.58 ▼2.01 |
Posts /wp-admin/edit.php | 2,757 ▲18 | 2.91 ▲0.20 | 78.11 ▲12.42 | 89.83 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 18.88 ▲0.10 | 434.72 ▲22.40 | 116.47 ▲6.85 |
Media Library /wp-admin/upload.php | 1,762 ▼45 | 5.29 ▲0.28 | 179.30 ▲25.35 | 115.56 ▲0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_sudoku_game
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sudoku-game/widget.php
- > /wp-content/plugins/sudoku-game/sudoku-game.php
- > /wp-content/plugins/sudoku-game/metatrait.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (The sudoku widget in a website.), #2 (Backend configuration)
sudoku-game/sudoku-game.php Passed 13 tests
The main PHP script in "Sudoku - The Game" version 1.0.9 is automatically included on every request by WordPress
56 characters long description:
Let visitors play the famous Sudoku-Game on your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected972 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 140 | 144 | 769 |
PHP | 3 | 45 | 10 | 171 |
CSS | 1 | 9 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 5 | 29.41% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 20.34KB | 7.92KB | ▼ 61.05% |
screenshot-1.png | 19.48KB | 7.33KB | ▼ 62.36% |