Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼35.59ms] Passed 4 tests
This is a short check of server-side resources used by Football Game By Kashan Shah
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.11 ▼5.57 |
Dashboard /wp-admin | 2.99 ▼0.31 | 21.76 ▼34.34 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 24.03 ▼26.45 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 24.31 ▼67.49 |
Media Library /wp-admin/upload.php | 2.99 ▼0.24 | 22.65 ▼14.09 |
Football Game By Kashan Shah /wp-admin/options-general.php?page=football-game-by-kashanshah | 2.99 | 24.28 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Football Game By Kashan Shah
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.05 | 1.76 ▼0.20 | 42.82 ▼0.22 |
Dashboard /wp-admin | 2,196 ▲16 | 5.63 ▼0.02 | 88.16 ▼0.74 | 38.47 ▼2.46 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.02 | 38.58 ▲0.49 | 34.70 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.19 ▼0.11 | 607.28 ▼75.51 | 54.20 ▼0.88 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.21 ▲0.01 | 99.15 ▼5.03 | 43.43 ▼0.25 |
Football Game By Kashan Shah /wp-admin/options-general.php?page=football-game-by-kashanshah | 790 | 2.02 | 24.81 | 43.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=football-game-by-kashanshah
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/football-game-by-kashan-shah/football-game-by-kashanshah.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/football-game-by-kashan-shah/admin_view.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Activate the plugin), #2 (Go to plugin page to copy the shortcode), #3 (Copy the shortcode), #4 (Paste the shortcode in to the post), #5 (The game will appear in the post.)
football-game-by-kashan-shah/football-game-by-kashanshah.php 85% from 13 tests
This is the main PHP file of "Football Game By Kashan Shah" version 0.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("football-game-by-kashan-shah.php" instead of "football-game-by-kashanshah.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin195 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 1 | 91 |
PHP | 3 | 5 | 9 | 59 |
Markdown | 1 | 12 | 0 | 29 |
JavaScript | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
A short 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.00 |
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 | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/football.png | 5.04KB | 2.92KB | ▼ 41.96% |