10% vidsy

Code Review | Vidsy.tv Video Gallery and Video CMS

WordPress plugin Vidsy.tv Video Gallery and Video CMS scored 10% from 54 tests.

About plugin

  • Plugin page: vidsy
  • Plugin version: 1.0.6.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.7
  • WordPress version: 6.3.1
  • First release: Mar 10, 2014
  • Latest release: Mar 10, 2017
  • Number of updates: 55
  • Update frequency: every 20.0 days
  • Top authors: TCattitude (81.82%)TCattd (20%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active / 17,829 total downloads

Benchmarks

Plugin footprint 40% 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
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/vidsy/widgets/recentvideos.php+120
    Function create_function() is deprecated

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

A check of server-side resources used by Vidsy.tv Video Gallery and Video CMS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.34 ▼42.97
Dashboard /wp-admin2.05 ▼1.265.29 ▼42.22
Posts /wp-admin/edit.php2.05 ▼1.315.68 ▼40.77
Add New Post /wp-admin/post-new.php2.05 ▼3.846.40 ▼88.83
Media Library /wp-admin/upload.php2.05 ▼1.186.78 ▼24.88
VTV /wp-admin/admin.php?page=vidsy-admin-blank2.055.79
Settings /wp-admin/admin.php?page=vidsy-config2.055.53
Vidsy.tv /wp-admin/admin.php?page=vidsy-admin2.056.10

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
widget_vidsywidgetplayerwithrecent
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_vidsywidgetrecentvideos
widget_vidsywidgetplaylistrecent
widget_vidsywidgetplayerwithplaylist
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Vidsy.tv Video Gallery and Video CMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.40 ▼0.031.62 ▼0.2338.40 ▼6.46
Dashboard /wp-admin2,235 ▲505.83 ▲0.9598.34 ▼15.8768.98 ▲24.50
Posts /wp-admin/edit.php2,121 ▲352.03 ▲0.0237.38 ▲3.6633.69 ▼2.61
Add New Post /wp-admin/post-new.php6,680 ▲5,13723.38 ▼0.00911.16 ▲201.1165.12 ▲10.95
Media Library /wp-admin/upload.php1,411 ▲234.21 ▲0.0198.71 ▼3.1368.21 ▲26.50
VTV /wp-admin/admin.php?page=vidsy-admin-blank7872.0223.8220.62
Settings /wp-admin/admin.php?page=vidsy-config8342.0523.4724.22
Vidsy.tv /wp-admin/admin.php?page=vidsy-admin7982.0222.8825.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/vidsy/widgets/recentvideos.php+120
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_vidsywidgetplayerwithrecent
    • widget_recent-posts
    • widget_vidsywidgetrecentvideos
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_vidsywidgetplayerwithplaylist
    • widget_vidsywidgetplaylistrecent
    • db_upgraded
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > Deprecated in wp-content/plugins/vidsy/widgets/playerrecentplaylists.php+120
    Function create_function() is deprecated
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in VidsyWidgetRecentVideos is deprecated since version 4.3.0! Use __construct() instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in VidsyWidgetPlaylistRecent is deprecated since version 4.3.0! Use __construct() instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in VidsyWidgetPlayerWithRecent is deprecated since version 4.3.0! Use __construct() instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in VidsyWidgetPlayerWithPlaylist is deprecated since version 4.3.0! Use __construct() instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in VidsyWidgetPlayerWithRecentPlaylists is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > Warning in wp-content/plugins/vidsy/admin/admin.php+51
    Illegal string offset 'subdomain'
    • > GET request to /wp-admin/admin.php?page=vidsy-admin
    • > Notice in wp-content/plugins/vidsy/admin/admin.php+51
    Uninitialized string offset: 0

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vidsy/widgets/index.php
    • > /wp-content/plugins/vidsy/js/index.php
    • > /wp-content/plugins/vidsy/includes/index.php
    • > /wp-content/plugins/vidsy/admin/index.php
    • > /wp-content/plugins/vidsy/css/index.php
    • > /wp-content/plugins/vidsy/index.php
    • > /wp-content/plugins/vidsy/images/index.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vidsy/includes/thecontent.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

vidsy/vidsy.php Passed 13 tests

The principal PHP file in "Vidsy.tv Video Gallery and Video CMS" v. 1.0.6.7 is loaded by WordPress automatically on each request
35 characters long description:
WordPress integration with Vidsy.tv

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,334 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP121181581,233
JavaScript233087
CSS13014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.43
▷ Minimum class complexity13.00
▷ Maximum class complexity24.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 1.43MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vidsylogoonly.png8.02KB3.67KB▼ 54.18%
screenshot-3.png376.37KB138.00KB▼ 63.33%
images/vidsylogoonly_16.png2.96KB0.44KB▼ 85.04%
screenshot-2.png79.04KB22.08KB▼ 72.07%
screenshot-1.png17.39KB5.89KB▼ 66.12%