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
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/7-football-leagues/footleagues.php+35
Methods with the same name as their class will not be constructors in a future version of PHP; FL_Widget has a deprecated constructor
Server metrics [RAM: ▼2.36MB] [CPU: ▼366.89ms] Passed 4 tests
Server-side resources used by 7 football ligue
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.01 ▼1.50 | 7.61 ▼53.10 |
Dashboard /wp-admin | 2.03 ▼1.38 | 6.85 ▼27.19 |
Posts /wp-admin/edit.php | 2.03 ▼1.61 | 12.36 ▼26.34 |
Add New Post /wp-admin/post-new.php | 2.03 ▼4.94 | 6.62 ▼1,360.94 |
Media Library /wp-admin/upload.php | 2.03 ▼1.26 | 7.28 ▼17.59 |
Server storage [IO: ▲0.04MB] [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: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_football_league-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 7 football ligue
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲59 | 15.08 ▼0.59 | 5.97 ▲0.26 | 2.91 ▲0.45 |
Dashboard /wp-admin | 2,874 ▲16 | 6.09 ▼0.14 | 122.69 ▼38.47 | 155.88 ▼12.91 |
Posts /wp-admin/edit.php | 2,685 ▼6 | 3.24 ▲0.00 | 62.66 ▼6.21 | 143.75 ▼51.13 |
Add New Post /wp-admin/post-new.php | 1,690 ▼27 | 20.64 ▼1.32 | 537.65 ▲72.99 | 159.86 ▼3.84 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.52 ▼0.06 | 162.17 ▲11.32 | 199.14 ▲5.61 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5409
The called constructor method for WP_Widget in FL_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 1 option
- widget_football_league-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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 add_action() in wp-content/plugins/7-football-leagues/footleagues.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (layout 1), #2 (layout 2)
- Donate link: Please fix this invalid URI: ""
- Stable tag: No string
7-football-leagues/footleagues.php 92% from 13 tests
"7 football ligue" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("7-football-leagues.php" instead of "footleagues.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin80 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 37 | 80 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG files were detected