84% tc-video-chat

Code Review | Video Chat - Tinychat

WordPress plugin Video Chat - Tinychat scored84%from 54 tests.

About plugin

  • Plugin page: tc-video-chat
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: WordPress 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2016
  • Latest release: Apr 25, 2022
  • Number of updates: 97
  • Update frequency: every 20.7 days
  • Top authors: ruddernationdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /10,408 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.62ms] Passed 4 tests

An overview of server-side resources used by Video Chat - Tinychat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.27 ▼7.31
Dashboard /wp-admin3.32 ▲0.0149.26 ▼2.19
Posts /wp-admin/edit.php3.37 ▲0.0148.71 ▼3.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.35 ▼17.18
Media Library /wp-admin/upload.php3.24 ▲0.0140.29 ▲2.76

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
tc_video_chat_url
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Chat - Tinychat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▲0.011.71 ▲0.0443.20 ▼1.79
Dashboard /wp-admin2,198 ▲245.61 ▼0.0688.96 ▼2.1738.76 ▼1.96
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0436.75 ▼3.8936.20 ▼3.67
Add New Post /wp-admin/post-new.php1,535 ▲718.12 ▼5.04656.98 ▼14.4173.82 ▲13.37
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0297.49 ▼10.6840.89 ▼3.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • tc_video_chat_url
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/tc-video-chat/tc-video-chat.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: ruddernation, wordpress video chat, chat, tinychat, buddypress video chat...

tc-video-chat/tc-video-chat.php 92% from 13 tests

The main PHP script in "Video Chat - Tinychat" version 1.7.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WordPress 4.0")

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 plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151476

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Constants1
▷ Global constants1100.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
19 PNG files occupy 3.20MB with 2.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png92.77KB31.15KB▼ 66.42%
screenshot-17.png426.69KB151.52KB▼ 64.49%
screenshot-13.png42.00KB16.33KB▼ 61.11%
screenshot-15.png37.22KB14.33KB▼ 61.51%
screenshot-2.png59.10KB22.97KB▼ 61.14%