Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/football-leagues/football-leagues.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; FootballLeagues has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼52.71ms] Passed 4 tests
Analyzing server-side resources used by Football Leagues
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.81 ▼36.56 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.12 ▼45.30 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.31 ▼42.99 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.80 ▼85.97 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 4.80 ▼29.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_footballleagues |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Football Leagues
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.24 ▼0.35 | 1.97 ▲0.04 | 40.34 ▼5.35 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▲0.04 | 89.95 ▼6.77 | 40.59 ▲0.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.04 | 38.90 ▲2.58 | 34.93 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.05 ▼0.18 | 616.62 ▲1.19 | 50.39 ▼3.00 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.13 ▼0.11 | 111.80 ▲5.90 | 44.73 ▲0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/football-leagues/football-leagues.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; FootballLeagues has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_footballleagues
- can_compress_scripts
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/football-leagues/football-leagues.php:12
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== football-leagues ===
)
football-leagues/football-leagues.php 92% from 13 tests
The principal PHP file in "Football Leagues" v. 1.01 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin273 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 41 | 15 | 170 |
CSS | 1 | 12 | 0 | 89 |
JavaScript | 1 | 0 | 1 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bundesliga_league.png | 1.75KB | 1.85KB | 0.00% |
images/primera_league.png | 2.80KB | 1.98KB | ▼ 29.23% |
images/premier_league.png | 1.73KB | 1.42KB | ▼ 18.12% |
images/Serie_A_league.png | 2.37KB | 1.94KB | ▼ 17.83% |