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
This plugin's installer ran successfully
Server metrics [RAM: ▲2.27MB] [CPU: ▲1.93ms] Passed 4 tests
This is a short check of server-side resources used by Soccer Engine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.08 ▲1.62 | 47.41 ▲8.11 |
Dashboard /wp-admin | 5.82 ▲2.48 | 62.14 ▼3.93 |
Posts /wp-admin/edit.php | 5.87 ▲2.52 | 67.75 ▲14.44 |
Add New Post /wp-admin/post-new.php | 8.44 ▲2.56 | 100.46 ▼10.92 |
Media Library /wp-admin/upload.php | 5.68 ▲2.46 | 55.35 ▲18.66 |
Ranking Types /wp-admin/admin.php?page=daextsoenl-ranking-types | 6.48 | 51.53 |
Options /wp-admin/admin.php?page=daextsoenl-options | 5.66 | 47.19 |
Staff Award Types /wp-admin/admin.php?page=daextsoenl-staff-award-types | 6.48 | 52.62 |
Player Awards /wp-admin/admin.php?page=daextsoenl-player-awards | 6.49 | 53.20 |
Team Contract Types /wp-admin/admin.php?page=daextsoenl-team-contract-types | 6.48 | 51.96 |
Unavailable Players /wp-admin/admin.php?page=daextsoenl-unavailable-players | 6.49 | 52.88 |
Events /wp-admin/admin.php?page=daextsoenl-events | 6.51 | 59.21 |
Unavailable Player Types /wp-admin/admin.php?page=daextsoenl-unavailable-player-types | 6.48 | 49.17 |
Agency Contracts /wp-admin/admin.php?page=daextsoenl-agency-contracts | 6.49 | 53.23 |
Competitions /wp-admin/admin.php?page=daextsoenl-competitions | 6.57 | 79.59 |
Server storage [IO: ▲2.05MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 435 new files
Database: 35 new tables, 68 new options
New tables |
---|
wp_daextsoenl_transfer |
wp_daextsoenl_match |
wp_daextsoenl_ranking_transition |
wp_daextsoenl_competition |
wp_daextsoenl_injury |
wp_daextsoenl_staff_award_type |
wp_daextsoenl_ranking_type |
wp_daextsoenl_trophy |
wp_daextsoenl_player_position |
wp_daextsoenl_team_contract |
... |
New WordPress options |
---|
daextsoenl_table_header_background_color |
daextsoenl_responsive_breakpoint_1 |
daextsoenl_default_trophy_type_logo_background_color |
daextsoenl_table_pagination_disabled_background_color |
daextsoenl_clock_border_color |
daextsoenl_money_format_currency_position |
daextsoenl_money_format_currency |
daextsoenl_default_competition_logo_color |
daextsoenl_money_format_thousands_symbol |
daextsoenl_block_margin_top |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Soccer Engine
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,118 ▲357 | 14.47 ▲0.19 | 2.63 ▲0.94 | 37.67 ▼6.67 |
Dashboard /wp-admin | 2,475 ▲295 | 5.69 ▲0.04 | 92.59 ▼0.55 | 40.06 ▼3.56 |
Posts /wp-admin/edit.php | 2,377 ▲274 | 2.06 ▲0.05 | 40.62 ▼3.60 | 39.06 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,748 ▲203 | 23.92 ▲0.72 | 701.73 ▲76.45 | 62.96 ▲3.06 |
Media Library /wp-admin/upload.php | 1,668 ▲265 | 4.12 ▼0.07 | 98.28 ▼1.40 | 42.57 ▼0.99 |
Ranking Types /wp-admin/admin.php?page=daextsoenl-ranking-types | 1,179 | 2.14 | 32.81 | 37.61 |
Options /wp-admin/admin.php?page=daextsoenl-options | 5,363 | 4.37 | 192.03 | 36.20 |
Staff Award Types /wp-admin/admin.php?page=daextsoenl-staff-award-types | 1,182 | 2.22 | 31.92 | 37.82 |
Player Awards /wp-admin/admin.php?page=daextsoenl-player-awards | 1,131 | 2.25 | 40.01 | 33.40 |
Team Contract Types /wp-admin/admin.php?page=daextsoenl-team-contract-types | 1,171 | 1.92 | 30.66 | 37.89 |
Unavailable Players /wp-admin/admin.php?page=daextsoenl-unavailable-players | 1,113 | 2.26 | 41.39 | 31.23 |
Events /wp-admin/admin.php?page=daextsoenl-events | 1,114 | 2.15 | 29.88 | 33.10 |
Unavailable Player Types /wp-admin/admin.php?page=daextsoenl-unavailable-player-types | 1,182 | 2.10 | 32.93 | 37.60 |
Agency Contracts /wp-admin/admin.php?page=daextsoenl-agency-contracts | 1,133 | 2.32 | 29.95 | 32.39 |
Competitions /wp-admin/admin.php?page=daextsoenl-competitions | 7,126 | 5.93 | 211.25 | 33.53 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 41× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/events_wizard.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/staff_types.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-engine-lite/admin/view/maintenance.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-engine-lite/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/transfers.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/agencies.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/unavailable_player_types.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/events.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/ranking_transitions.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/soccer-engine-lite/admin/view/unavailable_players.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
soccer-engine-lite/init.php 92% from 13 tests
This is the main PHP file of "Soccer Engine" version 1.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("soccer-engine-lite.php" instead of "init.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin34,403 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 5,674 | 3,577 | 20,955 |
JavaScript | 59 | 1,155 | 1,066 | 5,257 |
CSS | 29 | 832 | 259 | 4,744 |
XML | 1 | 0 | 0 | 3,331 |
SVG | 11 | 0 | 0 | 97 |
Markdown | 1 | 4 | 0 | 19 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,182)
- Method cyclomatic complexity should be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 237.33 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 1,182.00 |
Average method complexity | 5.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 466 | |
▷ Static methods | 7 | 1.50% |
▷ Public methods | 388 | 83.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 78 | 16.74% |
Functions | 84 | |
▷ Named functions | 31 | 36.90% |
▷ Anonymous functions | 53 | 63.10% |
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
269 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/flags/flat/16/VE.png | 0.29KB | 0.30KB | 0.00% |
public/assets/img/flags/flat/16/DE.png | 0.10KB | 0.12KB | 0.00% |
public/assets/img/flags/flat/16/AW.png | 0.18KB | 0.19KB | 0.00% |
public/assets/img/flags/flat/16/PG.png | 0.43KB | 0.47KB | 0.00% |
public/assets/img/flags/flat/16/CA.png | 0.17KB | 0.17KB | 0.00% |