67% isset-video

Code Review | isset.video

WordPress plugin isset.video scored67%from 54 tests.

About plugin

  • Plugin page: isset-video
  • Plugin version: 0.9.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: May 11, 2020
  • Latest release: Oct 1, 2021
  • Number of updates: 18
  • Update frequency: every 28.3 days
  • Top authors: rommertvantil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼9.15ms] Passed 4 tests

A check of server-side resources used by isset.video
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3543.00 ▲1.22
Dashboard /wp-admin3.78 ▲0.4856.76 ▲4.07
Posts /wp-admin/edit.php3.81 ▲0.4652.77 ▲1.97
Add New Post /wp-admin/post-new.php5.79 ▼0.0971.27 ▼43.87
Media Library /wp-admin/upload.php3.68 ▲0.4645.19 ▲4.89
Advertisement /wp-admin/admin.php?page=isset-video-advertisement3.5532.25
Player Settings /wp-admin/admin.php?page=isset-video-player-settings3.5528.29
Livestream /wp-admin/admin.php?page=isset-video-livestream3.5530.36
Videos /wp-admin/admin.php?page=isset-video-overview3.5532.35

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for isset.video
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,162 ▲40118.80 ▲4.2477.56 ▲76.0552.46 ▲10.89
Dashboard /wp-admin2,381 ▲2047.51 ▲1.94187.48 ▲95.6043.25 ▼2.91
Posts /wp-admin/edit.php2,254 ▲1544.86 ▲2.9157.28 ▲16.4832.04 ▼9.95
Add New Post /wp-admin/post-new.php6,477 ▲4,95130.78 ▲7.48889.51 ▲156.1338.05 ▼24.30
Media Library /wp-admin/upload.php1,558 ▲1586.57 ▲2.47118.64 ▲3.2849.01 ▲1.40
Advertisement /wp-admin/admin.php?page=isset-video-advertisement9224.3745.5128.37
Player Settings /wp-admin/admin.php?page=isset-video-player-settings9254.4749.0826.92
Livestream /wp-admin/admin.php?page=isset-video-livestream9224.5645.2528.02
Videos /wp-admin/admin.php?page=isset-video-overview9224.4845.8428.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=isset-video-overview
    • > Notice in wp-content/plugins/isset-video/src/Service/VideoPublisherService.php+270
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/isset-video/views/shortcode/livestream.php
  • 52× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'IssetBV\\VideoPublisher\\Wordpress\\Action\\BaseAction' not found in wp-content/plugins/isset-video/src/Action/Settings/Scripts.php:9
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/isset-video/views/admin/input.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'IssetBV\\VideoPublisher\\Wordpress\\Action\\BaseAction' not found in wp-content/plugins/isset-video/src/Action/Livestream/StreamDetails.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'IssetBV\\VideoPublisher\\Wordpress\\Action\\BaseAction' not found in wp-content/plugins/isset-video/src/Action/HijackRouter.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/isset-video/views/admin/input.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/isset-video/views/admin/upload.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'IssetBV\\VideoPublisher\\Wordpress\\Action\\BaseAction' not found in wp-content/plugins/isset-video/src/Action/Upload/GetArchiveUrl.php:8
    • > PHP Warning
      require_once(ABSPATHwp-admin/admin-header.php): failed to open stream: No such file or directory in wp-content/plugins/isset-video/views/admin/upload.php on line 1
    • > PHP Notice
      Undefined variable: publisherUrl in wp-content/plugins/isset-video/views/shortcode/livestream.php on line 2
    • > PHP Notice
      Undefined variable: uuid in wp-content/plugins/isset-video/views/shortcode/livestream.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=isset-video-overview
    • > Console-api (warning) in wp-content/plugins/isset-video/js/main.js?ver=0.9.6+2:57722
    VIDEOJS:" "WARN:" "A plugin named \"chromecast\" already exists. You may want to avoid re-registering plugins!
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=isset-video-overview
    • > Console-api (warning) in wp-content/plugins/isset-video/js/main.js?ver=0.9.6+2:57722
    VIDEOJS:" "WARN:" "A plugin named \"airPlay\" already exists. You may want to avoid re-registering plugins!

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: cdn, video processing, external video, hls video

isset-video/isset-video-publisher.php 92% from 13 tests

Analyzing the main PHP file in "isset.video" version 0.9.6
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("isset-video.php" instead of "isset-video-publisher.php")

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin5,105 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP464711081,708
CSS223461,671
PO File55576941,262
JavaScript150728449
SVG10015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.79
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes29
▷ Abstract classes517.24%
▷ Concrete classes2482.76%
▷ Final classes00.00%
Methods186
▷ Static methods31.61%
▷ Public methods13572.58%
▷ Protected methods94.84%
▷ Private methods4222.58%
Functions15
▷ Named functions213.33%
▷ Anonymous functions1386.67%
Constants17
▷ Global constants317.65%
▷ Class constants1482.35%
▷ Public constants14100.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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ic_cast_white_24dp.png0.80KB0.61KB▼ 24.76%
images/ic_cast_connected_white_24dp.png0.96KB0.72KB▼ 24.97%
assets/icon-256x256.png15.49KB5.22KB▼ 66.33%
assets/icon-128x128.png7.88KB3.05KB▼ 61.22%
assets/isset.video.png21.19KB7.46KB▼ 64.80%