84% microchat

Code Review | MicroChat - Live Chat, Chatbots

WordPress plugin MicroChat - Live Chat, Chatbots scored 84% from 54 tests.

About plugin

  • Plugin page: microchat
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 14, 2021
  • Latest release: Sep 17, 2021
  • Number of updates: 6
  • Update frequency: every 46.5 days
  • Top authors: microchat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.86ms] Passed 4 tests

A check of server-side resources used by MicroChat - Live Chat, Chatbots
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.71 ▲2.11
Dashboard /wp-admin3.34 ▲0.0448.77 ▲1.32
Posts /wp-admin/edit.php3.39 ▲0.0346.88 ▼6.55
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.69 ▲4.75
Media Library /wp-admin/upload.php3.26 ▲0.0335.72 ▼0.34
MicroChat /wp-admin/options-general.php?page=microchat-setting-admin3.2331.51

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

MicroChat - Live Chat, Chatbots: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.14 ▼1.511.85 ▲0.2245.27 ▼1.10
Dashboard /wp-admin2,210 ▲244.87 ▼0.04101.61 ▼7.9942.48 ▼1.82
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0334.59 ▼5.6131.06 ▼4.07
Add New Post /wp-admin/post-new.php1,536 ▲1323.43 ▲0.06604.24 ▼62.4554.91 ▼1.83
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0898.31 ▼10.2243.88 ▼2.04
MicroChat /wp-admin/options-general.php?page=microchat-setting-admin9702.0522.1428.22

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/microchat/microchat.php:255

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 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
5 plugin tags: chatbot, chat widget, lead generation, chat bot, bot

microchat/microchat.php Passed 13 tests

This is the main PHP file of "MicroChat - Live Chat, Chatbots" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
129 characters long description:
Microchat is the free WordPress live chat plugin. Microchat will help you have streamlined and easy communication with customers.

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
Success! There were no dangerous files found in this plugin214 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12126214

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin