Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼2.37ms] 75% from 4 tests
A check of server-side resources used by ThriveDesk - Live Chat, Help Desk & Knowledge Base for WordPress
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,993.55ms on /wp-admin/options-general.php?page=thrivedesk-setting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 41.07 ▲0.80 |
Dashboard /wp-admin | 3.71 ▲0.36 | 51.94 ▼11.90 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 51.58 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 96.34 ▲2.04 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 36.91 ▼0.42 |
ThriveDesk /wp-admin/options-general.php?page=thrivedesk-setting | 7.26 | 2,993.55 |
Server storage [IO: ▲0.89MB] [DB: ▲0.42MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 77 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_td_conversations |
New WordPress options |
---|
can_compress_scripts |
thrivedesk_installed |
widget_theysaidso_widget |
thrivedesk_options |
widget_recent-posts |
widget_recent-comments |
thrivedesk_version |
db_upgraded |
theysaidso_admin_options |
td_db_version |
Browser metrics Passed 4 tests
ThriveDesk - Live Chat, Help Desk & Knowledge Base for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.42 ▲0.11 | 1.65 ▼0.04 | 38.11 ▼5.65 |
Dashboard /wp-admin | 2,202 ▲28 | 5.81 ▲0.29 | 99.10 ▼7.17 | 37.93 ▼4.80 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.40 ▲0.45 | 41.22 ▲0.72 | 29.55 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼4 | 23.66 ▲0.68 | 598.71 ▼42.81 | 63.63 ▼0.47 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.38 ▲0.18 | 98.68 ▼7.30 | 38.83 ▼7.54 |
ThriveDesk /wp-admin/options-general.php?page=thrivedesk-setting | 1,552 | 2.01 | 26.30 | 38.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.42MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_td_conversations
- This plugin does not fully uninstall, leaving 10 options in the database
- thrivedesk_version
- td_db_version
- widget_recent-posts
- widget_theysaidso_widget
- thrivedesk_installed
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- thrivedesk_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/thrivedesk/includes/views/icons/resource.php
- > /wp-content/plugins/thrivedesk/includes/views/icons/close.php
- > /wp-content/plugins/thrivedesk/includes/views/icons/integration.php
- > /wp-content/plugins/thrivedesk/includes/views/icons/spinner.php
- > /wp-content/plugins/thrivedesk/includes/views/icons/search.php
- > /wp-content/plugins/thrivedesk/includes/views/icons/settings.php
- > /wp-content/plugins/thrivedesk/includes/views/icons/back.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/thrivedesk/database/DBMigrator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thrivedesk/includes/helper.php:115
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thrivedesk/includes/helper.php:115
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/thrivedesk/database/DBMigrator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_td_helpdesk_options() in wp-content/plugins/thrivedesk/includes/views/pages/welcome.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/thrivedesk/database/DBMigrator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/thrivedesk/includes/views/pages/resource.php:2
- > PHP Fatal error
Uncaught Error: Class 'ThriveDesk\\Plugins\\EDD' not found in wp-content/plugins/thrivedesk/includes/views/setting.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_td_helpdesk_options() in wp-content/plugins/thrivedesk/includes/views/pages/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function thrivedesk_view() in wp-content/plugins/thrivedesk/includes/views/shortcode/modal.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in thrivedesk/assets to your readme.txt
thrivedesk/thrivedesk.php 85% from 13 tests
The entry point to "ThriveDesk - Live Chat, Help Desk & Knowledge Base for WordPress" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
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
Good job! No executable or dangerous file extensions detected4,601 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 898 | 1,364 | 3,766 |
JavaScript | 10 | 54 | 26 | 576 |
CSS | 4 | 20 | 15 | 213 |
Bourne Shell | 1 | 11 | 0 | 35 |
JSON | 2 | 0 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 17.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 9 | 37.50% |
Methods | 227 | |
▷ Static methods | 50 | 22.03% |
▷ Public methods | 210 | 92.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 7.49% |
Functions | 25 | |
▷ Named functions | 9 | 36.00% |
▷ Anonymous functions | 16 | 64.00% |
Constants | 29 | |
▷ Global constants | 13 | 44.83% |
▷ Class constants | 16 | 55.17% |
▷ Public constants | 16 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.45MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/welcome.png | 158.87KB | 32.58KB | ▼ 79.49% |
(invalid) assets/images/wppostsync.png | 15.95KB | 0.00KB | ▼ 100.00% |
assets/images/thrivedesk.png | 17.26KB | 7.64KB | ▼ 55.74% |
assets/images/woocommerce.png | 11.32KB | 4.43KB | ▼ 60.84% |
assets/images/fluentcrm.png | 6.81KB | 2.84KB | ▼ 58.25% |