Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > 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: ▼1.91MB] [CPU: ▼55.02ms] Passed 4 tests
A check of server-side resources used by 7 football ligue
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 6.04 ▼38.40 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.26 ▼48.61 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.08 ▼46.57 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.91 ▼86.49 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.48 ▼33.71 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_football_league-widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
7 football ligue: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.03 | 1.83 ▼0.43 | 43.31 ▼0.72 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.05 | 85.88 ▼14.52 | 41.19 ▼3.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.05 | 36.48 ▼1.81 | 32.71 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.15 ▲0.14 | 671.92 ▲7.84 | 61.22 ▲4.62 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.12 ▼0.09 | 100.42 ▲2.86 | 42.03 ▼4.11 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > 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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_football_league-widget
- theysaidso_admin_options
- 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)
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
Almost there! Just fix the following items
- 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Stable tag: Not defined
- Screenshots: Please add images for these screenshots: #1 (layout 1), #2 (layout 2)
- Donate link: Invalid URI ("")
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
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("7-football-leagues.php" instead of "footleagues.php")
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
Good job! No executable or dangerous file extensions detected80 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
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
PNG images were not found in this plugin