Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wordpress-football-leagues/footleagues.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; wpfootballleagues has a deprecated constructor
Server metrics [RAM: ▼1.78MB] [CPU: ▼50.65ms] Passed 4 tests
A check of server-side resources used by Wordpress Football Leagues
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 5.83 ▼31.14 |
Dashboard /wp-admin | 2.23 ▼1.08 | 6.83 ▼43.99 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 6.17 ▼37.04 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 6.61 ▼90.44 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 6.76 ▼25.17 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_wpfootballleagues |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress Football Leagues
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.81 ▲0.44 | 1.86 ▲0.11 | 44.72 ▼0.30 |
Dashboard /wp-admin | 2,215 ▲24 | 4.91 ▲0.04 | 101.12 ▼1.88 | 39.92 ▼1.98 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.04 | 44.45 ▲8.96 | 35.09 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,520 ▼17 | 22.94 ▼0.23 | 594.43 ▼56.70 | 60.12 ▲5.12 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.40 ▲0.21 | 94.74 ▼3.51 | 41.08 ▼1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wordpress-football-leagues/footleagues.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; wpfootballleagues has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_wpfootballleagues
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wordpress-football-leagues/footleagues.php:27
- > PHP Warning
uasort() expects parameter 1 to be array, null given in wp-content/plugins/wordpress-football-leagues/getteams.php on line 61
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wordpress-football-leagues/getteams.php on line 63
- > PHP Notice
Undefined index: theteam in wp-content/plugins/wordpress-football-leagues/getteams.php on line 4
- > PHP Notice
Undefined index: league in wp-content/plugins/wordpress-football-leagues/getteams.php on line 2
- > PHP Notice
Undefined variable: get_league in wp-content/plugins/wordpress-football-leagues/getteams.php on line 51
- > PHP Notice
Undefined index: country in wp-content/plugins/wordpress-football-leagues/getteams.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Wordpress Football Leagues - Widget settings), #2 (Wordpress Football Leagues - Widget view - Shows Pld, Won, Goal Dif & Pts), #3 (Wordpress Football Leagues - Widget view - Limited to top 6 clubs. Shows Games won.)
wordpress-football-leagues/footleagues.php 85% from 13 tests
The primary PHP file in "Wordpress Football Leagues" version 0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordpress-football-leagues.php" instead of "footleagues.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 439 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin534 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 23 | 448 |
JavaScript | 1 | 7 | 0 | 57 |
CSS | 2 | 0 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 18.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 2 | |
▷ Named functions | 2 | 100.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 20.65KB | 5.02KB | ▼ 75.71% |
screenshot-1.png | 67.84KB | 15.01KB | ▼ 77.87% |
screenshot-2.png | 57.17KB | 13.52KB | ▼ 76.36% |