10% 7-football-leagues

Code Review | 7 football ligue

WordPress plugin 7 football ligue scored 10% from 54 tests.

About plugin

  • Plugin page: 7-football-leagues
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 5.9.2
  • First release: Jan 11, 2013
  • Latest release: Jan 11, 2013
  • Number of updates: 6
  • Update frequency: every 7.8 days
  • Top authors: ucob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,046 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.01 ▼1.507.61 ▼53.10
Dashboard /wp-admin2.03 ▼1.386.85 ▼27.19
Posts /wp-admin/edit.php2.03 ▼1.6112.36 ▼26.34
Add New Post /wp-admin/post-new.php2.03 ▼4.946.62 ▼1,360.94
Media Library /wp-admin/upload.php2.03 ▼1.267.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

Browser metrics Passed 4 tests

This is an overview of browser requirements for 7 football ligue
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲5915.08 ▼0.595.97 ▲0.262.91 ▲0.45
Dashboard /wp-admin2,874 ▲166.09 ▼0.14122.69 ▼38.47155.88 ▼12.91
Posts /wp-admin/edit.php2,685 ▼63.24 ▲0.0062.66 ▼6.21143.75 ▼51.13
Add New Post /wp-admin/post-new.php1,690 ▼2720.64 ▼1.32537.65 ▲72.99159.86 ▼3.84
Media Library /wp-admin/upload.php1,695 ▼35.52 ▼0.06162.17 ▲11.32199.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

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


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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.32
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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