Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▲0.75ms] 75% from 4 tests
Server-side resources used by Click To Chat App
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 688.06ms on /wp-admin/admin.php?page=qlwapp_suggestions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.83 | 53.65 ▲8.73 |
Dashboard /wp-admin | 4.07 ▲0.72 | 56.82 ▼5.10 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 60.80 ▲11.61 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.71 | 90.10 ▼7.38 |
Media Library /wp-admin/upload.php | 3.95 ▲0.71 | 39.68 ▲6.73 |
Scheme /wp-admin/admin.php?page=qlwapp_scheme | 4.00 | 40.80 |
Settings /wp-admin/admin.php?page=qlwapp_settings | 3.97 | 44.17 |
Welcome /wp-admin/admin.php?page=qlwapp | 3.96 | 39.06 |
Premium /wp-admin/admin.php?page=qlwapp_premium | 3.96 | 43.63 |
Button /wp-admin/admin.php?page=qlwapp_button | 4.28 | 44.38 |
Display /wp-admin/admin.php?page=qlwapp_display | 4.02 | 42.29 |
Suggestions /wp-admin/admin.php?page=qlwapp_suggestions | 4.50 | 688.06 |
Contacts /wp-admin/admin.php?page=qlwapp_contacts | 4.34 | 52.08 |
Box /wp-admin/admin.php?page=qlwapp_box | 4.03 | 46.90 |
Server storage [IO: ▲0.86MB] [DB: ▲0.06MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Click To Chat App
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲229 | 14.69 ▲0.39 | 2.47 ▲0.84 | 38.06 ▼7.20 |
Dashboard /wp-admin | 2,356 ▲179 | 5.54 ▼0.12 | 96.19 ▼5.52 | 45.29 ▲0.46 |
Posts /wp-admin/edit.php | 2,160 ▲57 | 1.94 ▼0.02 | 39.19 ▼1.30 | 36.00 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 23.01 ▼0.38 | 633.87 ▲24.01 | 44.28 ▼7.08 |
Media Library /wp-admin/upload.php | 1,466 ▲66 | 4.18 ▲0.00 | 97.74 ▲2.95 | 41.21 ▼2.97 |
Scheme /wp-admin/admin.php?page=qlwapp_scheme | 2,181 | 3.40 | 93.61 | 40.73 |
Settings /wp-admin/admin.php?page=qlwapp_settings | 1,219 | 2.73 | 50.00 | 37.73 |
Welcome /wp-admin/admin.php?page=qlwapp | 1,018 | 2.27 | 32.58 | 45.01 |
Premium /wp-admin/admin.php?page=qlwapp_premium | 1,056 | 2.42 | 30.05 | 39.75 |
Button /wp-admin/admin.php?page=qlwapp_button | 4,011 | 2.31 | 33.66 | 43.26 |
Display /wp-admin/admin.php?page=qlwapp_display | 1,589 | 3.24 | 64.23 | 41.61 |
Suggestions /wp-admin/admin.php?page=qlwapp_suggestions | 2,029 | 2.55 | 38.53 | 66.89 |
Contacts /wp-admin/admin.php?page=qlwapp_contacts | 1,249 | 3.72 | 45.62 | 80.46 |
Box /wp-admin/admin.php?page=qlwapp_box | 2,194 | 8.95 | 192.32 | 86.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 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 were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-whatsapp-chat/wp-whatsapp-chat.php
- > /wp-content/plugins/wp-whatsapp-chat/uninstall.php
- 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/wp-whatsapp-chat/vendor/automattic/jetpack-composer-plugin/src/class-manager.php:18
- > PHP Warning
Use of undefined constant QLWAPP_PLUGIN_DIR - assumed 'QLWAPP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-whatsapp-chat/lib/view/backend/pages/modals/template-scripts.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\QLWAPP\\Models\\Base' not found in wp-content/plugins/wp-whatsapp-chat/lib/models/class-woocommerce.php:5
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\QLWAPP\\Controllers\\Base' not found in wp-content/plugins/wp-whatsapp-chat/lib/controllers/class-woocommerce.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-whatsapp-chat/lib/view/backend/pages/welcome.php:5
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/wp-whatsapp-chat/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlugV2.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/wp-whatsapp-chat/lib/view/backend/pages/contacts.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/wp-whatsapp-chat/vendor/automattic/jetpack-composer-plugin/src/class-plugin.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-whatsapp-chat/lib/view/backend/pages/modals/contact/panel-visibility.php:4
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\QLWAPP\\Models\\Base' not found in wp-content/plugins/wp-whatsapp-chat/lib/models/class-button.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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: Please reduce the number of tags, currently 17 tag instead of maximum 10
wp-whatsapp-chat/wp-whatsapp-chat.php Passed 13 tests
The primary PHP file in "Click To Chat App" version 7.1.9 is used by WordPress to initiate all plugin functionality
98 characters long description:
Social Chat allows your visitors to contact you or your team through WhatsApp with a single click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin7,238 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 94 | 936 | 1,769 | 5,609 |
Markdown | 11 | 262 | 0 | 724 |
JSON | 1 | 0 | 0 | 463 |
CSS | 3 | 66 | 0 | 354 |
JavaScript | 5 | 9 | 14 | 57 |
XML | 1 | 0 | 0 | 25 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 1 | 2.17% |
Methods | 271 | |
▷ Static methods | 63 | 23.25% |
▷ Public methods | 235 | 86.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 13.28% |
Functions | 24 | |
▷ Named functions | 7 | 29.17% |
▷ Anonymous functions | 17 | 70.83% |
Constants | 30 | |
▷ Global constants | 30 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backend/img/box1.png | 89.13KB | 23.93KB | ▼ 73.15% |
assets/backend/img/box2.png | 53.77KB | 14.44KB | ▼ 73.14% |
assets/backend/img/icon.png | 19.44KB | 3.27KB | ▼ 83.20% |