10% video-share-vod

Code Review | Video Share VOD - Turnkey Video Site Builder

WordPress plugin Video Share VOD - Turnkey Video Site Builder scored 10% from 54 tests.

About plugin

  • Plugin page: video-share-vod
  • Plugin version: 2.5.24
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.8
  • WordPress version: 5.8.1
  • First release: Jun 12, 2014
  • Latest release: Mar 4, 2022
  • Number of updates: 198
  • Update frequency: every 14.3 days
  • Top authors: videowhisper (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active / 68,745 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/video-share-vod/video-share-vod.php+43
    Non-static method VWvideoShare::setupOptions() should not be called statically

Server metrics [RAM: ▼0.37MB] [CPU: ▼166.73ms] Passed 4 tests

Server-side resources used by Video Share VOD - Turnkey Video Site Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.67 ▼0.1712.39 ▼8.38
Dashboard /wp-admin3.08 ▲0.0119.38 ▼17.86
Posts /wp-admin/edit.php3.05 ▼0.0620.19 ▼12.14
Add New Post /wp-admin/post-new.php4.18 ▼1.2525.34 ▼628.53
Media Library /wp-admin/upload.php3.09 ▲0.0819.06 ▼5.18
Conversions /wp-admin/admin.php?page=video-share-conversion3.0617.35
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=video3.2820.61
Statistics & Space /wp-admin/admin.php?page=video-stats3.0616.77
Upload /wp-admin/admin.php?page=video-share-upload3.0617.12
Playlists /wp-admin/edit-tags.php?taxonomy=playlist&post_type=video3.0817.70
Manage Videos /wp-admin/admin.php?page=video-manage3.0617.11
Documentation /wp-admin/admin.php?page=video-share-docs3.0617.37
New TV Show /wp-admin/post-new.php?post_type=tvshow3.0116.05
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tvshow3.0817.85
All Videos /wp-admin/edit.php?post_type=video3.0519.71

Server storage [IO: ▲8.48MB] [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, 3 new options
New WordPress options
playlist_children
category_children
VWvideoShareOptions

Browser metrics Passed 4 tests

Checking browser requirements for Video Share VOD - Turnkey Video Site Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,079 ▲42815.94 ▼0.0511.93 ▲6.0286.33 ▲9.98
Dashboard /wp-admin3,157 ▲2586.15 ▼0.01117.32 ▼18.09168.26 ▼10.05
Posts /wp-admin/edit.php2,970 ▲2273.37 ▲0.0366.68 ▲2.86133.80 ▼6.29
Add New Post /wp-admin/post-new.php3,876 ▲6819.01 ▼0.13430.28 ▼13.41162.50 ▲3.70
Media Library /wp-admin/upload.php1,978 ▲2265.57 ▲0.07150.58 ▲5.88188.59 ▲7.46
Conversions /wp-admin/admin.php?page=video-share-conversion1,3072.5355.35113.42
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=video2,1542.9258.74137.05
Statistics & Space /wp-admin/admin.php?page=video-stats1,3672.5055.37114.19
Upload /wp-admin/admin.php?page=video-share-upload2,0164.0894.96323.26
Playlists /wp-admin/edit-tags.php?taxonomy=playlist&post_type=video1,9802.9358.90126.85
Manage Videos /wp-admin/admin.php?page=video-manage1,2602.4956.30114.04
Documentation /wp-admin/admin.php?page=video-share-docs1,5502.5056.43116.18
New TV Show /wp-admin/post-new.php?post_type=tvshow4,0169.63200.20237.34
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tvshow2,1572.9264.81145.27
All Videos /wp-admin/edit.php?post_type=video1,7813.2260.83122.48

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: 3 options
    • playlist_children
    • category_children
    • VWvideoShareOptions

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
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=video
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::admin_head() should not be called statically
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=video
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+370
    Undefined index: p_videowhisper_videos
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=video
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+383
    Undefined index: p_videowhisper_plupload
    • > GET request to /wp-admin/admin.php?page=video-share-conversion
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::adminConversion() should not be called statically
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=video-share-docs
    • > User deprecated in wp-includes/functions.php+5221
    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-docs
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=video-share-conversion
    • > Deprecated in wp-content/plugins/video-share-vod/inc/options.php+662
    Non-static method VWvideoShare::convertProcessQueue() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-share-conversion
    • > Deprecated in wp-content/plugins/video-share-vod/inc/options.php+665
    Non-static method VWvideoShare::timeToGet() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-share-conversion
    • > Notice in wp-content/plugins/video-share-vod/video-share-vod.php+3409
    Undefined variable: lastClean
    • > GET request to /wp-admin/admin.php?page=video-share-conversion
    • > Deprecated in wp-content/plugins/video-share-vod/inc/options.php+681
    Non-static method VWvideoShare::varLoad() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-stats
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::adminStats() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-stats
    • > Deprecated in wp-content/plugins/video-share-vod/inc/options.php+867
    Non-static method VWvideoShare::sizeTree() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-stats
    • > Notice in wp-content/plugins/video-share-vod/video-share-vod.php+4439
    String offset cast occurred
    • > GET request to /wp-admin/admin.php?page=video-share-upload
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::adminUpload() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-share-upload
    • > Deprecated in wp-includes/shortcodes.php+356
    Non-static method VWvideoShare::videowhisper_plupload() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-share-upload
    • > User deprecated in wp-includes/functions.php+5211
    get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
    • > GET request to /wp-admin/admin.php?page=video-share-upload
    • > Notice in wp-content/plugins/video-share-vod/inc/shortcodes.php+689
    Undefined index: upload
    • > GET request to /wp-admin/admin.php?page=video-share-upload
    • > Notice in wp-content/plugins/video-share-vod/video-share-vod.php+5056
    Undefined index: HTTPS
    • > GET request to /wp-admin/admin.php?page=video-manage
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::adminManage() should not be called statically
    • > GET request to /wp-admin/admin.php?page=video-manage
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1045
    Undefined index: clean
    • > GET request to /wp-admin/admin.php?page=video-manage
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1071
    Undefined index: updateSpace
    • > GET request to /wp-admin/admin.php?page=video-manage
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1086
    Undefined index: updateInfo
    • > GET request to /wp-admin/admin.php?page=video-manage
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1094
    Undefined index: updateThumb
    • > GET request to /wp-admin/admin.php?page=video-manage
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1100
    Undefined index: convert
    • > GET request to /wp-admin/admin.php?page=video-manage
    • > Notice in wp-content/plugins/video-share-vod/inc/options.php+1111
    Undefined index: troubleshoot
    • > GET request to /wp-admin/admin.php?page=video-share-docs
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::adminDocs() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=tvshow
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::post_meta_boxes_setup() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=tvshow
    • > Deprecated in wp-includes/class-wp-hook.php+305
    Non-static method VWvideoShare::save_post_meta() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=tvshow
    • > Deprecated in wp-includes/class-wp-hook.php+305
    Non-static method VWvideoShare::add_post_meta_boxes() should not be called statically
    • > GET request to /wp-admin/edit.php?post_type=video
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::duration_column_orderby() should not be called statically
    • > GET request to /wp-admin/edit.php?post_type=video
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::columns_head_video() should not be called statically
    • > GET request to /wp-admin/edit.php?post_type=video
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method VWvideoShare::columns_register_sortable() should not be called statically

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/template-video.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/video-share-vod/taxonomy-playlist.php:2

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" version 2.5.24, 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 344 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,499 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
SVG40129,407
PHP52,0281,4186,072
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 206)
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity405.00
▷ Minimum class complexity137.00
▷ Maximum class complexity743.00
Average method complexity11.39
▷ Minimum method complexity1.00
▷ Maximum method complexity206.00
Code structure
Namespaces1
Interfaces0
Traits2
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods118
▷ Static methods4638.98%
▷ 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.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png190.70KB72.07KB▼ 62.21%
screenshot-7.png337.85KB94.51KB▼ 72.03%
no_video.png7.30KB3.58KB▼ 50.92%
interface/semantic/themes/default/assets/images/flags.png27.46KB29.21KB0.00%
screenshot-1.png339.35KB93.22KB▼ 72.53%