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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼2.25ms] Passed 4 tests
This is a short check of server-side resources used by Soccer Formation VE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.39 ▲1.13 |
Dashboard /wp-admin | 3.65 ▲0.34 | 50.16 ▲1.66 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 49.10 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 89.01 ▼13.25 |
Media Library /wp-admin/upload.php | 3.51 ▲0.27 | 37.01 ▲1.46 |
Soccer Engine /wp-admin/admin.php?page=daextsfve-soccer-engine | 3.48 | 32.73 |
Help /wp-admin/admin.php?page=daextsfve-help | 3.47 | 34.27 |
Layouts /wp-admin/admin.php?page=daextsfve-layouts | 3.75 | 35.23 |
Formations /wp-admin/admin.php?page=daextsfve-formations | 3.70 | 37.01 |
Options /wp-admin/admin.php?page=daextsfve-options | 3.48 | 33.39 |
Server storage [IO: ▲0.88MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 114 new files
Database: 2 new tables, 19 new options
New tables |
---|
wp_daextsfve_formations |
wp_daextsfve_layouts |
New WordPress options |
---|
daextsfve_field_top_margin |
daextsfve_font_family |
daextsfve_field_bottom_margin |
widget_recent-posts |
daextsfve_player_name_color |
daextsfve_player_number_color |
daextsfve_field_bg_color |
daextsfve_player_name_bg_color |
theysaidso_admin_options |
daextsfve_player_number_bg_color |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Soccer Formation VE
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲201 | 13.51 ▼0.84 | 9.82 ▲8.35 | 42.74 ▲5.63 |
Dashboard /wp-admin | 2,251 ▲74 | 5.53 ▼0.04 | 86.40 ▼0.66 | 40.66 ▼3.20 |
Posts /wp-admin/edit.php | 2,159 ▲62 | 1.99 ▼0.04 | 34.16 ▼3.02 | 36.77 ▲4.65 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.48 ▼0.03 | 696.59 ▲49.53 | 54.41 ▼12.41 |
Media Library /wp-admin/upload.php | 1,456 ▲62 | 4.21 ▼0.04 | 95.35 ▼4.76 | 41.90 ▼1.77 |
Soccer Engine /wp-admin/admin.php?page=daextsfve-soccer-engine | 891 | 2.04 | 23.41 | 25.99 |
Help /wp-admin/admin.php?page=daextsfve-help | 861 | 2.01 | 25.06 | 24.82 |
Layouts /wp-admin/admin.php?page=daextsfve-layouts | 2,214 | 3.41 | 95.17 | 51.15 |
Formations /wp-admin/admin.php?page=daextsfve-formations | 1,495 | 3.09 | 60.86 | 28.92 |
Options /wp-admin/admin.php?page=daextsfve-options | 1,673 | 2.85 | 67.11 | 31.11 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/soccer-formation-ve/shared/assets/img/player.php
- > /wp-content/plugins/soccer-formation-ve/shared/assets/img/field.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-formation-ve/admin/view/formations.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-formation-ve/admin/view/soccer-engine.php:3
- > PHP Notice
Undefined index: player_name_bg_color in wp-content/plugins/soccer-formation-ve/shared/assets/img/player.php on line 13
- > PHP Notice
Undefined index: player_number_bg_color in wp-content/plugins/soccer-formation-ve/shared/assets/img/player.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-formation-ve/admin/view/layouts.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-formation-ve/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-formation-ve/admin/view/options.php:3
- > PHP Notice
Undefined index: field_lines_color in wp-content/plugins/soccer-formation-ve/shared/assets/img/field.php on line 15
- > PHP Notice
Undefined index: field_bg_color in wp-content/plugins/soccer-formation-ve/shared/assets/img/field.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
soccer-formation-ve/init.php 92% from 13 tests
Analyzing the main PHP file in "Soccer Formation VE" version 1.01
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("soccer-formation-ve.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected14,735 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 71 | 2,700 | 875 | 9,741 |
CSS | 14 | 591 | 77 | 2,837 |
PHP | 14 | 783 | 421 | 2,140 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 75 | |
▷ Static methods | 5 | 6.67% |
▷ Public methods | 67 | 89.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.67% |
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
13 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/help-fdfdfd.png | 15.52KB | 0.53KB | ▼ 96.60% |
admin/assets/img/clone-hover.png | 18.71KB | 0.12KB | ▼ 99.34% |
admin/assets/img/edit-hover.png | 1.30KB | 0.33KB | ▼ 74.47% |
admin/assets/img/help-f7f7f7.png | 15.86KB | 0.59KB | ▼ 96.25% |
admin/assets/img/search-hover.png | 0.21KB | 0.21KB | 0.00% |