78% the-real-time-chat

Code Review | The Real Time Chat

WordPress plugin The Real Time Chat scored78%from 54 tests.

About plugin

  • Plugin page: the-real-time-chat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 23, 2018
  • Latest release: Apr 30, 2018
  • Number of updates: 16
  • Update frequency: every 4.1 days
  • Top authors: heofizzy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 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
Installer ran successfully

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

This is a short check of server-side resources used by The Real Time Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0148.18 ▼0.43
Dashboard /wp-admin3.33 ▼0.0253.95 ▼9.92
Posts /wp-admin/edit.php3.38 ▲0.0250.37 ▲3.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.32 ▼1.97
Media Library /wp-admin/upload.php3.25 ▲0.0238.87 ▲3.59
The Real Time Chat /wp-admin/options-general.php?page=the-real-time-chat/therealtimechat-menu.php3.2132.82

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

The Real Time Chat: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.37 ▲0.021.94 ▼0.1343.71 ▼5.38
Dashboard /wp-admin2,187 ▲75.56 ▼0.1188.33 ▼12.4742.98 ▼2.04
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.1634.85 ▼3.6234.43 ▼1.56
Add New Post /wp-admin/post-new.php1,531 ▲323.39 ▲0.12689.02 ▲13.6148.33 ▼8.09
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.0598.53 ▼0.4242.80 ▼2.38
The Real Time Chat /wp-admin/options-general.php?page=the-real-time-chat/therealtimechat-menu.php8321.9922.6439.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/the-real-time-chat/therealtimechat.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/the-real-time-chat/therealtimechat-menu.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

the-real-time-chat/therealtimechat.php 92% from 13 tests

The entry point to "The Real Time Chat" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("the-real-time-chat.php" instead of "therealtimechat.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
No dangerous file extensions were detected91 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3381391

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected