Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.21MB] [CPU: ▼1.59ms] Passed 4 tests
Analyzing server-side resources used by Better Chat Support for Messenger
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 50.68 ▲11.57 |
Dashboard /wp-admin | 4.79 ▲1.49 | 56.00 ▲11.26 |
Posts /wp-admin/edit.php | 4.85 ▲1.49 | 59.67 ▲11.17 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 62.68 ▼40.35 |
Media Library /wp-admin/upload.php | 4.65 ▲1.43 | 51.64 ▲19.21 |
Server storage [IO: ▲3.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 163 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
mcs-opt |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Better Chat Support for Messenger: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,060 ▲298 | 15.68 ▲1.30 | 25.05 ▲23.42 | 91.67 ▲45.38 |
Dashboard /wp-admin | 2,244 ▲64 | 5.58 ▼0.04 | 96.30 ▲1.27 | 46.76 ▲5.82 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 2.15 ▲0.21 | 35.53 ▼8.39 | 31.00 ▼7.83 |
Add New Post /wp-admin/post-new.php | 1,708 ▲182 | 22.28 ▼0.88 | 667.62 ▲58.97 | 38.65 ▼35.94 |
Media Library /wp-admin/upload.php | 1,458 ▲64 | 4.27 ▲0.06 | 98.04 ▲0.78 | 47.24 ▲2.72 |
MCS settings /wp-admin/admin.php?page=mcs#tab=mcs-settings | 4,224 | 4.12 | 99.08 | 102.90 |
Backup /wp-admin/admin.php?page=mcs#tab=backup | 4,073 | 3.67 | 59.05 | 79.62 |
Buttons shortcodes /wp-admin/admin.php?page=mcs#tab=buttons-shortcodes | 4,078 | 3.63 | 57.96 | 80.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- mcs-opt
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/better-chat-support/inc/functions.php
- > /wp-content/plugins/better-chat-support/inc/class-enqueue.php
- > /wp-content/plugins/better-chat-support/messenger-chat-support.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/better-chat-support/view/shortcodes/custom-shortcode.php:11
- > PHP Warning
Use of undefined constant MCS_ALERT_MSG - assumed 'MCS_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/better-chat-support/inc/functions.php on line 11
- > PHP Warning
Use of undefined constant MCS_ALERT_MSG - assumed 'MCS_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/better-chat-support/inc/class-enqueue.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-chat-support/view/chat-bubbles/chat-bubbles.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Frontend chat bubble with form), #2 (Frontend chat bubble without form), #3 (Frontend buttons), #4 (Admin panel)
better-chat-support/messenger-chat-support.php 85% from 13 tests
The main PHP file in "Better Chat Support for Messenger" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("better-chat-support.php" instead of "messenger-chat-support.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected21,722 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 2,093 | 1,430 | 9,142 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
JavaScript | 5 | 86 | 139 | 2,873 |
Sass | 1 | 19 | 4 | 1,397 |
CSS | 6 | 80 | 19 | 1,335 |
Markdown | 1 | 58 | 0 | 281 |
JSON | 2 | 2 | 0 | 192 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 20.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 1 | 1.75% |
Methods | 246 | |
▷ Static methods | 30 | 12.20% |
▷ Public methods | 224 | 91.06% |
▷ Protected methods | 7 | 2.85% |
▷ Private methods | 15 | 6.10% |
Functions | 32 | |
▷ Named functions | 31 | 96.88% |
▷ Anonymous functions | 1 | 3.12% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/bubble-6.png | 4.04KB | 2.20KB | ▼ 45.43% |
admin/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/image/bubble-1.png | 1.46KB | 1.25KB | ▼ 14.89% |
assets/image/bubble-5.png | 7.33KB | 3.35KB | ▼ 54.28% |
assets/image/bubble-3.png | 6.14KB | 2.80KB | ▼ 54.46% |