78% botjuggler

Code Review | Chatbot & Social proof popup for website

WordPress plugin Chatbot & Social proof popup for website scored78%from 54 tests.

About plugin

  • Plugin page: botjuggler
  • Plugin version: 4.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 2, 2020
  • Latest release: Mar 3, 2020
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: botjuggler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 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.66MB] [CPU: ▼21.01ms] Passed 4 tests

Analyzing server-side resources used by Chatbot & Social proof popup for website
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.41 ▼7.80
Dashboard /wp-admin3.34 ▼0.0050.81 ▼17.91
Posts /wp-admin/edit.php3.39 ▲0.0448.38 ▼4.63
Add New Post /wp-admin/post-new.php3.17 ▼2.7136.50 ▼53.71
Media Library /wp-admin/upload.php3.26 ▲0.0446.56 ▲12.63

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Chatbot & Social proof popup for website
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9514.20 ▼0.062.04 ▲0.2940.34 ▼10.85
Dashboard /wp-admin2,214 ▲375.61 ▲0.0489.38 ▼2.8637.17 ▼0.90
Posts /wp-admin/edit.php2,113 ▲131.96 ▲0.0035.86 ▼1.9034.36 ▼6.92
Add New Post /wp-admin/post-new.php6,229 ▲4,70319.00 ▼4.11876.96 ▲224.9757.60 ▲1.13
Media Library /wp-admin/upload.php1,410 ▲104.23 ▲0.06114.97 ▲8.4242.34 ▼3.34

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 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • botjuggler-plugin-settings

Smoke tests 50% 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)
Even though no errors were found, 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/botjuggler/botjuggler.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/botjuggler/option.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/botjuggler/meta.php:6

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

botjuggler/botjuggler.php 92% from 13 tests

This is the main PHP file of "Chatbot & Social proof popup for website" version 4.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin148 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38422148

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.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