68% bzscore-live-score

Code Review | BZScore - Live Score

WordPress plugin BZScore - Live Score scored 68% from 54 tests.

About plugin

  • Plugin page: bzscore-live-score
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 2, 2017
  • Latest release: Aug 22, 2023
  • Number of updates: 53
  • Update frequency: every 45.7 days
  • Top authors: livescorebz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 24,992 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.80MB] [CPU: ▼51.12ms] Passed 4 tests

A check of server-side resources used by BZScore - Live Score
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.284.60 ▼40.42
Dashboard /wp-admin2.21 ▼1.106.77 ▼38.70
Posts /wp-admin/edit.php2.21 ▼1.156.60 ▼42.18
Add New Post /wp-admin/post-new.php2.21 ▼3.687.25 ▼83.18
Media Library /wp-admin/upload.php2.21 ▼1.027.00 ▼30.92
BZScore /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php2.217.19

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BZScore - Live Score
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.36 ▼0.891.71 ▼0.2939.03 ▼0.86
Dashboard /wp-admin2,229 ▲415.26 ▲0.34106.59 ▼7.5041.11 ▲1.10
Posts /wp-admin/edit.php2,117 ▲282.32 ▲0.3340.84 ▲2.2034.09 ▼2.40
Add New Post /wp-admin/post-new.php1,531 ▲1723.12 ▲5.57661.85 ▲39.9736.83 ▼24.47
Media Library /wp-admin/upload.php1,411 ▲234.38 ▲0.06100.73 ▼6.5140.31 ▼4.92
BZScore /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php2,7252.94105.0732.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+301
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: de
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: nl
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: pt
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: tr
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: si
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: rs
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: it
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: fr
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+296
    Undefined index: ro
    • > GET request to /wp-admin/options-general.php?page=bzscore-live-score/bzscore.php
    • > Notice in wp-content/plugins/bzscore-live-score/bzscore.php+281
    Undefined index: on

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bzscore-live-score/bzscore.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: A description for screenshot #2 is required in bzscore-live-score/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

bzscore-live-score/bzscore.php 92% from 13 tests

The main file in "BZScore - Live Score" v. 1.03 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bzscore-live-score.php" instead of "bzscore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected243 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16573238
JavaScript1215

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
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
There are no PNG files in this plugin