77% video-share-vod

Code Review | Video Share VOD - Turnkey Video Site Builder Script

WordPress plugin Video Share VOD - Turnkey Video Site Builder Script scored77%from 54 tests.

About plugin

  • Plugin page: video-share-vod
  • Plugin version: 2.6.20
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Sep 17, 2023
  • Number of updates: 224
  • Update frequency: every 15.1 days
  • Top authors: videowhisper (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100+ active /75,349 total downloads

Benchmarks

Plugin footprint 82% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.55MB] [CPU: ▲2.48ms] Passed 4 tests

Server-side resources used by Video Share VOD - Turnkey Video Site Builder Script
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.05 ▲1.5945.75 ▲4.72
Dashboard /wp-admin4.88 ▲1.5854.45 ▲5.60
Posts /wp-admin/edit.php4.94 ▲1.5950.76 ▲3.35
Add New Post /wp-admin/post-new.php7.41 ▲1.5288.34 ▼3.48
Media Library /wp-admin/upload.php4.74 ▲1.5144.89 ▲5.32
New TV Show /wp-admin/post-new.php?post_type=tvshow4.9986.10
Playlists /wp-admin/edit-tags.php?taxonomy=playlist&post_type=video4.7447.10
Import /wp-admin/admin.php?page=video-share-import4.7239.20
Conversions /wp-admin/admin.php?page=video-share-conversion4.6938.24
Documentation /wp-admin/admin.php?page=video-share-docs4.6939.38
All TV Shows /wp-admin/edit.php?post_type=tvshow4.8746.58
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=video4.7341.60
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=video4.7340.73
All Videos /wp-admin/edit.php?post_type=video4.8744.13
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tvshow4.7343.11

Server storage [IO: ▲8.49MB] [DB: ▲0.01MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • The plugin illegally modified 1 file (0.64KB) outside of "wp-content/plugins/video-share-vod/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 158 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
playlist_children
widget_recent-comments
db_upgraded
VWvideoShareOptions
widget_recent-posts
category_children

Browser metrics Passed 4 tests

Checking browser requirements for Video Share VOD - Turnkey Video Site Builder Script
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,115 ▲35413.44 ▼0.767.44 ▲5.8137.62 ▼2.77
Dashboard /wp-admin2,377 ▲1975.58 ▼0.1082.92 ▼9.8643.29 ▼0.07
Posts /wp-admin/edit.php2,282 ▲1852.05 ▲0.1135.21 ▼2.4837.42 ▲3.65
Add New Post /wp-admin/post-new.php1,682 ▲15623.20 ▲0.09651.36 ▼77.6055.85 ▼1.77
Media Library /wp-admin/upload.php1,582 ▲1854.20 ▲0.0694.90 ▼3.7448.36 ▲4.93
New TV Show /wp-admin/post-new.php?post_type=tvshow2,7897.92165.7371.06
Playlists /wp-admin/edit-tags.php?taxonomy=playlist&post_type=video1,5642.1427.2534.61
Import /wp-admin/admin.php?page=video-share-import1,0832.0125.1731.33
Conversions /wp-admin/admin.php?page=video-share-conversion1,0042.0122.3334.23
Documentation /wp-admin/admin.php?page=video-share-docs1,1542.0122.4036.01
All TV Shows /wp-admin/edit.php?post_type=tvshow1,3061.9630.9033.27
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=video1,6372.1527.4331.70
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=video1,4982.1429.6032.87
All Videos /wp-admin/edit.php?post_type=video1,3501.9533.6634.79
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tvshow1,5012.1429.1235.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • VWvideoShareOptions
    • playlist_children
    • category_children
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=video-share-docs
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=video-share-docs
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=video-share-import
    • > Notice in wp-content/plugins/video-share-vod/video-share-vod.php+4531
    String offset cast occurred
    • > GET request to /wp-admin/admin.php?page=video-share-conversion
    • > Notice in wp-content/plugins/video-share-vod/video-share-vod.php+3421
    Undefined variable: lastClean
    • > GET request to /wp-admin/admin.php?page=video-share-docs
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1243
    Undefined index: p_videowhisper_videos
    • > GET request to /wp-admin/admin.php?page=video-share-docs
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1247
    Undefined index: p_videowhisper_plupload

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/video-share-vod/taxonomy-playlist.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/video-share-vod/template-video.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (47 tag instead of maximum 10)
  • Screenshots: These screenshots do not have images: #1 (Video list (AJAX load and update, pagination, info)), #2 (HTML5 video upload (Multi file, AJAX, Drag & Drop, fallback (standard upload as backup), iOS & Android support)), #3 (RTMP player support (fast search, no direct file access, HD)), #4 (HTML5 player (plain and HLS, video conversion for mobile)), #5 (Admin settings (VOD setup)), #6 (VOD access roles playlists, custom message), #7 (Live Streaming channel management (with archive import and video upload)), #8 (Select category, order by date/views/watch time, move to another page with AJAX)
The official readme.txt is a good inspiration

video-share-vod/video-share-vod.php 92% from 13 tests

This is the main PHP file of "Video Share VOD - Turnkey Video Site Builder Script" version 2.6.20, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 351 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin23,610 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
SVG40129,407
PHP52,0831,4376,183
JavaScript554627754,947
JSON36002,092
CSS1011356592
PO File1171175385
Markdown1304

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 218)
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity422.00
▷ Minimum class complexity139.00
▷ Maximum class complexity775.00
Average method complexity11.83
▷ Minimum method complexity1.00
▷ Maximum method complexity218.00
Code structure
Namespaces1
Interfaces0
Traits2
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods118
▷ Static methods11395.76%
▷ Public methods118100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 1.82MB with 0.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png485.85KB115.19KB▼ 76.29%
interface/jquery.ui/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
screenshot-5.png93.11KB28.27KB▼ 69.63%
interface/semantic/themes/default/assets/images/flags.png27.46KB29.21KB0.00%
interface/jquery.ui/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%