78% simple-football-score-board

Code Review | Simple Football Scoreboard

WordPress plugin Simple Football Scoreboard scored 78% from 54 tests.

About plugin

  • Plugin page: simple-football-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.1-5.6
  • WordPress version: 6.3.1
  • First release: Sep 6, 2017
  • Latest release: Feb 2, 2021
  • Number of updates: 6
  • Update frequency: every 272.5 days
  • Top authors: dogrow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,076 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.06ms] Passed 4 tests

An overview of server-side resources used by Simple Football Scoreboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.06 ▲0.27
Dashboard /wp-admin3.37 ▲0.0644.85 ▼6.33
Posts /wp-admin/edit.php3.42 ▲0.0648.09 ▼0.49
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.60 ▼3.30
Media Library /wp-admin/upload.php3.29 ▲0.0635.75 ▼2.13
Simple FBScoreboard /wp-admin/options-general.php?page=simple-football-score-board/ytmr_simple_football_scoreboard.php3.2329.22

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
YTMRFBScoreBoard
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple Football Scoreboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.12 ▼1.494.98 ▲2.8139.28 ▼7.62
Dashboard /wp-admin2,215 ▲305.84 ▲0.9495.90 ▼20.7639.20 ▼6.41
Posts /wp-admin/edit.php2,098 ▲272.00 ▼0.0342.17 ▲6.9235.87 ▲2.52
Add New Post /wp-admin/post-new.php1,522 ▼1217.61 ▼5.47624.32 ▼62.4055.95 ▼16.02
Media Library /wp-admin/upload.php1,391 ▼04.28 ▼0.1296.33 ▼8.5140.87 ▼6.10
Simple FBScoreboard /wp-admin/options-general.php?page=simple-football-score-board/ytmr_simple_football_scoreboard.php1,0062.0523.7643.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=simple-football-score-board/ytmr_simple_football_scoreboard.php
    • > Notice in wp-content/plugins/simple-football-score-board/ytmr_simple_football_scoreboard.php+309
    Undefined variable: table_class

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-football-score-board/ytmr_simple_football_scoreboard.php:32

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 93% 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
These attributes need your attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

simple-football-score-board/ytmr_simple_football_scoreboard.php 92% from 13 tests

The main PHP file in "Simple Football Scoreboard" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-football-score-board.php" instead of "ytmr_simple_football_scoreboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected296 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1252272
JavaScript10024

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin