68% melibo-chatbot

Code Review | melibo Chatbot

WordPress plugin melibo Chatbot scored68%from 54 tests.

About plugin

  • Plugin page: melibo-chatbot
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 18, 2022
  • Latest release: May 11, 2022
  • Number of updates: 33
  • Update frequency: every 1.6 days
  • Top authors: melibo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,033 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.81MB] [CPU: ▼46.89ms] Passed 4 tests

A check of server-side resources used by melibo Chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.287.11 ▼33.02
Dashboard /wp-admin2.20 ▼1.1112.18 ▼34.84
Posts /wp-admin/edit.php2.20 ▼1.1610.39 ▼36.84
Add New Post /wp-admin/post-new.php2.20 ▼3.696.89 ▼82.85
Media Library /wp-admin/upload.php2.20 ▼1.036.90 ▼27.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for melibo Chatbot
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15915.17 ▲0.7825.48 ▲23.6740.43 ▼6.76
Dashboard /wp-admin2,277 ▲895.09 ▼0.81106.94 ▼6.3874.85 ▲23.58
Posts /wp-admin/edit.php2,143 ▲542.31 ▲0.1440.66 ▲5.4634.02 ▼0.48
Add New Post /wp-admin/post-new.php1,537 ▲2323.53 ▲5.86674.96 ▼14.6458.63 ▼3.99
Media Library /wp-admin/upload.php1,442 ▲544.35 ▲0.2096.05 ▼5.3340.03 ▼5.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the admin.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/melibo-chatbot/includes/notice.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/melibo-chatbot/admin/inc/notice.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/melibo-chatbot/melibo-chatbot.php:14
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/melibo-chatbot/admin/inc/notice.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

melibo-chatbot/melibo-chatbot.php Passed 13 tests

The principal PHP file in "melibo Chatbot" v. 1.4.3 is loaded by WordPress automatically on each request
50 characters long description:
add your melibo chatbot to your WordPress for free

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,039 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP911418653
PO File17476246
CSS3210113
JavaScript10227

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity9.40
▷ Minimum class complexity3.00
▷ Maximum class complexity14.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods45
▷ Static methods1022.22%
▷ Public methods3168.89%
▷ Protected methods00.00%
▷ Private methods1431.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.54MB with 1.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/inc/img/academy_knowledge.png175.28KB62.74KB▼ 64.21%
admin/inc/img/first_steps_5.png297.31KB108.37KB▼ 63.55%
admin/inc/img/logo_transparent128x128.png22.67KB3.52KB▼ 84.46%
admin/inc/img/first_steps_3.png46.20KB17.06KB▼ 63.08%
admin/inc/img/first_steps_6.png270.89KB95.81KB▼ 64.63%