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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.18ms] Passed 4 tests
An overview of server-side resources used by SportsPress for Baseball
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.53 ▼6.61 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.54 ▲0.11 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.88 ▼4.27 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 101.22 ▲4.37 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.97 ▲2.05 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.37 | 33.26 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by SportsPress for Baseball
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.24 ▼1.14 | 4.98 ▲3.29 | 40.06 ▼14.48 |
Dashboard /wp-admin | 2,234 ▲46 | 5.83 ▼0.07 | 104.65 ▲5.00 | 42.47 ▼2.10 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.08 ▲0.05 | 35.88 ▼4.81 | 37.94 ▲1.22 |
Add New Post /wp-admin/post-new.php | 1,564 ▲30 | 18.45 ▼4.74 | 592.19 ▼84.35 | 55.35 ▼3.57 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.27 ▲0.07 | 94.28 ▼4.63 | 43.44 ▲1.55 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 966 | 2.08 | 23.88 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sportspress-for-baseball/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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-baseball/sportspress-for-baseball.php Passed 13 tests
The principal PHP file in "SportsPress for Baseball" v. 1.0.2 is loaded by WordPress automatically on each request
45 characters long description:
A suite of baseball features for SportsPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,017 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 527 | 1,687 | 1,963 |
PO File | 1 | 22 | 152 | 51 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 45.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.02 |
▷ 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 | 119 | |
▷ Static methods | 8 | 6.72% |
▷ Public methods | 94 | 78.99% |
▷ Protected methods | 23 | 19.33% |
▷ Private methods | 2 | 1.68% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin