Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.61MB] [CPU: ▼50.06ms] Passed 4 tests
Server-side resources used by Suspended Lists for SportsPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.39 ▼1.08 | 7.07 ▼29.77 |
Dashboard /wp-admin | 2.41 ▼0.94 | 9.33 ▼49.94 |
Posts /wp-admin/edit.php | 2.41 ▼0.95 | 8.54 ▼37.99 |
Add New Post /wp-admin/post-new.php | 2.41 ▼3.48 | 8.97 ▼82.54 |
Media Library /wp-admin/upload.php | 2.41 ▼0.82 | 9.81 ▼25.99 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Suspended Lists for SportsPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.07 ▼0.28 | 2.00 ▲0.43 | 44.11 ▲3.29 |
Dashboard /wp-admin | 2,204 ▲29 | 5.57 ▼0.08 | 81.40 ▼21.49 | 39.66 ▼0.02 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▼0.02 | 36.40 ▼0.15 | 35.52 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.98 ▲0.23 | 593.65 ▼55.55 | 71.67 ▲20.46 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.21 ▼0.02 | 94.57 ▼21.41 | 40.99 ▼5.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/sportspress/sportspress.php): failed to open stream: No such file or directory
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at 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 __() in wp-content/plugins/suspended-lists-for-sportspress/suspended-lists-for-sportspress.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: suspended, sports club, players, sports data, suspended lists...
suspended-lists-for-sportspress/suspended-lists-for-sportspress.php Passed 13 tests
The primary PHP file in "Suspended Lists for SportsPress" version 0.0.2 is used by WordPress to initiate all plugin functionality
84 characters long description:
Build suspended players lists that discount automatically after each team match day.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,926 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 341 | 517 | 1,506 |
CSS | 2 | 13 | 0 | 240 |
PO File | 1 | 47 | 61 | 128 |
Markdown | 1 | 26 | 0 | 51 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 51.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 6.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.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 | 47 | |
▷ Static methods | 12 | 25.53% |
▷ Public methods | 38 | 80.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 19.15% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.50MB with 0.33MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 143.45KB | 45.86KB | ▼ 68.03% |
assets/images/screenshot-4.png | 90.38KB | 32.30KB | ▼ 64.26% |
assets/images/screenshot-3.png | 115.29KB | 36.58KB | ▼ 68.27% |
assets/images/screenshot-2.png | 159.76KB | 52.89KB | ▼ 66.89% |