78% live-shopping-video-streams

Code Review | Live Shopping & Video Streams For WooCommerce

WordPress plugin Live Shopping & Video Streams For WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: live-shopping-vid...
  • Plugin version: 2.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2021
  • Latest release: Oct 9, 2023
  • Number of updates: 32
  • Update frequency: every 22.9 days
  • Top authors: channelizeio (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /3,532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Live Shopping & Video Streams For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.93 ▼1.79
Dashboard /wp-admin3.36 ▲0.0146.21 ▼11.83
Posts /wp-admin/edit.php3.48 ▲0.1247.43 ▲2.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.94 ▼5.98
Media Library /wp-admin/upload.php3.29 ▲0.0534.79 ▲0.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Live Shopping & Video Streams For WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3514.82 ▲0.531.73 ▼0.2745.19 ▲1.51
Dashboard /wp-admin2,215 ▲275.83 ▼0.0299.13 ▼15.3239.55 ▼1.89
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0336.18 ▼4.5836.18 ▲1.25
Add New Post /wp-admin/post-new.php1,539 ▼023.27 ▲0.17596.11 ▼47.7641.67 ▼2.16
Media Library /wp-admin/upload.php1,388 ▲34.34 ▲0.1297.97 ▲2.9639.65 ▼2.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/live-shopping-video-streams/composer-setup.php
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Exceptions\\BaseApiException' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Exceptions/ValidationFailException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Exceptions\\BaseApiException' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Exceptions/InternalServerException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Resource' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Conversation.php:3
    • > PHP Notice
      Undefined variable: argv in wp-content/plugins/live-shopping-video-streams/composer-setup.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Resource' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/PushNotificationSettings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Exceptions\\BaseApiException' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Exceptions/ForbiddenException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Exceptions\\BaseException' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Exceptions/BaseApiException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Exceptions\\BaseApiException' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Exceptions/NoRecordFoundException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Exceptions\\BaseApiException' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Exceptions/UnauthorizedException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Includes\\Libraries\\Resource' not found in wp-content/plugins/live-shopping-video-streams/includes/Libraries/Message.php:3

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: live streaming, live shopping, live stream shopping, streaming, woocommerce

live-shopping-video-streams/channelize-live-shopping.php 85% from 13 tests

Analyzing the main PHP file in "Live Shopping & Video Streams For WooCommerce" version 2.1.6
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("live-shopping-video-streams.php" instead of "channelize-live-shopping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,541 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP467741,0203,417
CSS18151
JavaScript21145
JSON20027
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.09
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes13.03%
Methods160
▷ Static methods2716.88%
▷ Public methods12880.00%
▷ Protected methods2515.62%
▷ Private methods74.38%
Functions26
▷ Named functions2388.46%
▷ Anonymous functions311.54%
Constants20
▷ Global constants945.00%
▷ Class constants1155.00%
▷ Public constants11100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 3.77MB with 2.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-7.png135.54KB57.26KB▼ 57.75%
includes/Overview.png94.09KB26.88KB▼ 71.43%
assets/screenshot-6.png509.61KB194.40KB▼ 61.85%
assets/screenshot-8.png341.24KB150.98KB▼ 55.76%
assets/screenshot-2.png757.35KB245.68KB▼ 67.56%