78% rumbletalk-chat-a-chat-with-themes

Code Review | RumbleTalk Live Group Chat - HTML5

WordPress plugin RumbleTalk Live Group Chat - HTML5 scored78%from 54 tests.

About plugin

  • Plugin page: rumbletalk-chat-a...
  • Plugin version: 6.2.2
  • PHP compatiblity: 5.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2011
  • Latest release: Nov 28, 2023
  • Number of updates: 391
  • Update frequency: every 11.3 days
  • Top authors: RumbleTalk (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /183,613 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by RumbleTalk Live Group Chat - HTML5
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.07 ▼3.45
Dashboard /wp-admin3.33 ▼0.0250.56 ▼10.22
Posts /wp-admin/edit.php3.38 ▲0.0266.73 ▲18.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.67 ▼1.36
Media Library /wp-admin/upload.php3.25 ▲0.0237.05 ▼1.07
RumbleTalk Chat /wp-admin/options-general.php?page=rumbletalk-chat3.2631.29

Server storage [IO: ▲0.35MB] [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: 33 new files
Database: no new tables, 10 new options
New WordPress options
rumbletalk_chat_chats
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
rumbletalk_chat_token_secret
rumbletalk_chat_token_key
rumbletalk_accesstoken

Browser metrics 75% from 4 tests

RumbleTalk Live Group Chat - HTML5: an overview of browser usage
Please improve the following
  • Script duration: Try to keep JavaScript execution under 1,500.00ms (currently 1,501.52ms on /wp-admin/options-general.php?page=rumbletalk-chat)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.27 ▼0.461.86 ▲0.2445.17 ▲1.70
Dashboard /wp-admin2,196 ▲295.62 ▼0.0195.82 ▼14.4342.70 ▼3.70
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0147.09 ▲9.5137.66 ▲0.19
Add New Post /wp-admin/post-new.php1,531 ▼14923.23 ▲1.50693.74 ▲80.1257.76 ▼15.04
Media Library /wp-admin/upload.php1,398 ▼24.19 ▼0.0195.70 ▼0.3043.11 ▲2.55
RumbleTalk Chat /wp-admin/options-general.php?page=rumbletalk-chat4,91550.941,501.5290.20

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/rumbletalk-chat-a-chat-with-themes/admin/partials/rumbletalk-admin-sidebar-display.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rumbletalk-chat-a-chat-with-themes/admin/ajax-rumbletalk-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rumbletalk-chat-a-chat-with-themes/admin/class-rumbletalk-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rumbletalk-chat-a-chat-with-themes/admin/partials/rumbletalk-admin-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rumbletalk-chat-a-chat-with-themes/admin/partials/rumbletalk-admin-info-display.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rumbletalk-chat-a-chat-with-themes/includes/class-rumbletalk-activator.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 your attention:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
The official readme.txt might help

rumbletalk-chat-a-chat-with-themes/rumbletalk.php 92% from 13 tests

This is the main PHP file of "RumbleTalk Live Group Chat - HTML5" version 6.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rumbletalk-chat-a-chat-with-themes.php" instead of "rumbletalk.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,571 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP143216351,392
JavaScript3144204693
CSS210211481
SVG1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.86
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods67
▷ Static methods1217.91%
▷ Public methods4973.13%
▷ Protected methods00.00%
▷ Private methods1826.87%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/embed-option-floating.png74.54KB26.09KB▼ 65.01%
admin/images/rumbletalk-logo.png8.04KB3.85KB▼ 52.16%
admin/images/expand.png9.30KB1.44KB▼ 84.55%
admin/images/embed-option.png60.36KB21.09KB▼ 65.05%