Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼7.13ms] Passed 4 tests
An overview of server-side resources used by Instant Chat Floating Button for WordPress Websites
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.45 ▼4.81 |
Dashboard /wp-admin | 3.57 ▲0.22 | 53.66 ▼7.76 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 46.57 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 77.43 ▼17.09 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 36.66 ▲3.29 |
Go Premium /wp-admin/admin.php?page=instantchatwp&tab=pro | 3.44 | 33.24 |
Appearance /wp-admin/admin.php?page=instantchatwp&tab=customize | 3.44 | 31.17 |
Instant Chat WP /wp-admin/admin.php?page=instantchatwp | 3.45 | 33.97 |
Agents /wp-admin/admin.php?page=instantchatwp&tab=users | 3.45 | 33.47 |
Settings /wp-admin/admin.php?page=instantchatwp&tab=settings | 3.45 | 34.55 |
Server storage [IO: ▲3.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 124 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_instantchatwp_staff_availability |
wp_instantchat_whatsapp_stats |
New WordPress options |
---|
db_upgraded |
instantchatwp_pro_active |
widget_recent-posts |
instantchatwp_options |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Instant Chat Floating Button for WordPress Websites
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲131 | 14.47 ▲0.09 | 1.64 ▼0.48 | 41.41 ▲3.21 |
Dashboard /wp-admin | 2,293 ▲105 | 6.12 ▲0.27 | 128.50 ▲22.01 | 84.40 ▲43.82 |
Posts /wp-admin/edit.php | 2,194 ▲105 | 2.80 ▲0.75 | 40.87 ▼1.14 | 54.92 ▲19.13 |
Add New Post /wp-admin/post-new.php | 1,602 ▲65 | 23.54 ▲5.41 | 689.85 ▲69.84 | 38.74 ▼18.10 |
Media Library /wp-admin/upload.php | 1,482 ▲97 | 4.83 ▲0.55 | 90.87 ▼11.18 | 85.85 ▲42.68 |
Go Premium /wp-admin/admin.php?page=instantchatwp&tab=pro | 971 | 2.42 | 34.73 | 64.00 |
Appearance /wp-admin/admin.php?page=instantchatwp&tab=customize | 948 | 2.42 | 37.35 | 60.65 |
Instant Chat WP /wp-admin/admin.php?page=instantchatwp | 1,126 | 2.42 | 34.00 | 61.30 |
Agents /wp-admin/admin.php?page=instantchatwp&tab=users | 948 | 2.43 | 34.60 | 63.23 |
Settings /wp-admin/admin.php?page=instantchatwp&tab=settings | 1,120 | 2.44 | 34.12 | 56.96 |
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
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_instantchat_whatsapp_stats
- wp_instantchatwp_staff_availability
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- instantchatwp_pro_active
- widget_recent-comments
- widget_recent-posts
- instantchatwp_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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/instant-chat-wp/admin/tabs/welcome.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to get property 'agent' of non-object in wp-content/plugins/instant-chat-wp/admin/tabs/main.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'InstantChatWPCommon' not found in wp-content/plugins/instant-chat-wp/classes/admin.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/instant-chat-wp/classes/common.php:735
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/instant-chat-wp/classes/cropimage.php:94
- > PHP Fatal error
Uncaught Error: Call to a member function get_total_period() on null in wp-content/plugins/instant-chat-wp/admin/tabs/main.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/instant-chat-wp/admin/tabs/customize.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/instant-chat-wp/admin/tabs/users.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/instant-chat-wp/admin/tabs/pro.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instant-chat-wp/classes/shorcodes.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/instant-chat-wp/admin/tabs/settings.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Floating Instant Chat), #2 (Multiple Agents), #3 (Custom Chat Box), #4 (Advanced Stats)
instant-chat-wp/index.php 92% from 13 tests
The primary PHP file in "Instant Chat Floating Button for WordPress Websites" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("instant-chat-wp.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected17,870 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 318 | 64 | 5,548 |
SVG | 4 | 1 | 0 | 3,167 |
Sass | 23 | 50 | 48 | 2,649 |
LESS | 23 | 50 | 64 | 2,635 |
JavaScript | 8 | 221 | 389 | 1,870 |
PHP | 12 | 566 | 58 | 1,681 |
PO File | 2 | 127 | 129 | 320 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 1 | 1.75% |
▷ Public methods | 57 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.56MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/error.png | 1.38KB | 1.31KB | ▼ 5.30% |
admin/images/edit_1616.png | 0.68KB | 0.70KB | 0.00% |
screenshot-3.png | 32.52KB | 13.51KB | ▼ 58.45% |
admin/images/small_logo_16x16.png | 16.93KB | 0.43KB | ▼ 97.46% |
screenshot-4.png | 66.90KB | 36.50KB | ▼ 45.44% |