78% vimeo-master

Code Review | TechGasp Video Master

WordPress plugin TechGasp Video Master scored 78% from 54 tests.

About plugin

  • Plugin page: vimeo-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 63
  • Update frequency: every 44.7 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

500+ active / 65,549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.48ms] Passed 4 tests

A check of server-side resources used by TechGasp Video Master
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.13 ▼22.80
Dashboard /wp-admin3.35 ▲0.0548.76 ▲1.70
Posts /wp-admin/edit.php3.40 ▲0.0546.72 ▼5.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.54 ▼11.06
Media Library /wp-admin/upload.php3.28 ▲0.0540.59 ▲4.77
Video Master /wp-admin/admin.php?page=vimeo-master3.2634.37
Add-ons /wp-admin/admin.php?page=vimeo-master-admin-addons3.2730.19

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_vimeo_master_widget_buttons
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by TechGasp Video Master
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5514.47 ▼0.211.69 ▼0.8842.40 ▼11.71
Dashboard /wp-admin2,229 ▲385.98 ▲0.10107.13 ▲8.0064.46 ▲19.29
Posts /wp-admin/edit.php2,112 ▲232.05 ▲0.0133.62 ▼1.0830.25 ▼3.15
Add New Post /wp-admin/post-new.php1,690 ▲17122.29 ▼0.88708.26 ▲52.7553.73 ▼1.96
Media Library /wp-admin/upload.php1,408 ▲204.13 ▼0.05111.41 ▲5.8872.27 ▲25.53
Video Master /wp-admin/admin.php?page=vimeo-master1,7708.22216.7584.54
Add-ons /wp-admin/admin.php?page=vimeo-master-admin-addons1,0182.0524.5633.14

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_vimeo_master_widget_buttons
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/vimeo-master/includes/vimeo-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/vimeo-master/includes/vimeo-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vimeo-master/vimeo-master.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/vimeo-master/includes/vimeo-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/vimeo-master/includes/vimeo-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/vimeo-master/includes/vimeo-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vimeo-master/includes/vimeo-master-widget-buttons.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=vimeo-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=vimeo-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=vimeo-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/ys/r/uroBBE-t04u.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=vimeo-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/ys/r/uroBBE-t04u.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

vimeo-master/vimeo-master.php 92% from 13 tests

The main PHP file in "TechGasp Video Master" ver. 5.1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

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
Good job! No executable or dangerous file extensions detected388 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP92757388

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.14
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
10 PNG files occupy 0.29MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-spammaster-logo.png174.42KB66.22KB▼ 62.04%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%
images/techgasp-admin-addons-updater.png14.03KB13.02KB▼ 7.21%
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%