83% video-chat-roulette

Code Review | Video chat roulette

WordPress plugin Video chat roulette scored83%from 54 tests.

About plugin

  • Plugin page: video-chat-roulette
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2014
  • Latest release: Jun 18, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: softservice (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,676 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Video chat roulette
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0138.44 ▼5.63
Dashboard /wp-admin3.36 ▼0.0346.58 ▼19.93
Posts /wp-admin/edit.php3.41 ▲0.0148.68 ▲0.55
Add New Post /wp-admin/post-new.php5.94 ▲0.0189.03 ▼18.03
Media Library /wp-admin/upload.php3.28 ▲0.0137.28 ▲2.11
Video chat roulette /wp-admin/options-general.php?page=video-chatroulette3.2533.33

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Video chat roulette
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.041.53 ▼0.1937.76 ▼9.28
Dashboard /wp-admin2,199 ▲255.61 ▼0.0091.23 ▼8.0442.60 ▲0.95
Posts /wp-admin/edit.php2,107 ▲71.98 ▲0.0139.46 ▲4.1836.02 ▲0.68
Add New Post /wp-admin/post-new.php1,531 ▲322.92 ▼0.11624.55 ▼55.8264.52 ▼0.35
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.07101.92 ▼6.3647.18 ▼0.55
Video chat roulette /wp-admin/options-general.php?page=video-chatroulette7732.0225.1227.44

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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)
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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/video-chat-roulette/video-chatroulette.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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: Write the name of your plugin instead of "Plugin Name" on the first line ( === video-chat-roulette === )
Please take inspiration from this readme.txt

video-chat-roulette/video-chatroulette.php 85% from 13 tests

The entry point to "Video chat roulette" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("video-chat-roulette.php" instead of "video-chatroulette.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141849

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin