84% tc-room-spy

Code Review | Tinychat API

WordPress plugin Tinychat API scored84%from 54 tests.

About plugin

  • Plugin page: tc-room-spy
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: WordPress 4.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Oct 19, 2022
  • Number of updates: 68
  • Update frequency: every 32.2 days
  • Top authors: ruddernationdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,535 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.23ms] Passed 4 tests

An overview of server-side resources used by Tinychat API
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.12 ▼0.67
Dashboard /wp-admin3.33 ▲0.0256.11 ▲7.49
Posts /wp-admin/edit.php3.38 ▲0.0247.80 ▼2.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.41 ▼9.67
Media Library /wp-admin/upload.php3.25 ▲0.0237.09 ▼0.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Tinychat API
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.331.73 ▲0.0340.79 ▲0.59
Dashboard /wp-admin2,198 ▲185.55 ▼0.0784.29 ▼3.1336.09 ▼6.20
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0640.45 ▲2.2729.91 ▼10.18
Add New Post /wp-admin/post-new.php1,526 ▼023.40 ▲0.32620.94 ▲2.4143.58 ▼26.03
Media Library /wp-admin/upload.php1,403 ▼04.18 ▲0.0197.94 ▼4.9942.14 ▼1.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • rndtc_room_spy_url
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tc-room-spy/room-spy.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: tinychat api, room spy, tinychat, wordpress video chat, tinychat room spy...

tc-room-spy/room-spy.php 85% from 13 tests

The primary PHP file in "Tinychat API" version 1.4.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tc-room-spy.php" instead of "room-spy.php")
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WordPress 4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1519102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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