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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 48.90 ▲5.92 |
Dashboard /wp-admin | 3.41 ▲0.11 | 50.78 ▼5.19 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.19 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 93.20 ▼7.12 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.26 ▼0.09 | 2.01 ▼0.11 | 42.86 ▼1.81 |
Dashboard /wp-admin | 2,256 ▲79 | 5.57 ▼0.09 | 91.71 ▼8.48 | 42.11 ▼3.07 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.01 ▲0.02 | 37.82 ▲0.69 | 35.09 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,554 ▲23 | 23.22 ▲0.37 | 689.17 ▲44.76 | 58.91 ▼16.81 |
Media Library /wp-admin/upload.php | 1,461 ▲58 | 4.40 ▲0.22 | 97.84 ▼4.64 | 45.70 ▲1.08 |
All Members /wp-admin/admin.php?page=ninjalivechat#/members | 1,649 | 6.85 | 158.09 | 59.42 |
Settings /wp-admin/admin.php?page=ninjalivechat#/settings | 1,398 | 6.05 | 129.18 | 44.22 |
Support /wp-admin/admin.php?page=ninjalivechat#/support | 1,321 | 6.11 | 67.02 | 35.02 |
Design Chat /wp-admin/admin.php?page=ninjalivechat#/ | 2,273 | 8.11 | 78.55 | 78.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 121 | 94 | 964 |
CSS | 2 | 7 | 0 | 41 |
JSON | 1 | 0 | 0 | 11 |
JavaScript | 7 | 0 | 1 | 7 |
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 code | 0.22 |
Average class complexity | 5.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 6 | 11.32% |
▷ Public methods | 49 | 92.45% |
▷ Protected methods | 3 | 5.66% |
▷ Private methods | 1 | 1.89% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/support/support.png | 39.68KB | 1.73KB | ▼ 95.64% |
public/images/chat/placeholder.png | 25.29KB | 25.91KB | 0.00% |
public/images/support/heart.png | 41.02KB | 2.17KB | ▼ 94.70% |
public/images/chat/profile02.png | 50.99KB | 17.15KB | ▼ 66.36% |
public/images/chat/profile03.png | 40.06KB | 13.79KB | ▼ 65.56% |