84% userbot-chat

Code Review | Userbot Chat

WordPress plugin Userbot Chat scored84%from 54 tests.

About plugin

  • Plugin page: userbot-chat
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2020
  • Latest release: Oct 20, 2020
  • Number of updates: 10
  • Update frequency: every 23.5 days
  • Top authors: userbot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.77ms] Passed 4 tests

Analyzing server-side resources used by Userbot Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.75 ▼3.86
Dashboard /wp-admin3.33 ▼0.0146.30 ▼16.07
Posts /wp-admin/edit.php3.38 ▲0.0346.40 ▼8.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.44 ▲5.08
Media Library /wp-admin/upload.php3.25 ▲0.0336.50 ▲0.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Userbot Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.29 ▼1.082.59 ▲0.9128.43 ▼16.19
Dashboard /wp-admin2,213 ▲225.88 ▼0.02103.78 ▼15.6172.86 ▲26.61
Posts /wp-admin/edit.php2,111 ▲192.01 ▼0.0138.57 ▼1.6940.99 ▲4.90
Add New Post /wp-admin/post-new.php1,540 ▲2118.47 ▼4.34675.42 ▼6.9574.04 ▲20.46
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.0598.16 ▼13.1683.30 ▲35.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/userbot-chat/userbot-chat.php:205

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: ai, help desk, chat plugin, chat, customer support...

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

The main file in "Userbot Chat" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
This is the official Userbot plugin for Wordpress CMS.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin218 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP21052154
CSS20651
JavaScript21113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/assets/favicon-32.png1.41KB1.44KB0.00%
src/assets/userbot-horizontal-color@4x.png20.17KB7.78KB▼ 61.43%