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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.98ms] Passed 4 tests
Analyzing server-side resources used by Chat Support for Viber – Chat Bubble and Chat Button for Gutenberg, Elementor and Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 36.88 ▼1.88 |
Dashboard /wp-admin | 3.65 ▲0.34 | 51.05 ▲3.16 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 51.10 ▲7.35 |
Add New Post /wp-admin/post-new.php | 5.16 ▼0.73 | 53.54 ▼43.40 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 36.58 ▲2.22 |
Server storage [IO: ▲4.46MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 204 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
vchat-opt |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Chat Support for Viber – Chat Bubble and Chat Button for Gutenberg, Elementor and Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,076 ▲329 | 15.83 ▲1.47 | 26.33 ▲24.57 | 89.99 ▲45.13 |
Dashboard /wp-admin | 2,254 ▲80 | 5.47 ▼0.18 | 91.96 ▼6.79 | 42.95 ▼1.25 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.15 ▲0.14 | 40.68 ▲3.74 | 36.05 ▼2.17 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,724 | 26.40 ▲3.28 | 826.52 ▲118.18 | 75.02 ▲13.39 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.16 ▼0.02 | 97.38 ▼4.92 | 46.25 ▼1.39 |
Availablity settings /wp-admin/admin.php?page=vchat#tab=availablity-settings | 4,600 | 4.44 | 101.78 | 60.50 |
General settings /wp-admin/admin.php?page=vchat#tab=general-settings | 4,237 | 3.85 | 63.35 | 90.25 |
Backup /wp-admin/admin.php?page=vchat#tab=backup | 4,185 | 3.40 | 54.54 | 85.19 |
Buttons shortcodes /wp-admin/admin.php?page=vchat#tab=buttons-shortcodes | 4,184 | 3.48 | 56.57 | 79.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- vchat-opt
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/chat-viber/inc/class-enqueue.php
- > /wp-content/plugins/chat-viber/inc/functions.php
- > /wp-content/plugins/chat-viber/chat-viber-lite.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant VCHAT_ALERT_MSG - assumed 'VCHAT_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-viber/inc/functions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chat-viber/view/shortcodes/custom-shortcode.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-viber/view/single-chat-bubble/single-chat-bubble.php:11
- > PHP Warning
Use of undefined constant VCHAT_ALERT_MSG - assumed 'VCHAT_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-viber/inc/class-enqueue.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
7 plugin tags: viber support, support, rakuten chat, viber chat, viber plugin...
chat-viber/chat-viber-lite.php 85% from 13 tests
The principal PHP file in "Chat Support for Viber – Chat Bubble and Chat Button for Gutenberg, Elementor and Shortcode" v. 1.6.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("chat-viber.php" instead of "chat-viber-lite.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin45,291 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 3,348 | 1,795 | 14,578 |
JavaScript | 9 | 1,389 | 641 | 9,450 |
Sass | 18 | 1,003 | 10 | 8,065 |
CSS | 9 | 451 | 528 | 6,552 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
JSON | 1 | 1 | 0 | 144 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 24.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 2 | 2.94% |
▷ Concrete classes | 66 | 97.06% |
▷ Final classes | 1 | 1.52% |
Methods | 317 | |
▷ Static methods | 44 | 13.88% |
▷ Public methods | 295 | 93.06% |
▷ Protected methods | 7 | 2.21% |
▷ Private methods | 15 | 4.73% |
Functions | 33 | |
▷ Named functions | 31 | 93.94% |
▷ Anonymous functions | 2 | 6.06% |
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.07MB 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-8.png | 6.63KB | 3.32KB | ▼ 49.93% |
assets/image/bubble-6.png | 5.64KB | 2.70KB | ▼ 52.16% |
assets/image/bubble-2.png | 6.58KB | 3.15KB | ▼ 52.05% |
assets/image/bubble-7.png | 5.40KB | 2.42KB | ▼ 55.24% |
assets/image/bubble-9.png | 6.34KB | 2.93KB | ▼ 53.82% |