Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.28ms] Passed 4 tests
This is a short check of server-side resources used by Sportsteam Widget - Football livescore
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 42.40 ▼0.12 |
Dashboard /wp-admin | 3.51 ▲0.20 | 48.22 ▼1.56 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.65 ▲0.38 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 94.87 ▲7.84 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.67 ▲0.20 |
SportsTeams /wp-admin/edit.php?post_type=sportsteams | 3.47 | 37.81 |
New Team /wp-admin/post-new.php?post_type=sportsteams | 3.66 | 52.85 |
Livescore New! /wp-admin/edit.php?post_type=sportsteams&page=sportsteam-widget/src/Sprttm_ShortCodeConfig.php | 3.43 | 36.40 |
About /wp-admin/edit.php?post_type=sportsteams&page=sportsteam_about | 3.40 | 30.06 |
Classes /wp-admin/edit-tags.php?taxonomy=st_classes&post_type=sportsteams | 3.55 | 35.83 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_sprttm_sportsteam |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sportsteam Widget - Football livescore
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲103 | 14.58 ▼0.10 | 2.19 ▲0.59 | 39.20 ▼5.69 |
Dashboard /wp-admin | 2,239 ▲68 | 5.60 ▼0.05 | 95.78 ▼2.43 | 39.19 ▼8.33 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 1.95 ▼0.05 | 40.85 ▼1.86 | 37.02 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,560 ▲26 | 23.52 ▲0.28 | 685.79 ▲89.76 | 56.85 ▼11.03 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.20 ▲0.02 | 101.50 ▲0.01 | 42.62 ▲2.82 |
SportsTeams /wp-admin/edit.php?post_type=sportsteams | 1,105 | 1.91 | 33.23 | 31.81 |
New Team /wp-admin/post-new.php?post_type=sportsteams | 2,499 | 7.61 | 178.40 | 67.11 |
Livescore New! /wp-admin/edit.php?post_type=sportsteams&page=sportsteam-widget/src/Sprttm_ShortCodeConfig.php | 2,120 | 2.00 | 25.09 | 50.27 |
About /wp-admin/edit.php?post_type=sportsteams&page=sportsteam_about | 843 | 1.97 | 27.17 | 27.13 |
Classes /wp-admin/edit-tags.php?taxonomy=st_classes&post_type=sportsteams | 1,312 | 2.13 | 27.62 | 30.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_sprttm_sportsteam
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
sportsteam-widget/sportsteam-widget.php Passed 13 tests
"Sportsteam Widget - Football livescore" version 2.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
A widget that shows the next match of a team and shortcodes for football livescores.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,084 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 120 | 537 | 1,026 |
CSS | 1 | 11 | 4 | 58 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/separator.png | 0.57KB | 0.61KB | 0.00% |