Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼7.68ms] Passed 4 tests
Server-side resources used by SportsPress for Football (Soccer)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 44.14 ▼4.96 |
Dashboard /wp-admin | 3.80 ▲0.46 | 52.57 ▼26.25 |
Posts /wp-admin/edit.php | 3.86 ▲0.49 | 51.90 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 88.65 ▼0.47 |
Media Library /wp-admin/upload.php | 3.67 ▲0.43 | 38.37 ▲0.96 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.88 | 37.38 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
SportsPress for Football (Soccer): an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.24 ▼0.14 | 1.74 ▼0.20 | 42.27 ▼7.89 |
Dashboard /wp-admin | 2,222 ▲45 | 5.56 ▼0.05 | 89.78 ▼14.28 | 44.76 ▼3.39 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.03 ▲0.03 | 37.82 ▲0.19 | 41.88 ▲8.57 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.38 ▲0.31 | 648.31 ▼71.10 | 51.52 ▲0.70 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.15 ▲0.05 | 104.36 ▼3.09 | 47.88 ▲0.61 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 974 | 2.03 | 27.42 | 29.98 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- 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
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sportspress-for-soccer/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
sportspress-for-soccer/sportspress-for-soccer.php Passed 13 tests
Analyzing the main PHP file in "SportsPress for Football (Soccer)" version 0.9.6
54 characters long description:
A suite of football (soccer) features for SportsPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,985 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 516 | 1,672 | 1,931 |
PO File | 1 | 22 | 152 | 51 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 45.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 8 | 7.02% |
▷ Public methods | 89 | 78.07% |
▷ Protected methods | 23 | 20.18% |
▷ Private methods | 2 | 1.75% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin