68% ninja-live-chat

Code Review | Ninja Live Chat | Fastest live chat Builder(With Elementor Supported)

WordPress plugin Ninja Live Chat | Fastest live chat Builder(With Elementor Supported) scored68%from 54 tests.

About plugin

  • Plugin page: ninja-live-chat
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7.1
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: Jul 2, 2021
  • Number of updates: 3
  • Update frequency: every 14.3 days
  • Top authors: lovelightplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /414 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.59ms] Passed 4 tests

This is a short check of server-side resources used by Ninja Live Chat | Fastest live chat Builder(With Elementor Supported)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.90 ▲5.92
Dashboard /wp-admin3.41 ▲0.1150.78 ▼5.19
Posts /wp-admin/edit.php3.52 ▲0.1751.19 ▼0.10
Add New Post /wp-admin/post-new.php5.99 ▲0.1193.20 ▼7.12
Media Library /wp-admin/upload.php3.33 ▲0.1038.97 ▲2.04

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: 1 new table, 6 new options
New tables
wp_ninja_chats
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ninja Live Chat | Fastest live chat Builder(With Elementor Supported)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.26 ▼0.092.01 ▼0.1142.86 ▼1.81
Dashboard /wp-admin2,256 ▲795.57 ▼0.0991.71 ▼8.4842.11 ▼3.07
Posts /wp-admin/edit.php2,162 ▲622.01 ▲0.0237.82 ▲0.6935.09 ▼4.15
Add New Post /wp-admin/post-new.php1,554 ▲2323.22 ▲0.37689.17 ▲44.7658.91 ▼16.81
Media Library /wp-admin/upload.php1,461 ▲584.40 ▲0.2297.84 ▼4.6445.70 ▲1.08
All Members /wp-admin/admin.php?page=ninjalivechat#/members1,6496.85158.0959.42
Settings /wp-admin/admin.php?page=ninjalivechat#/settings1,3986.05129.1844.22
Support /wp-admin/admin.php?page=ninjalivechat#/support1,3216.1167.0235.02
Design Chat /wp-admin/admin.php?page=ninjalivechat#/2,2738.1178.5578.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_ninja_chats
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ninja-live-chat/app/Views/Admin/AdminView.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ninja-live-chat/app/Views/Frontend/LiveChat.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: live chat builder, live, chat, elementor live chat, live chat...

ninja-live-chat/ninja-live-chat.php 92% from 13 tests

The entry point to "Ninja Live Chat | Fastest live chat Builder(With Elementor Supported)" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,023 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP1412194964
CSS27041
JSON10011
JavaScript7017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.60
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods53
▷ Static methods611.32%
▷ Public methods4992.45%
▷ Protected methods35.66%
▷ Private methods11.89%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants6
▷ Global constants6100.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
8 PNG files occupy 0.44MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/support/support.png39.68KB1.73KB▼ 95.64%
public/images/chat/placeholder.png25.29KB25.91KB0.00%
public/images/support/heart.png41.02KB2.17KB▼ 94.70%
public/images/chat/profile02.png50.99KB17.15KB▼ 66.36%
public/images/chat/profile03.png40.06KB13.79KB▼ 65.56%