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.01MB] [CPU: ▼3.33ms] Passed 4 tests
Server-side resources used by KP Fastest Chat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.99 ▲0.35 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.19 ▼7.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.06 ▲2.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.15 ▼9.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.73 ▲3.77 |
KP Fastest Chat /wp-admin/options-general.php?page=kpfc | 3.21 | 31.41 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
kpfc_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KP Fastest Chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.34 ▼0.95 | 1.63 ▼0.15 | 41.29 ▼0.57 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.93 | 109.22 ▲2.15 | 40.38 ▲0.37 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.04 | 40.93 ▲4.63 | 35.53 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,537 ▲15 | 23.17 ▲0.07 | 661.87 ▼26.19 | 58.87 ▲8.51 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▲0.01 | 99.12 ▼0.96 | 46.31 ▲0.61 |
KP Fastest Chat /wp-admin/options-general.php?page=kpfc | 870 | 2.04 | 24.89 | 34.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- kpfc_settings
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kp-fastest-chat/includes/kpfc-admin-footer.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kp-fastest-chat/includes/kpfc-sections-fields.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kp-fastest-chat/includes/kpfc-admin-settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kp-fastest-chat/includes/kpfc-frontend.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kp-fastest-chat/includes/kpfc-styles.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
10 plugin tags: chat, live chat support plugin, wordpress live chat, live support, live support plugin...
kp-fastest-chat/kp-fastest-chat.php 92% from 13 tests
"KP Fastest Chat" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin214 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 91 | 42 | 162 |
CSS | 2 | 7 | 2 | 52 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.39MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/call.png | 12.55KB | 4.66KB | ▼ 62.84% |
assets/images/live-chat.png | 18.40KB | 8.07KB | ▼ 56.12% |
assets/images/sms.png | 7.16KB | 4.68KB | ▼ 34.65% |
assets/images/whatsapp.png | 5.98KB | 4.19KB | ▼ 29.89% |
assets/images/messenger.png | 6.88KB | 3.61KB | ▼ 47.58% |