Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.02MB] [CPU: ▲25.82ms] 75% from 4 tests
Server-side resources used by Site Chat - Website Chat & trusted support for your WordPress site and WooCommerce store.
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.02MB on /wp-admin/options-general.php?page=kairasc-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.41 | 67.60 ▲26.84 |
Dashboard /wp-admin | 8.89 ▲5.59 | 72.43 ▲21.06 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 77.84 ▲29.25 |
Add New Post /wp-admin/post-new.php | 9.44 ▲3.56 | 115.44 ▲26.12 |
Media Library /wp-admin/upload.php | 8.89 ▲5.67 | 75.15 ▲35.89 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.89 | 63.49 |
WhatsApp Settings /wp-admin/options-general.php?page=kairasc-settings | 8.90 | 70.29 |
Server storage [IO: ▲8.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 203 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
fs_debug_mode |
theysaidso_admin_options |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Site Chat - Website Chat & trusted support for your WordPress site and WooCommerce store.
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,289 ▲503 | 16.45 ▲2.06 | 47.19 ▲45.31 | 18.32 ▼30.07 |
Dashboard /wp-admin | 2,317 ▲114 | 5.82 ▼0.08 | 106.15 ▲5.71 | 52.97 ▲11.49 |
Posts /wp-admin/edit.php | 2,203 ▲103 | 2.15 ▲0.18 | 36.45 ▼3.01 | 45.58 ▲9.29 |
Add New Post /wp-admin/post-new.php | 1,610 ▲63 | 23.30 ▼0.11 | 657.25 ▼44.02 | 37.05 ▼16.88 |
Media Library /wp-admin/upload.php | 1,499 ▲96 | 4.21 ▼0.04 | 99.45 ▼5.46 | 59.01 ▲12.83 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,093 | 1.72 | 25.99 | 30.50 |
WhatsApp Settings /wp-admin/options-general.php?page=kairasc-settings | 1,171 | 5.96 | 132.87 | 102.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/kaira-site-chat/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- fs_accounts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-posts
- fs_active_plugins
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kaira-site-chat/classes/class-admin-settings.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=kairasc-settings
- > Javascript (severe) in unknown
/wp-content/plugins/kaira-site-chat/dist/settings.js?ver=1.1.11 53698:14 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: whatsapp, whatsapp chat, whatsapp support, site chat
kaira-site-chat/kaira-site-chat.php 92% from 13 tests
The main PHP script in "Site Chat - Website Chat & trusted support for your WordPress site and WooCommerce store." version 1.1.11 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/lang/")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected97,937 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 9,772 | 8,757 | 60,856 |
PHP | 121 | 8,029 | 17,378 | 33,788 |
CSS | 19 | 70 | 45 | 3,293 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,290 | |
▷ Static methods | 198 | 15.35% |
▷ Public methods | 900 | 69.77% |
▷ Protected methods | 17 | 1.32% |
▷ Private methods | 373 | 28.91% |
Functions | 107 | |
▷ Named functions | 100 | 93.46% |
▷ Anonymous functions | 7 | 6.54% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.56MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/bc3c126497eac9310d06.png | 29.24KB | 13.96KB | ▼ 52.25% |
dist/b4d5feb0e8a6daa8651f.png | 234.41KB | 116.32KB | ▼ 50.38% |
dist/28dc51e2bf70ca0edf72.png | 13.38KB | 6.99KB | ▼ 47.77% |
dist/bd05cf75adf7387e88ed.png | 217.10KB | 116.32KB | ▼ 46.42% |
freemius/assets/img/wa-site-chat.png | 9.16KB | 5.26KB | ▼ 42.58% |