Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▼0.62MB] [CPU: ▼15.22ms] Passed 4 tests
Analyzing server-side resources used by LiveHelpNow Help Desk
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.25 ▼1.69 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.70 ▼4.24 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.19 ▲4.14 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 34.43 ▼57.79 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.80 ▲2.85 |
Settings /wp-admin/admin.php?page=livehelpnow-chat | 3.28 | 37.38 |
All Chats /wp-admin/edit.php?post_type=lhn-chat | 3.37 | 36.81 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 163 new files
Database: no new tables, 9 new options
New WordPress options |
---|
lhn_session_destroyed |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
lhn_default_chat |
lhn_display_chat |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by LiveHelpNow Help Desk
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲170 | 13.66 ▼0.69 | 1.76 ▼0.16 | 44.22 ▼2.18 |
Dashboard /wp-admin | 2,311 ▲123 | 5.85 ▼0.01 | 107.62 ▼10.38 | 76.43 ▲28.85 |
Posts /wp-admin/edit.php | 2,199 ▲110 | 2.06 ▲0.06 | 35.42 ▲1.08 | 31.30 ▼5.83 |
Add New Post /wp-admin/post-new.php | 6,523 ▲4,990 | 27.75 ▲4.15 | 864.25 ▲183.91 | 59.01 ▲7.10 |
Media Library /wp-admin/upload.php | 1,501 ▲119 | 4.28 ▲0.10 | 100.08 ▼15.30 | 48.81 ▲0.95 |
Settings /wp-admin/admin.php?page=livehelpnow-chat | 856 | 2.09 | 26.60 | 24.42 |
All Chats /wp-admin/edit.php?post_type=lhn-chat | 1,696 | 2.03 | 37.49 | 29.28 |
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
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- lhn_display_chat
- lhn_session_destroyed
- can_compress_scripts
- widget_recent-posts
- lhn_default_chat
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
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/livehelpnow-helpdesk/src/templates/admin/chat-settings-widget.php
- 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php:22
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
- > PHP Warning
Use of undefined constant LHN_CHAT_PLUGIN_DIR_PATH - assumed 'LHN_CHAT_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/livehelpnow-helpdesk/src/inc/init.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/livehelpnow-helpdesk/vendor/composer/installers/src/Composer/Installers/Installer.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: help desk system, help desk widget, live chat widget, help desk software, live chat software...
livehelpnow-helpdesk/plugin.php 85% from 13 tests
The entry point to "LiveHelpNow Help Desk" version 0.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("livehelpnow-helpdesk.php" instead of "plugin.php")
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 plugin5,182 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 928 | 1,505 | 4,594 |
Markdown | 3 | 53 | 0 | 278 |
JSON | 3 | 0 | 0 | 258 |
YAML | 2 | 7 | 0 | 27 |
XML | 1 | 2 | 0 | 23 |
CSS | 1 | 0 | 1 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 122 | |
▷ Abstract classes | 3 | 2.46% |
▷ Concrete classes | 119 | 97.54% |
▷ Final classes | 0 | 0.00% |
Methods | 243 | |
▷ Static methods | 4 | 1.65% |
▷ Public methods | 192 | 79.01% |
▷ Protected methods | 44 | 18.11% |
▷ Private methods | 7 | 2.88% |
Functions | 9 | |
▷ Named functions | 3 | 33.33% |
▷ Anonymous functions | 6 | 66.67% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/lhn.png | 6.26KB | 6.67KB | 0.00% |