72% minnit-chat

Code Review | Group chat for WordPress - Minnit Chat

WordPress plugin Group chat for WordPress - Minnit Chat scored72%from 54 tests.

About plugin

  • Plugin page: minnit-chat
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Aug 22, 2017
  • Latest release: Nov 24, 2023
  • Number of updates: 103
  • Update frequency: every 22.2 days
  • Top authors: minnitchat (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /24,582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.57MB] [CPU: ▼16.07ms] Passed 4 tests

A check of server-side resources used by Group chat for WordPress - Minnit Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.81 ▼2.28
Dashboard /wp-admin3.41 ▲0.1145.85 ▼3.45
Posts /wp-admin/edit.php3.52 ▲0.1742.46 ▼4.30
Add New Post /wp-admin/post-new.php3.29 ▼2.6032.02 ▼54.23
Media Library /wp-admin/upload.php3.33 ▲0.1134.04 ▲0.81
Minnit Chat /wp-admin/options-general.php?page=minnit-chat3.2829.82

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Group chat for WordPress - Minnit Chat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲10913.50 ▼1.226.50 ▲4.7247.36 ▲2.78
Dashboard /wp-admin2,221 ▲445.82 ▲0.1289.12 ▼18.7841.73 ▼5.76
Posts /wp-admin/edit.php2,125 ▲252.24 ▲0.2836.76 ▲0.3333.05 ▲0.79
Add New Post /wp-admin/post-new.php6,431 ▲4,90529.47 ▲6.22838.04 ▲173.2836.96 ▼27.06
Media Library /wp-admin/upload.php1,423 ▲234.45 ▲0.27100.79 ▲4.7040.34 ▼1.07
Minnit Chat /wp-admin/options-general.php?page=minnit-chat1,2332.5143.1129.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=minnit-chat
    • > Notice in wp-content/plugins/minnit-chat/minnitchat.php+413
    Trying to access array offset on value of type bool

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/minnit-chat/minnitchat.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/minnit-chat/sso_custom_generate_ssotoken.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/minnit-chat/sso_oauth2_authorize_template.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: sso chat, chatroom, chat, chat group, chatbox...

minnit-chat/minnitchat.php 85% from 13 tests

This is the main PHP file of "Group chat for WordPress - Minnit Chat" version 4.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("minnit-chat.php" instead of "minnitchat.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,430 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4431644
PHP36943640
CSS1240146

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants0
▷ Global constants00.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 images were found in this plugin