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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.38ms] Passed 4 tests
Server-side resources used by Football Ranking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.67 ▼2.79 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.09 ▼0.22 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.34 ▲2.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.12 ▼11.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.60 ▲1.26 |
Football Ranking /wp-admin/options-general.php?page=football_ranking_options | 3.22 | 31.75 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Football Ranking: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.10 | 1.65 ▼0.51 | 63.81 ▲12.04 |
Dashboard /wp-admin | 2,207 ▲16 | 5.82 ▼0.08 | 102.61 ▲4.01 | 40.43 ▼3.75 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.01 | 39.43 ▲2.08 | 36.58 ▲4.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.34 ▲0.18 | 591.92 ▼98.64 | 46.79 ▼11.51 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.16 ▼0.06 | 96.65 ▼11.77 | 40.34 ▼8.23 |
Football Ranking /wp-admin/options-general.php?page=football_ranking_options | 974 | 2.09 | 27.93 | 29.19 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× 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-ranking/football-ranking.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=football_ranking_options
- > Javascript (severe) in unknown
/wp-content/plugins/football-ranking/assets/js?ver=6.3.1 0:0 Uncaught SyntaxError: Unexpected token '
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
football-ranking/football-ranking.php Passed 13 tests
The primary PHP file in "Football Ranking" version 1.0 is used by WordPress to initiate all plugin functionality
75 characters long description:
Get updated football rankings for international team for both men and women
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected937 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 169 | 28 | 505 |
CSS | 1 | 27 | 38 | 424 |
JavaScript | 1 | 2 | 1 | 5 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.56% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up 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/gfx/moversIcons.png | 1.99KB | 1.33KB | ▼ 33.05% |