83% vidlive

Code Review | VidLive

WordPress plugin VidLive scored83%from 54 tests.

About plugin

  • Plugin page: vidlive
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 13, 2020
  • Latest release: Jun 30, 2021
  • Number of updates: 7
  • Update frequency: every 50.4 days
  • Top authors: northify (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.37ms] Passed 4 tests

A check of server-side resources used by VidLive
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.70 ▼2.36
Dashboard /wp-admin3.36 ▲0.0142.97 ▼17.52
Posts /wp-admin/edit.php3.41 ▲0.0547.38 ▲2.41
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.35 ▼22.05
Media Library /wp-admin/upload.php3.28 ▲0.0535.91 ▲0.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_vidlive_widget

Browser metrics Passed 4 tests

VidLive: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.44 ▲0.061.77 ▼0.1644.36 ▲6.12
Dashboard /wp-admin2,218 ▲275.84 ▲0.97100.45 ▼12.7740.07 ▲1.27
Posts /wp-admin/edit.php2,107 ▲182.06 ▼0.0039.21 ▼0.6234.82 ▼0.10
Add New Post /wp-admin/post-new.php1,552 ▲1018.66 ▲0.50605.67 ▼30.2851.65 ▼2.81
Media Library /wp-admin/upload.php1,409 ▲244.24 ▲0.0498.33 ▼2.8643.38 ▼0.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_vidlive_widget
    • widget_recent-posts

Smoke tests 75% 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 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vidlive/vidlive-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires php: Invalid plugin version format
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

vidlive/vidlive-plugin.php 85% from 13 tests

The primary PHP file in "VidLive" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 191 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vidlive.php" instead of "vidlive-plugin.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
There were no executable files found in this plugin257 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26511208
CSS16049

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin