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
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.54ms] Passed 4 tests
Analyzing server-side resources used by SportsPress for Golf
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 34.99 ▼4.24 |
Dashboard /wp-admin | 3.44 ▲0.10 | 45.49 ▼18.71 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.58 ▲4.41 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.18 ▲0.40 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 48.87 ▲13.86 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.37 | 34.22 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SportsPress for Golf
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.05 ▼0.30 | 1.58 ▼0.02 | 40.37 ▲0.98 |
Dashboard /wp-admin | 2,225 ▲48 | 5.62 ▲0.09 | 90.73 ▼5.88 | 47.51 ▲7.66 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.03 ▲0.08 | 40.55 ▲6.67 | 39.49 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.33 ▲0.29 | 662.49 ▼31.49 | 52.42 ▼7.38 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.23 ▲0.05 | 106.73 ▲5.39 | 50.85 ▲6.37 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 977 | 2.06 | 28.75 | 32.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sportspress-for-golf/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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
sportspress-for-golf/sportspress-for-golf.php Passed 13 tests
The main PHP script in "SportsPress for Golf" version 0.9.1 is automatically included on every request by WordPress
41 characters long description:
A suite of golf features for SportsPress.
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
Everything looks great! No dangerous files found in this plugin2,075 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 533 | 1,716 | 2,072 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 50.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.20 |
▷ 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 | 123 | |
▷ Static methods | 10 | 8.13% |
▷ Public methods | 98 | 79.67% |
▷ Protected methods | 23 | 18.70% |
▷ Private methods | 2 | 1.63% |
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
No PNG files were detected