10% wp-live-group-chat

Code Review | Live Group Chat

WordPress plugin Live Group Chat scored10%from 54 tests.

About plugin

  • Plugin page: wp-live-group-chat
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.4
  • WordPress version: 6.3.1
  • First release: May 3, 2017
  • Latest release: May 3, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: atulv55 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,206 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▼1.90MB] [CPU: ▼54.05ms] Passed 4 tests

Server-side resources used by Live Group Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.385.24 ▼39.90
Dashboard /wp-admin2.11 ▼1.206.23 ▼44.95
Posts /wp-admin/edit.php2.11 ▼1.256.31 ▼39.10
Add New Post /wp-admin/post-new.php2.11 ▼3.786.47 ▼92.24
Media Library /wp-admin/upload.php2.11 ▼1.126.14 ▼25.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: 2 new tables, 7 new options
New tables
wp_messages
wp_online_user
New WordPress options
widget_recent-comments
widget_recent-posts
widget_chat_widget
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Group Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18413.81 ▼0.567.91 ▲5.9241.03 ▼5.94
Dashboard /wp-admin2,208 ▲235.88 ▲0.00113.38 ▼7.5442.40 ▼0.95
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0443.52 ▲7.3537.64 ▲4.61
Add New Post /wp-admin/post-new.php1,518 ▼1523.46 ▲0.21637.65 ▼35.6252.11 ▼8.03
Media Library /wp-admin/upload.php1,390 ▲54.20 ▼0.04103.57 ▲1.1144.50 ▼2.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom_plugin_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_chat_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

wp-live-group-chat/index.php 92% from 13 tests

"Live Group Chat" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-live-group-chat.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin482 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44240299
CSS150107
JavaScript111076

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants2
▷ Global constants2100.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
5 PNG files occupy 0.29MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png31.86KB12.86KB▼ 59.62%
screenshot-1.png95.46KB41.99KB▼ 56.01%
screenshot-2.png81.71KB34.89KB▼ 57.30%
images/chat-icon.png0.52KB0.76KB0.00%
screenshot-4.png84.79KB35.51KB▼ 58.11%