Benchmarks
Plugin footprint 47% 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: ▲6.53MB] [CPU: ▲49.90ms] 75% from 4 tests
This is a short check of server-side resources used by Better Messages – Live Chat for WordPress, BuddyPress, PeepSo, Ultimate Member, BuddyBoss
Please have a look at the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 6.53MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.00 ▲6.54 | 103.56 ▲64.90 |
Dashboard /wp-admin | 9.82 ▲6.48 | 95.65 ▲34.26 |
Posts /wp-admin/edit.php | 9.94 ▲6.58 | 93.18 ▲47.33 |
Add New Post /wp-admin/post-new.php | 12.58 ▲6.69 | 150.32 ▲58.04 |
Media Library /wp-admin/upload.php | 9.75 ▲6.52 | 92.49 ▲59.95 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.99 | 81.11 |
Server storage [IO: ▲11.57MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 354 new files
Database: 10 new tables, 9 new options
New tables |
---|
wp_bm_threads |
wp_bm_message_messages |
wp_bm_message_meta |
wp_bm_guests |
wp_bm_thread_meta |
wp_bm_moderation |
wp_bm_user_roles_index |
wp_bm_message_recipients |
wp_bm_mentions |
wp_bm_user_index |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
fs_debug_mode |
can_compress_scripts |
fs_active_plugins |
widget_recent-posts |
fs_accounts |
Browser metrics Passed 4 tests
Better Messages – Live Chat for WordPress, BuddyPress, PeepSo, Ultimate Member, BuddyBoss: 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 / | 2,993 ▲257 | 20.45 ▲6.11 | 604.09 ▲602.39 | 28.43 ▼15.62 |
Dashboard /wp-admin | 2,233 ▲53 | 5.53 ▼0.10 | 87.50 ▼11.62 | 39.62 ▼5.14 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 2.08 ▲0.13 | 39.73 ▼2.76 | 34.98 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 22.52 ▼0.82 | 676.64 ▲2.02 | 51.47 ▼12.62 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.20 ▲0.03 | 100.63 ▲6.36 | 46.14 ▲5.37 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,103 | 1.65 | 27.36 | 30.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/bp-better-messages/vendor/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 10 tables
- wp_bm_threads
- wp_bm_user_index
- wp_bm_user_roles_index
- wp_bm_message_messages
- wp_bm_message_recipients
- wp_bm_moderation
- wp_bm_message_meta
- wp_bm_guests
- wp_bm_mentions
- wp_bm_thread_meta
- Zombie WordPress options detected upon uninstall: 9 options
- fs_debug_mode
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/bp-better-messages/vendor/random-name-generator/random-name-generator.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-better-messages/addons/uncanny/uncanny-automator-better-messages.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/bp-better-messages/vendor/randomizer/randomizer-start.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/bp-better-messages/vendor/php-jwt/php-jwt.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-better-messages/addons/automatorwp/automatorwp.php:15
- > PHP Fatal error
Uncaught Error: Class 'BetterMessages\\RandomNameGenerator\\AbstractGenerator' not found in wp-content/plugins/bp-better-messages/vendor/random-name-generator/All.php:9
- > PHP Fatal error
Trait 'Uncanny_Automator\\Recipe\\Integrations' not found in wp-content/plugins/bp-better-messages/addons/uncanny/better-messages/add-better-messages-integration.php on line 8
- > PHP Fatal error
Trait 'Uncanny_Automator\\Recipe\\Actions' not found in wp-content/plugins/bp-better-messages/addons/uncanny/better-messages/actions/automator-send-message-action.php on line 8
- > PHP Fatal error
Uncaught Error: Interface 'BetterMessages\\RandomNameGenerator\\Generator' not found in wp-content/plugins/bp-better-messages/vendor/random-name-generator/AbstractGenerator.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-better-messages/vendor/buddypress/functions.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6 in bp-better-messages/assets to your readme.txt
bp-better-messages/bp-better-messages.php 92% from 13 tests
Analyzing the main PHP file in "Better Messages – Live Chat for WordPress, BuddyPress, PeepSo, Ultimate Member, BuddyBoss" version 2.4.1
Please take the time to fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/languages*/")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin90,531 lines of code in 278 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 14,365 | 20,281 | 59,213 |
CSS | 30 | 2,552 | 172 | 20,166 |
Sass | 12 | 1,686 | 127 | 9,906 |
JavaScript | 12 | 107 | 94 | 1,172 |
SVG | 2 | 0 | 0 | 55 |
XML | 1 | 3 | 0 | 16 |
JSON | 3 | 0 | 0 | 3 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 165)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 55.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 165.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 134 | |
▷ Abstract classes | 4 | 2.99% |
▷ Concrete classes | 130 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 2,286 | |
▷ Static methods | 292 | 12.77% |
▷ Public methods | 1,854 | 81.10% |
▷ Protected methods | 29 | 1.27% |
▷ Private methods | 403 | 17.63% |
Functions | 232 | |
▷ Named functions | 183 | 78.88% |
▷ Anonymous functions | 49 | 21.12% |
Constants | 157 | |
▷ Global constants | 102 | 64.97% |
▷ Class constants | 55 | 35.03% |
▷ Public constants | 47 | 85.45% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/automatorwp/assets/icon.png | 10.45KB | 5.47KB | ▼ 47.64% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/icon.png | 10.45KB | 5.47KB | ▼ 47.64% |
vendor/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
addons/uncanny/better-messages/img/icon.png | 10.45KB | 5.47KB | ▼ 47.64% |