10% 7-football-leagues

Code Review | 7 football ligue

WordPress plugin 7 football ligue scored10%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: 6.3.1
  • 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,324 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.386.04 ▼38.40
Dashboard /wp-admin2.10 ▼1.206.26 ▼48.61
Posts /wp-admin/edit.php2.10 ▼1.265.08 ▼46.57
Add New Post /wp-admin/post-new.php2.10 ▼3.795.91 ▼86.49
Media Library /wp-admin/upload.php2.10 ▼1.134.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.031.83 ▼0.4343.31 ▼0.72
Dashboard /wp-admin2,195 ▲185.63 ▲0.0585.88 ▼14.5241.19 ▼3.16
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0536.48 ▼1.8132.71 ▼3.95
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▲0.14671.92 ▲7.8461.22 ▲4.62
Media Library /wp-admin/upload.php1,403 ▲34.12 ▼0.09100.42 ▲2.8642.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

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 ("")
You can take inspiration from this 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
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:
LanguageFilesBlank linesComment linesLines of code
PHP1253780

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 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin