78% vdocipher

Code Review | VdoCipher

WordPress plugin VdoCipher scored78%from 54 tests.

About plugin

  • Plugin page: vdocipher
  • Plugin version: 1.29
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 20, 2014
  • Latest release: Feb 27, 2023
  • Number of updates: 51
  • Update frequency: every 58.7 days
  • Top authors: vibhavsinha (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /19,149 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.72ms] Passed 4 tests

An overview of server-side resources used by VdoCipher
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.72 ▲3.21
Dashboard /wp-admin3.38 ▲0.0452.49 ▼14.08
Posts /wp-admin/edit.php3.43 ▲0.0852.19 ▲0.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.48 ▼12.80
Media Library /wp-admin/upload.php3.30 ▲0.0837.84 ▼0.55

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 12 new options
New WordPress options
vdo_default_width
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
vdo_player_theme
vdo_default_height
vdo_show_plugin_in_sidebar
theysaidso_admin_options
vdo_plugin_version
...

Browser metrics Passed 4 tests

A check of browser resources used by VdoCipher
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.27 ▼0.281.79 ▼0.0243.08 ▲3.59
Dashboard /wp-admin2,195 ▲155.51 ▼0.1893.00 ▲3.8882.50 ▲40.07
Posts /wp-admin/edit.php2,097 ▼62.00 ▼0.0035.39 ▼2.4136.04 ▲1.68
Add New Post /wp-admin/post-new.php6,377 ▲4,85127.84 ▲4.27944.73 ▲258.0438.04 ▼20.78
Media Library /wp-admin/upload.php1,409 ▲94.21 ▼0.04102.37 ▼12.0668.98 ▲20.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vdocipher/include/player-versions-doc.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: existingVersion in wp-content/plugins/vdocipher/include/player-versions-doc.php on line 7

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 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === vdocipher === )
  • Screenshots: Please add an image for screenshot #5 (Video playing inside a post.)
Please take inspiration from this readme.txt

vdocipher/vdocipher.php Passed 13 tests

The primary PHP file in "VdoCipher" version 1.29 is used by WordPress to initiate all plugin functionality
35 characters long description:
Secured video hosting for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin879 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP45154733
JavaScript38059
HTML22452
JSON10034
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.72KB1.38KB▼ 19.55%
include/img/default1.png42.45KB46.21KB0.00%