84% tiviclick-live-video-chat

Code Review | Tiviclick Video Chat for WordPress

WordPress plugin Tiviclick Video Chat for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: tiviclick-live-vi...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 19, 2013
  • Latest release: Mar 16, 2017
  • Number of updates: 71
  • Update frequency: every 17.3 days
  • Top authors: visionstech (59.15%)Iftach Ben Zvi (42.25%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Tiviclick Video Chat for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.00 ▼2.66
Dashboard /wp-admin3.32 ▼0.0345.01 ▼20.07
Posts /wp-admin/edit.php3.37 ▲0.0146.89 ▲0.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.38 ▼14.42
Media Library /wp-admin/upload.php3.24 ▲0.0135.44 ▼0.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Tiviclick Video Chat for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.24 ▼0.001.50 ▲0.0036.95 ▼3.36
Dashboard /wp-admin2,214 ▲345.62 ▼0.0386.87 ▲0.8439.01 ▼6.67
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0135.77 ▼0.2334.23 ▲1.56
Add New Post /wp-admin/post-new.php1,544 ▲1823.31 ▲0.25628.99 ▲12.9251.07 ▼6.78
Media Library /wp-admin/upload.php1,416 ▲164.19 ▲0.0392.91 ▼4.6841.26 ▼4.76

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiviclick-live-video-chat/functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tiviclick-live-video-chat/index.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

tiviclick-live-video-chat/index.php 92% from 13 tests

Analyzing the main PHP file in "Tiviclick Video Chat for WordPress" version 2.2.1
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tiviclick-live-video-chat.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected82 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2201682

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin