Benchmarks
Plugin footprint 65% 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.69MB] [CPU: ▼1.91ms] Passed 4 tests
Analyzing server-side resources used by The Soccer Stats
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.71 | 48.07 ▲5.21 |
Dashboard /wp-admin | 4.04 ▲0.69 | 51.73 ▼11.22 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 52.06 ▲0.28 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 102.06 ▼1.90 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 42.55 ▲8.12 |
All Match Types /wp-admin/edit.php?post_type=tss-matchtypes | 3.97 | 41.62 |
All Players /wp-admin/edit.php?post_type=tss-players | 3.96 | 40.04 |
Settings /wp-admin/admin.php?page=tss_settings_page | 3.87 | 45.15 |
All Matches /wp-admin/edit.php?post_type=tss-matches | 3.96 | 41.29 |
All Seasons /wp-admin/edit.php?post_type=tss-seasons | 3.96 | 40.64 |
All Opponents /wp-admin/edit.php?post_type=tss-opponents | 3.97 | 42.09 |
Server storage [IO: ▲1.44MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: 7 new tables, 6 new options
New tables |
---|
tss_substitutions |
tss_starters |
tss_redcards |
tss_goals |
tss_yellowcards |
tss_substitutes |
tss_player_seasons |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Soccer Stats
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲226 | 14.04 ▼0.31 | 12.88 ▲11.25 | 43.36 ▲2.73 |
Dashboard /wp-admin | 2,265 ▲88 | 4.90 ▼0.71 | 89.60 ▼2.06 | 38.93 ▼3.18 |
Posts /wp-admin/edit.php | 2,170 ▲88 | 2.28 ▲0.27 | 36.23 ▼0.58 | 34.54 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,588 ▲62 | 23.82 ▲0.96 | 617.50 ▼23.67 | 55.30 ▼1.94 |
Media Library /wp-admin/upload.php | 1,470 ▲73 | 4.34 ▲0.11 | 102.76 ▲2.30 | 40.83 ▼8.54 |
All Match Types /wp-admin/edit.php?post_type=tss-matchtypes | 1,140 | 2.42 | 31.85 | 28.90 |
All Players /wp-admin/edit.php?post_type=tss-players | 1,143 | 2.41 | 36.75 | 28.60 |
Settings /wp-admin/admin.php?page=tss_settings_page | 985 | 1.98 | 33.61 | 31.07 |
All Matches /wp-admin/edit.php?post_type=tss-matches | 1,143 | 2.41 | 35.02 | 27.89 |
All Seasons /wp-admin/edit.php?post_type=tss-seasons | 1,143 | 2.41 | 34.07 | 27.19 |
All Opponents /wp-admin/edit.php?post_type=tss-opponents | 1,140 | 2.42 | 33.10 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 7 tables in the database
- tss_substitutions
- tss_yellowcards
- tss_redcards
- tss_goals
- tss_player_seasons
- tss_substitutes
- tss_starters
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/the-soccer-stats/the-soccer-stats.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/the-soccer-stats/templates/single-tss-players.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-soccer-stats/ajax/ajax-admin.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/the-soccer-stats/templates/single-tss-matches.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-soccer-stats/meta-boxes/players.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/the-soccer-stats/templates/single-tss-opponents.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-soccer-stats/settings/settings.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/the-soccer-stats/templates/single-tss-seasons.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-soccer-stats/meta-boxes/players.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-soccer-stats/post-types/post-types.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-soccer-stats/meta-boxes/matches.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=tss-opponents
- > Javascript (severe) in unknown
/wp-content/plugins/the-soccer-stats/plugins/bootstrap/bootstrap.min.js?ver=6.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
the-soccer-stats/the-soccer-stats.php Passed 13 tests
This is the main PHP file of "The Soccer Stats" version 1.08, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Ultimate soccer statistics tool for your team.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected13,898 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 6 | 21 | 8,964 |
PHP | 26 | 645 | 747 | 3,275 |
PO File | 2 | 369 | 448 | 768 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 6 | 53 | 9 | 236 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 37.50% |
Functions | 75 | |
▷ Named functions | 75 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin