Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▼1.29ms] Passed 4 tests
Server-side resources used by Sticky Chat Widget: Click to chat, SMS, Email, Messages, Call Button, Live Chat and Live Support Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 46.60 ▲3.90 |
Dashboard /wp-admin | 4.07 ▲0.72 | 53.52 ▼12.36 |
Posts /wp-admin/edit.php | 4.18 ▲0.83 | 58.75 ▲2.96 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 105.22 ▲0.36 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 47.34 ▲9.67 |
Go Pro /wp-admin/admin.php?page=sticky-chat-widget-upgrade-to-pro | 4.07 | 39.45 |
Form Leads /wp-admin/admin.php?page=sticky-chat-widget-leads | 4.10 | 41.19 |
Dashboard /wp-admin/admin.php?page=sticky-chat-widget | 4.01 | 43.81 |
Server storage [IO: ▲4.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 93 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_scw_contact_form_leads |
New WordPress options |
---|
is_scw_database_migrated |
widget_recent-posts |
scw_install_date |
sticky-chat-widget_review_date |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Sticky Chat Widget: Click to chat, SMS, Email, Messages, Call Button, Live Chat and Live Support Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.25 ▼0.48 | 1.79 ▲0.06 | 43.82 ▲1.68 |
Dashboard /wp-admin | 2,213 ▲36 | 5.55 ▼0.03 | 87.87 ▼4.55 | 79.97 ▲38.16 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.95 ▼0.09 | 38.32 ▲0.33 | 33.66 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,579 ▲52 | 18.57 ▼4.41 | 632.16 ▼74.41 | 158.58 ▲104.02 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.23 ▼0.01 | 100.81 ▼6.81 | 74.77 ▲30.80 |
Go Pro /wp-admin/admin.php?page=sticky-chat-widget-upgrade-to-pro | 1,415 | 2.03 | 26.37 | 84.36 |
Form Leads /wp-admin/admin.php?page=sticky-chat-widget-leads | 1,194 | 1.88 | 31.45 | 34.41 |
Dashboard /wp-admin/admin.php?page=sticky-chat-widget | 1,112 | 3.81 | 58.50 | 99.58 |
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
- Zombie tables were found after uninstall: 1 table
- wp_scw_contact_form_leads
- The uninstall procedure has failed, leaving 9 options in the database
- scw_install_date
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- sticky-chat-widget_review_date
- is_scw_database_migrated
- can_compress_scripts
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 25× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/sticky-chat-widget/admin/templates/triggers.php
- > /wp-content/plugins/sticky-chat-widget/admin/templates/subscribe.php
- > /wp-content/plugins/sticky-chat-widget/index.php
- > /wp-content/plugins/sticky-chat-widget/admin/templates/premium-features.php
- > /wp-content/plugins/sticky-chat-widget/admin/templates/admin-notice.php
- > /wp-content/plugins/sticky-chat-widget/admin/templates/admin-lists.php
- > /wp-content/plugins/sticky-chat-widget/admin/templates/social-channels.php
- > /wp-content/plugins/sticky-chat-widget/admin/templates/custom-css.php
- > /wp-content/plugins/sticky-chat-widget/admin/admin.php
- > /wp-content/plugins/sticky-chat-widget/includes/social-icons.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/sticky-chat-widget/templates/template.php:2
- > PHP Fatal error
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 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (31 tag instead of maximum 10)
sticky-chat-widget/index.php 92% from 13 tests
The main PHP file in "Sticky Chat Widget: Click to chat, SMS, Email, Messages, Call Button, Live Chat and Live Support Button" ver. 1.2.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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sticky-chat-widget.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin27,194 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 0 | 12 | 9,306 |
PHP | 27 | 569 | 623 | 7,249 |
CSS | 17 | 327 | 25 | 6,224 |
JavaScript | 14 | 345 | 211 | 4,405 |
HTML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 81.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 6.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 18 | 30.51% |
▷ Public methods | 59 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/scw-icon.png | 0.52KB | 0.53KB | 0.00% |
assets/admin/images/social-icons.png | 6.65KB | 2.92KB | ▼ 56.10% |
assets/admin/img/flags@2x.png | 52.48KB | 56.11KB | 0.00% |
assets/admin/img/flags.png | 19.57KB | 20.80KB | 0.00% |
assets/admin/images/payment-card-icons.png | 4.35KB | 4.46KB | 0.00% |