84% chatbot-inteliwise

Code Review | Chatbot InteliWISE

WordPress plugin Chatbot InteliWISE scored 84% from 54 tests.

About plugin

  • Plugin page: chatbot-inteliwise
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Mar 21, 2022
  • Latest release: Jul 18, 2022
  • Number of updates: 3
  • Update frequency: every 43.7 days
  • Top authors: inteliwise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 243 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Chatbot InteliWISE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.68 ▲0.65
Dashboard /wp-admin3.31 ▲0.0144.51 ▼6.76
Posts /wp-admin/edit.php3.36 ▲0.0149.46 ▲8.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.09 ▼15.61
Media Library /wp-admin/upload.php3.23 ▲0.0134.17 ▲0.85

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Chatbot InteliWISE
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10713.58 ▼0.824.23 ▲2.4740.93 ▼7.27
Dashboard /wp-admin2,223 ▲355.86 ▼0.02108.50 ▼4.3378.72 ▲31.58
Posts /wp-admin/edit.php2,109 ▲201.99 ▼0.1536.90 ▲2.2634.00 ▼1.56
Add New Post /wp-admin/post-new.php1,537 ▲423.20 ▼0.09756.53 ▲121.6860.35 ▼3.09
Media Library /wp-admin/upload.php1,408 ▲234.12 ▼0.1497.89 ▲0.5672.63 ▲29.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× 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/chatbot-inteliwise/inc/front-end.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot-inteliwise/inc/back-end.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: Please take inspiration from this readme.txt

chatbot-inteliwise/inteliwise-chat.php 92% from 13 tests

The main PHP script in "Chatbot InteliWISE" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("chatbot-inteliwise.php" instead of "inteliwise-chat.php")

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
Good job! No executable or dangerous file extensions detected136 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3218117
CSS13019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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%
Functions5
▷ Named functions5100.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
3 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/inteliwise_icon.png0.87KB0.82KB▼ 5.52%
img/inteliwise_logo.png50.12KB25.33KB▼ 49.47%
img/inteliwise_icon_2.png0.43KB0.63KB0.00%