84% wp-user-chat

Code Review | WP User Chat

WordPress plugin WP User Chat scored 84% from 54 tests.

About plugin

  • Plugin page: wp-user-chat
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2016
  • Latest release: Dec 13, 2022
  • Number of updates: 33
  • Update frequency: every 74.2 days
  • Top authors: amitwpdeveloper (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.94ms] Passed 4 tests

A check of server-side resources used by WP User Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.72 ▼1.90
Dashboard /wp-admin3.34 ▲0.0444.99 ▼1.28
Posts /wp-admin/edit.php3.39 ▲0.0446.19 ▲0.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.87 ▼21.23
Media Library /wp-admin/upload.php3.26 ▲0.0434.43 ▲1.94

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables
wp_WPCHT_chat
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP User Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18913.98 ▼0.4111.49 ▲9.6949.03 ▲5.71
Dashboard /wp-admin2,221 ▲505.04 ▲0.12110.32 ▲6.1940.26 ▼11.27
Posts /wp-admin/edit.php2,101 ▲122.29 ▲0.2944.66 ▲6.8931.76 ▼4.22
Add New Post /wp-admin/post-new.php1,531 ▼1118.70 ▲0.56607.58 ▼10.0553.19 ▼23.37
Media Library /wp-admin/upload.php1,403 ▲184.35 ▲0.10101.56 ▼2.9841.56 ▼2.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-user-chat/wp-user-chat.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-user-chat/functions.php:83

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: internal chat system, live chat, chat, wp users chat, wp chat...

wp-user-chat/wp-user-chat.php Passed 13 tests

The entry point to "WP User Chat" version 1.0.7 is a PHP file that has certain tags in its header comment area
99 characters long description:
This plugin gives you freedom to chat with users each other. It supported many to many interaction.

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
There were no executable files found in this plugin1,041 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP61359472
JavaScript2860378
CSS2310191

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-6.png32.14KB15.39KB▼ 52.12%
images/right.png15.29KB7.37KB▼ 51.77%
images/default.png26.42KB8.33KB▼ 68.47%
assets/screenshot-3.png68.59KB27.77KB▼ 59.52%
assets/screenshot-4.png35.00KB15.82KB▼ 54.79%