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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.14ms] Passed 4 tests
A check of server-side resources used by Click To Chat Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.24 ▼2.56 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.97 ▼2.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.76 ▲3.03 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.34 ▼3.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.85 ▲0.49 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Click To Chat Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲171 | 14.91 ▲0.62 | 4.97 ▲3.16 | 42.45 ▲1.86 |
Dashboard /wp-admin | 2,223 ▲38 | 6.35 ▲0.45 | 112.78 ▲6.27 | 44.24 ▲3.76 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 3.09 ▲1.11 | 39.71 ▼3.04 | 35.37 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,544 ▲1 | 19.23 ▼3.58 | 628.68 ▼65.43 | 35.85 ▼18.79 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 5.57 ▲1.39 | 103.33 ▼3.34 | 42.81 ▼2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: messaging, chat, whatsapp, click to chat
click-to-chat-widget/hs-click-to-chat.php 85% from 13 tests
"Click To Chat Widget" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("click-to-chat-widget.php" instead of "hs-click-to-chat.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,377 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 208 | 558 | 1,592 |
JavaScript | 4 | 17 | 336 | 1,521 |
CSS | 3 | 308 | 8 | 1,264 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.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 | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
4 PNG files occupy 0.26MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
public/img/green-icon-with-name.png | 2.22KB | 2.29KB | 0.00% |
public/img/green-icon.png | 24.71KB | 9.48KB | ▼ 61.62% |
admin/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |