10% vidtok-live-video-chat-using-webrtc

Code Review | Vidtok Live Video Chat using WebRTC

WordPress plugin Vidtok Live Video Chat using WebRTC scored 10% from 54 tests.

About plugin

  • Plugin page: vidtok-live-video...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2014
  • Latest release: Jun 30, 2014
  • Number of updates: 15
  • Update frequency: every 6.5 days
  • Top authors: blaccspotmedia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,478 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/vidtok-live-video-chat-using-webrtc/vidtok.php+661
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.07ms] Passed 4 tests

Server-side resources used by Vidtok Live Video Chat using WebRTC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.59 ▼3.85
Dashboard /wp-admin3.31 ▲0.0051.55 ▲3.63
Posts /wp-admin/edit.php3.36 ▲0.0049.78 ▲1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.60 ▼18.76
Media Library /wp-admin/upload.php3.23 ▲0.0035.36 ▲0.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vidtok Live Video Chat using WebRTC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.58 ▼0.811.79 ▼0.2238.96 ▼2.43
Dashboard /wp-admin2,206 ▲154.85 ▼1.05106.41 ▲3.9940.46 ▼4.01
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0238.97 ▲1.6335.59 ▲2.34
Add New Post /wp-admin/post-new.php1,536 ▼623.24 ▲4.80648.54 ▲19.1560.15 ▲6.56
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0298.49 ▼1.1542.25 ▼1.63

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/vidtok-live-video-chat-using-webrtc/vidtok.php on line 661

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === vidtok-live-video-chat-using-webrtc === )
  • Screenshots: Please add images for these screenshots: #1 (2.), #3 ()
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

vidtok-live-video-chat-using-webrtc/vidtok.php 85% from 13 tests

The principal PHP file in "Vidtok Live Video Chat using WebRTC" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vidtok-live-video-chat-using-webrtc.php" instead of "vidtok.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin406 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1154100406

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
9 PNG files occupy 0.99MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vidtok.png17.81KB7.49KB▼ 57.92%
images/widget.png395.42KB122.89KB▼ 68.92%
images/vidtok-admin-logo.png3.19KB0.84KB▼ 73.74%
screenshot-3.png70.88KB33.28KB▼ 53.05%
images/embed.png128.32KB69.03KB▼ 46.21%