84% ideta-livechat-chatbot

Code Review | Ideta Livechat & Chatbot

WordPress plugin Ideta Livechat & Chatbot scored84%from 54 tests.

About plugin

  • Plugin page: ideta-livechat-ch...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.9
  • WordPress version: 6.3.1
  • First release: May 31, 2021
  • Latest release: Jan 31, 2022
  • Number of updates: 5
  • Update frequency: every 49.6 days
  • Top authors: ideta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /474 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.04MB] [CPU: ▼10.59ms] Passed 4 tests

This is a short check of server-side resources used by Ideta Livechat & Chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.29 ▼2.25
Dashboard /wp-admin3.36 ▲0.0149.72 ▼8.88
Posts /wp-admin/edit.php3.47 ▲0.1146.43 ▼1.71
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.88 ▼29.52
Media Library /wp-admin/upload.php3.28 ▲0.0536.68 ▲3.59

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

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

Browser metrics Passed 4 tests

Ideta Livechat & Chatbot: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.41 ▲0.071.76 ▲0.1337.68 ▼2.65
Dashboard /wp-admin2,209 ▲295.65 ▲0.0181.40 ▼3.4982.98 ▲38.50
Posts /wp-admin/edit.php2,111 ▲111.99 ▼0.0234.02 ▼8.3429.57 ▼6.76
Add New Post /wp-admin/post-new.php1,550 ▲2423.32 ▼0.05735.15 ▲71.4757.24 ▲8.31
Media Library /wp-admin/upload.php1,414 ▲144.22 ▲0.0494.88 ▼14.7672.20 ▲27.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/page.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/functional.php
    • > /wp-content/plugins/ideta-livechat-chatbot/ideta-livechat-chatbot.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/tabs/usage.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/enqueue.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/messages.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/core.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/inline-js.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/tabs/settings.php
    • > /wp-content/plugins/ideta-livechat-chatbot/inc/php/controls.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: chatbot, ideta, livechat

ideta-livechat-chatbot/ideta-livechat-chatbot.php Passed 13 tests

The primary PHP file in "Ideta Livechat & Chatbot" version 1.0.2 is used by WordPress to initiate all plugin functionality
89 characters long description:
This plugin allows you to insert your Ideta Livechat or Chatbot in your Wordpress website

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
There were no executable files found in this plugin28,576 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript182,3791,57014,630
CSS41,7891079,937
SVG1002,671
HTML101371925
PHP11799366
JSON10047

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/logo.png12.20KB2.15KB▼ 82.39%
inc/img/ideta_icon.png0.93KB0.78KB▼ 16.13%