Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.17MB] [CPU: ▼50.73ms] Passed 4 tests
An overview of server-side resources used by Quick chat - BetterHalf Social Chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.65 | 16.93 ▼27.80 |
Dashboard /wp-admin | 2.86 ▼0.49 | 17.77 ▼51.54 |
Posts /wp-admin/edit.php | 2.86 ▼0.50 | 20.40 ▼29.22 |
Add New Post /wp-admin/post-new.php | 2.86 ▼3.03 | 18.96 ▼94.35 |
Media Library /wp-admin/upload.php | 2.86 ▼0.37 | 19.39 ▼18.92 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Quick chat - BetterHalf Social Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 13.50 ▼1.15 | 7.54 ▲5.65 | 41.01 ▼2.28 |
Dashboard /wp-admin | 2,218 ▲38 | 5.67 ▲0.00 | 90.29 ▲1.50 | 42.91 ▲2.74 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.02 ▼0.01 | 39.89 ▲5.07 | 38.14 ▲2.41 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 18.34 ▼4.69 | 645.84 ▼10.80 | 67.24 ▲0.96 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.27 ▲0.03 | 96.05 ▼11.04 | 44.31 ▼2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/quick-chat-betterhalf-social-chat/includes/bin/bin.php+19
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/quick-chat-betterhalf-social-chat/public/partials/quick-chat-public-display.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/quick-chat-betterhalf-social-chat/includes/woocommerce/init.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-chat-betterhalf-social-chat/includes/bin/bin.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quick-chat-betterhalf-social-chat/admin/partials/template/style.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/quick-chat-betterhalf-social-chat/admin/partials/quick-chat-admin-display.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quick-chat-betterhalf-social-chat/admin/partials/template/registered.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: whatsapp, whatsapp business, whatsapp chat, marketinglive, whatsapp support...
quick-chat-betterhalf-social-chat/quick-chat.php 85% from 13 tests
"Quick chat - BetterHalf Social Chat" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quick-chat-betterhalf-social-chat.php" instead of "quick-chat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected537 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 146 | 631 | 397 |
CSS | 3 | 37 | 20 | 125 |
JavaScript | 2 | 5 | 27 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/whatsapp.png | 7.64KB | 3.68KB | ▼ 51.92% |