83% roomlio-group-chat

Code Review | Roomlio - Group Chat

WordPress plugin Roomlio - Group Chat scored83%from 54 tests.

About plugin

  • Plugin page: roomlio-group-chat
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6.39+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Oct 7, 2021
  • Latest release: May 26, 2022
  • Number of updates: 14
  • Update frequency: every 16.5 days
  • Top authors: roomlio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,428 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.11MB] [CPU: ▼4.70ms] Passed 4 tests

Server-side resources used by Roomlio - Group Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.45 ▼2.27
Dashboard /wp-admin3.44 ▲0.1349.24 ▼0.58
Posts /wp-admin/edit.php3.55 ▲0.1951.10 ▲3.27
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.78 ▼19.20
Media Library /wp-admin/upload.php3.36 ▲0.1337.67 ▲4.18
Roomlio Rooms /wp-admin/edit.php?post_type=roomlio_room3.4035.68
Settings /wp-admin/edit.php?post_type=roomlio_room&page=roomlio-plugin-page3.3334.65
Add Room /wp-admin/post-new.php?post_type=roomlio_room3.3941.15

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Roomlio - Group Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11813.20 ▼1.384.51 ▲2.8943.39 ▲3.94
Dashboard /wp-admin2,273 ▲854.96 ▲0.0799.66 ▼13.3790.04 ▲45.43
Posts /wp-admin/edit.php2,162 ▲702.01 ▼0.0139.78 ▲4.5436.62 ▲4.58
Add New Post /wp-admin/post-new.php6,246 ▲4,71319.30 ▼3.87830.91 ▲217.5537.27 ▼18.75
Media Library /wp-admin/upload.php1,449 ▲614.15 ▼0.04127.56 ▲29.9743.81 ▲1.71
Roomlio Rooms /wp-admin/edit.php?post_type=roomlio_room1,1281.9534.9731.29
Settings /wp-admin/edit.php?post_type=roomlio_room&page=roomlio-plugin-page9452.0725.8228.57
Add Room /wp-admin/post-new.php?post_type=roomlio_room1,5352.4249.5154.39

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roomlio-group-chat/includes/rml-public-shortcode.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roomlio-group-chat/includes/rml-admin-room-form.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/roomlio-group-chat/includes/rml-admin-functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roomlio-group-chat/includes/rml-admin-settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/roomlio-group-chat/roomlio.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roomlio-group-chat/includes/rml-public-shortcode.php:8

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

roomlio-group-chat/roomlio.php 85% from 13 tests

The primary PHP file in "Roomlio - Group Chat" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("roomlio-group-chat.php" instead of "roomlio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,015 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP784235542
JavaScript33225372
CSS120092
SVG3009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions34
▷ Named functions3191.18%
▷ Anonymous functions38.82%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected