78% live-score

Code Review | Live Score

WordPress plugin Live Score scored 78% from 54 tests.

About plugin

  • Plugin page: live-score
  • Plugin version: 3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Apr 20, 2008
  • Latest release: Jul 4, 2017
  • Number of updates: 120
  • Update frequency: every 28.0 days
  • Top authors: iddaa (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active / 15,986 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.65ms] Passed 4 tests

An overview of server-side resources used by Live Score
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.99 ▼10.25
Dashboard /wp-admin3.31 ▲0.0044.74 ▼4.67
Posts /wp-admin/edit.php3.36 ▲0.0046.04 ▼0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.54 ▼12.82
Media Library /wp-admin/upload.php3.23 ▲0.0033.43 ▼2.86

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Score
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.091.62 ▼0.1140.51 ▼2.53
Dashboard /wp-admin2,203 ▲155.87 ▲0.9993.18 ▼11.0638.01 ▼5.74
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0032.19 ▼8.2931.37 ▼5.20
Add New Post /wp-admin/post-new.php1,538 ▲2423.40 ▲5.87640.57 ▼28.5550.50 ▼11.73
Media Library /wp-admin/upload.php1,379 ▼94.19 ▲0.0299.63 ▼11.7942.82 ▼4.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/live-score/livedet.php
    • > /wp-content/plugins/live-score/livedat.php
    • > /wp-content/plugins/live-score/styles.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/live-score/livedet.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/live-score/livescore.php:18
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/live-score/livedet.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
  • Screenshots: Please a description for screenshot #2 in live-score/assets to your readme.txt
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Live Score" version 3.7
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("live-score.php" instead of "livescore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin110 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41511110

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin