72% joonbot

Code Review | Chatbot to boost conversions by Joonbot

WordPress plugin Chatbot to boost conversions by Joonbot scored72%from 54 tests.

About plugin

  • Plugin page: joonbot
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Aug 6, 2021
  • Number of updates: 8
  • Update frequency: every 14.1 days
  • Top authors: nicolasgo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /745 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Chatbot to boost conversions by Joonbot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.33 ▲1.29
Dashboard /wp-admin3.32 ▼0.0253.35 ▼16.04
Posts /wp-admin/edit.php3.38 ▲0.0247.14 ▼0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.28 ▼16.76
Media Library /wp-admin/upload.php3.25 ▲0.0237.42 ▲1.36

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

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

Browser metrics Passed 4 tests

Chatbot to boost conversions by Joonbot: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.24 ▼0.131.88 ▲0.1940.86 ▼2.50
Dashboard /wp-admin2,209 ▲295.63 ▼0.0284.07 ▼10.1441.47 ▼1.21
Posts /wp-admin/edit.php2,114 ▲141.98 ▲0.0433.87 ▼1.3739.20 ▲4.26
Add New Post /wp-admin/post-new.php1,533 ▼222.95 ▲4.68646.27 ▲4.5660.60 ▼6.84
Media Library /wp-admin/upload.php1,417 ▲174.21 ▲0.05105.63 ▼1.8846.45 ▲3.75
Joonbot /wp-admin/menus.php260.420.0713.93

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/joonbot/joonbot.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joonbot/includes/core.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joonbot/includes/embed.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joonbot/includes/menus.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/menus.php
    • > Network (severe)
    wp-admin/menus.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (No code and intuitive chatbot builder), #2 (Start from a template), #3 (Personalize your design to your brand), #4 (Build complex scenarios), #5 (Powerful targeting), #6 (Integrate with your favourite apps), #7 (Analyze results and iterate on your bot scenario), #8 (Joonbot for product recommendation), #9 (Calendly integration)
You can look at the official readme.txt

joonbot/joonbot.php Passed 13 tests

The main PHP script in "Chatbot to boost conversions by Joonbot" version 2.1.0 is automatically included on every request by WordPress
56 characters long description:
Chatbots for lead generation, sales and data collection.

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 plugin143 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53125143

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 1.17MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png111.85KB31.12KB▼ 72.17%
screenshot-2.png509.47KB116.80KB▼ 77.07%
screenshot-7.png53.13KB14.32KB▼ 73.04%
screenshot-5.png63.25KB16.63KB▼ 73.71%
assets/icon-128x128.png2.08KB1.07KB▼ 48.54%