60% videowhisper-live-streaming-integration

Code Review | Broadcast Live Video - Live Streaming : HTML5, WebRTC, HLS, RTSP, RTMP

WordPress plugin Broadcast Live Video - Live Streaming : HTML5, WebRTC, HLS, RTSP, RTMP scored60%from 54 tests.

About plugin

  • Plugin page: videowhisper-live...
  • Plugin version: 5.7.12
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2009
  • Latest release: Nov 13, 2023
  • Number of updates: 349
  • Update frequency: every 15.2 days
  • Top authors: videowhisper (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /387,304 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲2.34MB] [CPU: ▼1.96ms] Passed 4 tests

Analyzing server-side resources used by Broadcast Live Video - Live Streaming : HTML5, WebRTC, HLS, RTSP, RTMP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.12 ▲2.6550.62 ▲6.31
Dashboard /wp-admin5.99 ▲2.6463.65 ▼2.93
Posts /wp-admin/edit.php6.05 ▲2.6968.61 ▲19.18
Add New Post /wp-admin/post-new.php7.27 ▲1.3867.56 ▼30.39
Media Library /wp-admin/upload.php5.92 ▲2.6856.29 ▲24.25
Live & Ban /wp-admin/admin.php?page=live-streaming-live5.8649.58
Settings /wp-admin/admin.php?page=live-streaming6.0051.03
Documentation /wp-admin/admin.php?page=live-streaming-docs6.0151.80
Statistics /wp-admin/admin.php?page=live-streaming-stats6.0462.57

Server storage [IO: ▲13.70MB] [DB: ▲0.04MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 218 new files
Database: 4 new tables, 10 new options
New tables
wp_vw_lwsessions
wp_vw_vwls_chatlog
wp_vw_lsrooms
wp_vw_sessions
New WordPress options
db_upgraded
VWliveStreaming_requirements
theysaidso_admin_options
userAccessTime
can_compress_scripts
widget_recent-posts
vwls_db_version
widget_recent-comments
widget_theysaidso_widget
VWliveStreamingOptions

Browser metrics Passed 4 tests

A check of browser resources used by Broadcast Live Video - Live Streaming : HTML5, WebRTC, HLS, RTSP, RTMP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,061 ▲31413.75 ▼0.637.28 ▲5.5635.18 ▼8.27
Dashboard /wp-admin2,321 ▲1435.71 ▼0.0092.64 ▼22.2841.91 ▼3.37
Posts /wp-admin/edit.php2,227 ▲1272.12 ▲0.1241.16 ▲3.2638.33 ▲4.05
Add New Post /wp-admin/post-new.php1,632 ▲10623.30 ▼0.19672.54 ▼14.2658.59 ▲7.98
Media Library /wp-admin/upload.php1,526 ▲1264.21 ▲0.00101.09 ▼3.3941.78 ▼3.43
Live & Ban /wp-admin/admin.php?page=live-streaming-live1,2512.1934.63117.14
Settings /wp-admin/admin.php?page=live-streaming1,2772.1425.2335.54
Documentation /wp-admin/admin.php?page=live-streaming-docs1,2232.0224.8230.56
Statistics /wp-admin/admin.php?page=live-streaming-stats9872.0225.4627.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 4 tables
    • wp_vw_lwsessions
    • wp_vw_lsrooms
    • wp_vw_vwls_chatlog
    • wp_vw_sessions
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • vwls_db_version
    • widget_recent-comments
    • userAccessTime
    • db_upgraded
    • VWliveStreaming_requirements
    • VWliveStreamingOptions
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=live-streaming-live
    • > Notice in wp-content/plugins/videowhisper-live-streaming-integration/videowhisper_streaming.php+8204
    Undefined index: ban
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=live-streaming-live
    • > Notice in wp-content/plugins/videowhisper-live-streaming-integration/videowhisper_streaming.php+5712
    Trying to access array offset on value of type bool
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=live-streaming
    • > Notice in wp-content/plugins/videowhisper-live-streaming-integration/inc/requirements.php+305
    Undefined index: status

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/videowhisper-live-streaming-integration/server/translate.php
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/src/TooManyRequestsException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLTestBase' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/tests/TranslateDocumentTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLTestBase' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/tests/TranslateTextTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/src/AuthorizationException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLTestBase' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/tests/GlossaryTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/tests/DeepLTestBase.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\otFoundException' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/src/GlossaryNotFoundException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/src/QuotaExceededException.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/videowhisper-live-streaming-integration/template-channel.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLTestBase' not found in wp-content/plugins/videowhisper-live-streaming-integration/server/vendor/deeplcom/deepl-php/tests/GeneralTest.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Live Broadcast (for publisher)), #2 (Live Video Watch (for active viewers, discuss online, see who else is watching)), #3 (Live Video Streaming (for passive viewers, simple live video)), #4 (Manage channels features from frontend), #5 (Channels listing with AJAX live updates, star ratings), #6 (Playlist: Schedule videos to play as live stream), #7 (Manage channel videos), #8 (Broadcast using HTML5 WebRTC and AJAX chat (iPad view)), #9 (Playback using HTML5 HLS and AJAX chat (iPhone view)), #10 (Access IP Camera / Re-Stream Setup Wizard)
  • Tags: Please delete some tags, you are using 30 tag instead of maximum 10
You can take inspiration from this readme.txt

videowhisper-live-streaming-integration/videowhisper_streaming.php 77% from 13 tests

The main file in "Broadcast Live Video - Live Streaming : HTML5, WebRTC, HLS, RTSP, RTMP" v. 5.7.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 616 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("videowhisper-live-streaming-integration.php" instead of "videowhisper_streaming.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected43,250 lines of code in 129 files:
LanguageFilesBlank linesComment linesLines of code
PHP504,8393,58715,859
SVG602411,762
JavaScript411,6791,7689,813
CSS141535222,629
PO File35025141,581
LESS315016777
Markdown51870608
JSON300109
YAML111676
XML26029
Dockerfile1107

PHP code 0% from 2 tests

A short review of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,359)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 454)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity71.02
▷ Minimum class complexity1.00
▷ Maximum class complexity1,359.00
Average method complexity9.26
▷ Minimum method complexity1.00
▷ Maximum method complexity454.00
Code structure
Namespaces4
Interfaces1
Traits4
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes12.70%
Methods366
▷ Static methods20656.28%
▷ Public methods34493.99%
▷ Protected methods30.82%
▷ Private methods195.19%
Functions23
▷ Named functions28.70%
▷ Anonymous functions2191.30%
Constants67
▷ Global constants34.48%
▷ Class constants6495.52%
▷ Public constants5789.06%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
37 PNG files occupy 2.73MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
scripts/jtable/themes/lightcolor/add.png0.47KB0.42KB▼ 10.17%
scripts/jtable/themes/lightcolor/delete.png0.15KB0.14KB▼ 4.00%
htmlchat/tips/gift4.png1.57KB1.42KB▼ 9.82%
scripts/jtable/themes/flick/images/ui-bg_highlight-soft_50_dddddd_1x100.png0.33KB0.14KB▼ 57.23%
scripts/jtable/themes/flick/images/ui-icons_454545_256x240.png6.92KB4.18KB▼ 39.61%