Benchmarks
Plugin footprint 83% 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.13MB] [CPU: ▼8.33ms] Passed 4 tests
Analyzing server-side resources used by Live Support Desk
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.61 ▼4.63 |
Dashboard /wp-admin | 3.44 ▲0.09 | 43.63 ▼15.01 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 45.77 ▼5.57 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.07 ▼8.12 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.27 ▲1.37 |
Manage Roles /wp-admin/admin.php?page=bistri_desk_roles | 3.41 | 35.03 |
Add Agent /wp-admin/admin.php?page=bistri_desk_agent_add | 3.41 | 33.55 |
Live Support Desk /wp-admin/options-general.php?page=bistri_desk_settings | 3.40 | 33.74 |
Manage Account /wp-admin/admin.php?page=bistri_desk_manage_plan | 3.36 | 32.18 |
Add Role /wp-admin/admin.php?page=bistri_desk_role_add | 3.38 | 30.56 |
Manage Agents /wp-admin/admin.php?page=bistri_desk_agents | 3.41 | 32.02 |
Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 146 new files
Database: 5 new tables, 14 new options
New tables |
---|
wp_bistri_desk_queue |
wp_bistri_desk_agents_roles |
wp_bistri_desk_agents |
wp_bistri_desk_messages |
wp_bistri_desk_roles |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
bistri_desk_agents_roles_version |
bistri_desk_queue_version |
widget_recent-comments |
bistri_desk_roles_version |
bistri_desk_data_inserted |
theysaidso_admin_options |
bistri_desk_register_agent |
bistri_desk_plugin_id |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Live Support Desk
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.23 ▼1.37 | 4.67 ▲2.43 | 44.22 ▼5.78 |
Dashboard /wp-admin | 2,245 ▲60 | 5.87 ▲0.03 | 101.24 ▼10.03 | 75.52 ▲35.94 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.00 ▼0.03 | 37.98 ▼3.28 | 33.70 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.83 ▲0.72 | 595.48 ▼111.23 | 51.44 ▼0.54 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.14 ▼0.07 | 94.74 ▼13.60 | 80.02 ▲37.00 |
Manage Roles /wp-admin/admin.php?page=bistri_desk_roles | 943 | 2.03 | 27.75 | 26.69 |
Add Agent /wp-admin/admin.php?page=bistri_desk_agent_add | 941 | 2.02 | 25.72 | 25.76 |
Live Support Desk /wp-admin/options-general.php?page=bistri_desk_settings | 978 | 2.19 | 23.32 | 27.93 |
Manage Account /wp-admin/admin.php?page=bistri_desk_manage_plan | 820 | 1.87 | 23.99 | 21.94 |
Add Role /wp-admin/admin.php?page=bistri_desk_role_add | 850 | 2.02 | 22.92 | 26.46 |
Manage Agents /wp-admin/admin.php?page=bistri_desk_agents | 930 | 2.06 | 26.15 | 24.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 13 options in the database
- bistri_desk_agents_version
- bistri_desk_messages_version
- bistri_desk_queue_version
- can_compress_scripts
- bistri_desk_agents_roles_version
- widget_recent-posts
- bistri_desk_plugin_id
- db_upgraded
- bistri_desk_roles_version
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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 take a closer look at the following
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/handle_javascript_errors.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/protect_by_password.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/handle_errors.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/utils/test_jump_to_file.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/debug_vars.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/index.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/handle_on_redirect.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/eval_terminal.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/complex_usage_example.php
- > /wp-content/plugins/live-support-desk/debug/php-console-master/examples/features/old_version_adapter.php
- 87× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpConsole\\Dispatcher' not found in wp-content/plugins/live-support-desk/debug/php-console-master/src/PhpConsole/Dispatcher/Debug.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-support-desk/pages/add_agent.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-support-desk/classes/service.php:3
- > PHP Notice
Undefined variable: x in wp-content/plugins/live-support-desk/debug/php-console-master/tests/scripts/trigger_not_fatal_errors.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'PhpConsole\\Connector' not found in wp-content/plugins/live-support-desk/debug/php-console-master/tests/scripts/set_connector_auth.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-support-desk/pages/manage.php:3
- > PHP Fatal error
Uncaught Error: Class 'PhpConsole\\Test\\Storage' not found in wp-content/plugins/live-support-desk/debug/php-console-master/tests/Test/Storage/MongoDB.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-support-desk/services/message.php:3
- > PHP Fatal error
Uncaught Error: Class 'PhpConsole\\Test\\Remote\\Test' not found in wp-content/plugins/live-support-desk/debug/php-console-master/tests/Test/Remote/Auth.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-support-desk/pages/roles_list.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 36 tag instead of maximum 10
live-support-desk/bistri-desk.php 92% from 13 tests
The main PHP file in "Live Support Desk" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("live-support-desk.php" instead of "bistri-desk.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected6,736 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 1,156 | 1,204 | 6,158 |
JavaScript | 2 | 8 | 19 | 198 |
Markdown | 4 | 102 | 0 | 162 |
CSS | 2 | 28 | 0 | 146 |
JSON | 2 | 0 | 0 | 42 |
XML | 1 | 3 | 7 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 93 | |
▷ Abstract classes | 12 | 12.90% |
▷ Concrete classes | 81 | 87.10% |
▷ Final classes | 9 | 11.11% |
Methods | 514 | |
▷ Static methods | 25 | 4.86% |
▷ Public methods | 383 | 74.51% |
▷ Protected methods | 109 | 21.21% |
▷ Private methods | 22 | 4.28% |
Functions | 43 | |
▷ Named functions | 4 | 9.30% |
▷ Anonymous functions | 39 | 90.70% |
Constants | 21 | |
▷ Global constants | 2 | 9.52% |
▷ Class constants | 19 | 90.48% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_desk_bell_white_20x14.png | 1.10KB | 0.21KB | ▼ 80.62% |
images/icon_desk_bell_grey_20x14.png | 1.09KB | 0.21KB | ▼ 80.46% |
images/logo_64x64.png | 1.88KB | 0.58KB | ▼ 69.11% |
images/notif_desk_32x32.png | 1.14KB | 0.19KB | ▼ 83.06% |