Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.77ms] Passed 4 tests
This is a short check of server-side resources used by Click to Chat App - Support All-in-One Floating Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 47.90 ▲5.72 |
Dashboard /wp-admin | 3.48 ▲0.17 | 45.45 ▼8.29 |
Posts /wp-admin/edit.php | 3.60 ▲0.23 | 48.06 ▲0.56 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.60 ▼1.07 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 41.46 ▲8.25 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wpsaio_button_image |
wpsaio_enable_plugin |
widget_theysaidso_widget |
wpsaio_widget_position |
wpsaio_style |
can_compress_scripts |
wpsaio_tooltip |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Click to Chat App - Support All-in-One Floating Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,030 ▲268 | 13.81 ▼0.90 | 9.66 ▲7.92 | 36.75 ▼9.74 |
Dashboard /wp-admin | 2,238 ▲58 | 5.55 ▼0.12 | 94.96 ▼1.38 | 87.94 ▲39.33 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 1.99 ▲0.01 | 38.63 ▼3.50 | 34.39 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,721 ▲195 | 22.32 ▼0.76 | 682.06 ▲53.99 | 55.10 ▼10.61 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.16 ▼0.02 | 110.83 ▲14.27 | 79.72 ▲38.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WpSaioInit::deactivate() should not be called statically
- This plugin does not fully uninstall, leaving 11 options in the database
- theysaidso_admin_options
- wpsaio_enable_plugin
- wpsaio_widget_position
- wpsaio_button_image
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- wpsaio_tooltip
- wpsaio_style
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/support-chat/views/admin/app/remove-input-btn.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/support-chat/views/admin/settings.php:15
- > PHP Fatal error
Uncaught Error: Class 'WpSaioMobileDetect' not found in wp-content/plugins/support-chat/views/home/main.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpSaioMobileDetect' not found in wp-content/plugins/support-chat/views/home/button.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/support-chat/wp-support-all-in-one.php:11
- > PHP Warning
Use of undefined constant WP_SAIO_URL - assumed 'WP_SAIO_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/support-chat/views/admin/app/remove-input-btn.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/support-chat/views/admin/design-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/support-chat/views/admin/app/add-input.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/support-chat/views/admin/display-settings.php:3
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Available apps in floating button) image not found
support-chat/wp-support-all-in-one.php 92% from 13 tests
The primary PHP file in "Click to Chat App - Support All-in-One Floating Widget" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("support-chat.php" instead of "wp-support-all-in-one.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
Success! There were no dangerous files found in this plugin3,462 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 264 | 704 | 2,119 |
JavaScript | 4 | 51 | 34 | 629 |
SVG | 12 | 21 | 7 | 315 |
PO File | 2 | 74 | 82 | 199 |
CSS | 5 | 0 | 1 | 178 |
Markdown | 1 | 5 | 0 | 12 |
HTML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 85 | |
▷ Static methods | 26 | 30.59% |
▷ Public methods | 80 | 94.12% |
▷ Protected methods | 3 | 3.53% |
▷ Private methods | 2 | 2.35% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/home/images/close-button-black.png | 1.14KB | 0.23KB | ▼ 80.10% |
assets/home/images/close-button.png | 1.15KB | 0.23KB | ▼ 80.22% |