84% enrol-chat

Code Review | enrol.chat

WordPress plugin enrol.chat scored84%from 54 tests.

About plugin

  • Plugin page: enrol-chat
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2021
  • Latest release: Nov 14, 2023
  • Number of updates: 10
  • Update frequency: every 78.8 days
  • Top authors: enrolchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /390 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by enrol.chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.79 ▲3.11
Dashboard /wp-admin3.31 ▼0.0444.47 ▼17.89
Posts /wp-admin/edit.php3.36 ▲0.0045.81 ▼5.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.97 ▼9.27
Media Library /wp-admin/upload.php3.23 ▲0.0031.06 ▼0.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for enrol.chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5814.72 ▲0.581.73 ▲0.1047.99 ▲4.39
Dashboard /wp-admin2,210 ▲295.63 ▼0.0884.53 ▼28.3882.43 ▲40.19
Posts /wp-admin/edit.php2,121 ▲181.94 ▲0.0138.36 ▲2.9333.45 ▼1.36
Add New Post /wp-admin/post-new.php1,555 ▲2922.89 ▼0.90751.35 ▲30.7955.43 ▼6.09
Media Library /wp-admin/upload.php1,418 ▲184.22 ▼0.0496.44 ▼1.5681.44 ▲40.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enrol-chat/enrol-chat.php:11

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #3, #4, #5, #6, #7, #8, #9 in enrol-chat/assets to your readme.txt
You can take inspiration from this readme.txt

enrol-chat/enrol-chat.php Passed 13 tests

This is the main PHP file of "enrol.chat" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Create the best conversational chatbot for your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12523118

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions3
▷ Named functions3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/ecbw_icon.png1.37KB0.58KB▼ 57.87%