Benchmarks
Plugin footprint 83% 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.79MB] [CPU: ▲7.56ms] Passed 4 tests
Analyzing server-side resources used by Better Chat Support - Chat Bubble and Chat Button with Gutenberg, Elementor and Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.30 ▲1.83 | 50.79 ▲8.10 |
Dashboard /wp-admin | 5.10 ▲1.76 | 62.39 ▲3.40 |
Posts /wp-admin/edit.php | 5.16 ▲1.80 | 64.95 ▲13.26 |
Add New Post /wp-admin/post-new.php | 7.69 ▲1.81 | 99.86 ▲5.49 |
Media Library /wp-admin/upload.php | 5.03 ▲1.80 | 50.78 ▲22.27 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 145 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
whatshelp-opt |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Better Chat Support - Chat Bubble and Chat Button with Gutenberg, Elementor and Shortcode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲320 | 16.18 ▲1.45 | 25.25 ▲23.57 | 93.40 ▲50.01 |
Dashboard /wp-admin | 2,260 ▲83 | 5.53 ▼0.10 | 96.12 ▲0.97 | 91.40 ▲50.74 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 2.13 ▲0.12 | 39.60 ▼7.28 | 39.11 ▲2.64 |
Add New Post /wp-admin/post-new.php | 6,276 ▲4,750 | 19.57 ▼4.00 | 863.78 ▲250.09 | 37.78 ▼18.89 |
Media Library /wp-admin/upload.php | 1,480 ▲83 | 4.21 ▲0.05 | 98.19 ▼0.40 | 80.66 ▲38.01 |
Whatshelp settings /wp-admin/admin.php?page=whatshelp#tab=whatshelp-settings | 4,492 | 5.25 | 130.31 | 88.61 |
Buttons shortcodes /wp-admin/admin.php?page=whatshelp#tab=buttons-shortcodes | 4,345 | 5.40 | 66.19 | 91.05 |
Backup /wp-admin/admin.php?page=whatshelp#tab=backup | 4,326 | 5.38 | 72.44 | 96.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- whatshelp-opt
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/chat-help/inc/class-enqueue.php
- > /wp-content/plugins/chat-help/chat-whatsapp.php
- > /wp-content/plugins/chat-help/inc/functions.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WHATSHELP_ALERT_MSG - assumed 'WHATSHELP_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-help/inc/class-enqueue.php on line 11
- > PHP Warning
Use of undefined constant WHATSHELP_ALERT_MSG - assumed 'WHATSHELP_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-help/inc/functions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-help/view/chat-bubbles/chat-bubbles.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chat-help/view/shortcodes/custom-shortcode.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: click to whatsapp, floating whatsapp, whatsapp plugin, whatsapp support, whatsapp button...
chat-help/chat-whatsapp.php 85% from 13 tests
The primary PHP file in "Better Chat Support - Chat Bubble and Chat Button with Gutenberg, Elementor and Shortcode" version 1.3.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chat-help.php" instead of "chat-whatsapp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin31,048 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 2,829 | 1,590 | 10,619 |
Sass | 17 | 991 | 7 | 7,161 |
JavaScript | 8 | 1,317 | 523 | 6,791 |
CSS | 8 | 443 | 517 | 6,327 |
JSON | 1 | 2 | 0 | 148 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 24.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 2 | 2.99% |
▷ Concrete classes | 65 | 97.01% |
▷ Final classes | 1 | 1.54% |
Methods | 306 | |
▷ Static methods | 40 | 13.07% |
▷ Public methods | 284 | 92.81% |
▷ Protected methods | 7 | 2.29% |
▷ Private methods | 15 | 4.90% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/bubble-4.png | 8.27KB | 3.60KB | ▼ 56.43% |
assets/image/button-with-info.png | 14.12KB | 5.47KB | ▼ 61.27% |
assets/image/bubble-5.png | 8.28KB | 3.45KB | ▼ 58.30% |
assets/image/bubble-1.png | 1.64KB | 1.21KB | ▼ 26.16% |
assets/image/bubble-7.png | 5.58KB | 2.52KB | ▼ 54.91% |