Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.49ms] Passed 4 tests
An overview of server-side resources used by EngageBay Live Chat - Best live chat plugin for WordPress sites
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.43 ▲1.01 |
Dashboard /wp-admin | 3.41 ▲0.10 | 46.31 ▼6.51 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.54 ▲6.28 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 95.67 ▼3.30 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.08 ▲2.85 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 211 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
EngageBay Live Chat - Best live chat plugin for WordPress sites: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,240 ▲505 | 13.23 ▼1.15 | 1.52 ▼0.11 | 33.61 ▼12.21 |
Dashboard /wp-admin | 2,643 ▲452 | 4.91 ▼0.91 | 105.81 ▲1.84 | 89.01 ▲40.36 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.05 ▲0.04 | 38.65 ▲1.90 | 34.76 ▲4.09 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.16 ▼0.31 | 677.07 ▲4.42 | 55.59 ▲0.84 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.12 ▼0.04 | 97.52 ▼0.81 | 72.09 ▲26.49 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/engagebay-livechat/index.php
- 58× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/engagebay-livechat/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Warning
require_once(lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/engagebay-livechat/vendor/paragonie/random_compat/psalm-autoload.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'League\\OAuth2\\Client\\Token\\AccessTokenInterface' not found in wp-content/plugins/engagebay-livechat/vendor/league/oauth2-client/src/Token/ResourceOwnerAccessTokenInterface.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/engagebay-livechat/vendor/guzzlehttp/psr7/src/Request.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/engagebay-livechat/vendor/guzzlehttp/promises/src/Coroutine.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/engagebay-livechat/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/engagebay-livechat/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/engagebay-livechat/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/engagebay-livechat/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Grant\\AbstractGrant' not found in wp-content/plugins/engagebay-livechat/vendor/league/oauth2-client/src/Grant/AuthorizationCode.php:22
- > PHP Fatal error
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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
engagebay-livechat/index.php 85% from 13 tests
The principal PHP file in "EngageBay Live Chat - Best live chat plugin for WordPress sites" v. 1.1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("engagebay-livechat.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)
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 plugin19,562 lines of code in 187 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 2,323 | 6,402 | 13,410 |
Markdown | 18 | 1,295 | 0 | 3,775 |
JSON | 12 | 1 | 0 | 981 |
CSS | 2 | 39 | 5 | 650 |
SVG | 15 | 2 | 13 | 635 |
JavaScript | 3 | 17 | 2 | 70 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 19 | |
Traits | 9 | |
Classes | 83 | |
▷ Abstract classes | 2 | 2.41% |
▷ Concrete classes | 81 | 97.59% |
▷ Final classes | 13 | 16.05% |
Methods | 827 | |
▷ Static methods | 127 | 15.36% |
▷ Public methods | 638 | 77.15% |
▷ Protected methods | 58 | 7.01% |
▷ Private methods | 131 | 15.84% |
Functions | 213 | |
▷ Named functions | 124 | 58.22% |
▷ Anonymous functions | 89 | 41.78% |
Constants | 105 | |
▷ Global constants | 44 | 41.90% |
▷ Class constants | 61 | 58.10% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/engagebay.png | 13.12KB | 4.67KB | ▼ 64.38% |
images/preview.png | 0.84KB | 0.59KB | ▼ 29.84% |
images/refresh-icon.png | 4.46KB | 2.66KB | ▼ 40.53% |
images/edit.png | 0.42KB | 0.29KB | ▼ 31.24% |
images/preview-n.png | 2.21KB | 1.84KB | ▼ 17.02% |