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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▼0.19ms] Passed 4 tests
Analyzing server-side resources used by Click to Chat - HoliThemes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 48.28 ▲6.49 |
Dashboard /wp-admin | 4.11 ▲0.81 | 50.28 ▲1.06 |
Posts /wp-admin/edit.php | 4.16 ▲0.81 | 56.95 ▲14.74 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.75 | 86.78 ▼15.41 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 44.91 ▲7.10 |
Greetings /wp-admin/admin.php?page=click-to-chat-greetings | 4.22 | 71.21 |
Click to Chat /wp-admin/admin.php?page=click-to-chat | 4.07 | 39.57 |
Customize /wp-admin/admin.php?page=click-to-chat-customize-styles | 3.96 | 41.87 |
Other Settings /wp-admin/admin.php?page=click-to-chat-other-settings | 3.96 | 39.13 |
Server storage [IO: ▲1.91MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 192 new files
Database: no new tables, 25 new options
New WordPress options |
---|
ht_ctc_s7_1 |
ht_ctc_s7 |
ht_ctc_share |
widget_recent-comments |
ht_ctc_s3_1 |
ht_ctc_greetings_options |
theysaidso_admin_options |
widget_recent-posts |
ht_ctc_one_time |
ht_ctc_s3 |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Click to Chat - HoliThemes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,118 ▲357 | 13.58 ▼0.77 | 21.58 ▲19.85 | 39.45 ▼9.09 |
Dashboard /wp-admin | 2,272 ▲95 | 5.59 ▼0.04 | 82.89 ▼16.72 | 42.58 ▼1.38 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 2.02 ▲0.03 | 40.08 ▼0.27 | 40.25 ▲5.61 |
Add New Post /wp-admin/post-new.php | 6,357 ▲4,831 | 25.95 ▲3.22 | 903.60 ▲209.58 | 60.25 ▲4.99 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.22 ▲0.01 | 100.22 ▼14.32 | 45.75 ▼1.86 |
Greetings /wp-admin/admin.php?page=click-to-chat-greetings | 3,011 | 9.43 | 281.73 | 42.14 |
Click to Chat /wp-admin/admin.php?page=click-to-chat | 5,209 | 4.22 | 75.50 | 52.27 |
Customize /wp-admin/admin.php?page=click-to-chat-customize-styles | 1,393 | 3.07 | 56.84 | 30.43 |
Other Settings /wp-admin/admin.php?page=click-to-chat-other-settings | 2,591 | 2.95 | 72.01 | 40.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 25 options
- ht_ctc_woo_options
- ht_ctc_s5
- ht_ctc_s3_1
- widget_theysaidso_widget
- ht_ctc_s1
- ht_ctc_s8
- ht_ctc_share
- ht_ctc_s7_1
- ht_ctc_group
- ht_ctc_chat_options
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/click-to-chat-for-whatsapp/new/admin/components/editor.php
- > /wp-content/plugins/click-to-chat-for-whatsapp/new/admin/components/editor_lite.php
- > /wp-content/plugins/click-to-chat-for-whatsapp/click-to-chat.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/click-to-chat-for-whatsapp/new/inc/commons/position-to-place.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #10, #11, #12, #13, #14, #15, #16, #17, #18, #2, #3, #4, #5, #6, #7, #8, #9 in click-to-chat-for-whatsapp/assets to your readme.txt
click-to-chat-for-whatsapp/click-to-chat.php 92% from 13 tests
The primary PHP file in "Click to Chat - HoliThemes" version 3.30.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("click-to-chat-for-whatsapp.php" instead of "click-to-chat.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected17,935 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 4,122 | 2,919 | 12,694 |
JavaScript | 22 | 706 | 796 | 3,861 |
CSS | 13 | 86 | 28 | 1,330 |
SVG | 4 | 0 | 0 | 50 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 28.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 5.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 49 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 301 | |
▷ Static methods | 16 | 5.32% |
▷ Public methods | 293 | 97.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 2.66% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
new/admin/admin_assets/intl/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
new/inc/assets/img/wa_bg.png | 21.42KB | 23.86KB | 0.00% |
new/inc/assets/img/whatsapp-logo-32x32.png | 1.12KB | 1.13KB | 0.00% |
new/admin/admin_assets/intl/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |