Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.35MB] [CPU: ▲6.88ms] Passed 4 tests
Server-side resources used by Chatbot with IBM Watson
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.72 ▲1.26 | 58.51 ▲2.64 |
Dashboard /wp-admin | 4.73 ▲1.42 | 66.14 ▲15.94 |
Posts /wp-admin/edit.php | 4.78 ▲1.42 | 61.36 ▲10.40 |
Add New Post /wp-admin/post-new.php | 7.25 ▲1.36 | 98.83 ▼0.68 |
Media Library /wp-admin/upload.php | 4.59 ▲1.36 | 53.74 ▲15.17 |
Customize Plugin /wp-admin/admin.php?page=watson_asst_customize | 4.59 | 59.56 |
Set Up Chatbot /wp-admin/admin.php?page=watson_asst_setup | 4.55 | 53.47 |
Advanced Features /wp-admin/admin.php?page=watson_asst_advanced | 4.57 | 67.87 |
Server storage [IO: ▲8.00MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,416 new files
Database: 14 new tables, 15 new options
New tables |
---|
wp_watsonconv_contexts |
wp_watsonconv_input_entities |
wp_watsonconv_task_runner_queue |
wp_watsonconv_intents |
wp_watsonconv_actions |
wp_watsonconv_user_inputs |
wp_watsonconv_watson_outputs |
wp_watsonconv_debug_log |
wp_watsonconv_entities |
wp_watsonconv_input_intents |
... |
New WordPress options |
---|
widget_recent-comments |
watsonconv_fallback_state |
widget_recent-posts |
theysaidso_admin_options |
watsonconv_cron_was_reliable |
watsonconv_last_cron_check |
watsonconv_runner_launched |
can_compress_scripts |
watsonconv_runner_state |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Chatbot with IBM Watson
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.24 ▼0.13 | 1.91 ▼0.11 | 40.90 ▼3.94 |
Dashboard /wp-admin | 2,223 ▲46 | 5.53 ▼0.16 | 88.26 ▼19.32 | 41.11 ▼0.35 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▲0.05 | 33.17 ▼4.77 | 33.31 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.31 ▲0.10 | 652.46 ▲23.65 | 58.15 ▲6.63 |
Media Library /wp-admin/upload.php | 1,434 ▲40 | 4.22 ▼0.01 | 101.90 ▲0.93 | 45.05 ▲1.68 |
Customize Plugin /wp-admin/admin.php?page=watson_asst_customize | 1,787 | 3.62 | 78.33 | 32.98 |
Set Up Chatbot /wp-admin/admin.php?page=watson_asst_setup | 1,794 | 9.04 | 267.66 | 65.18 |
Advanced Features /wp-admin/admin.php?page=watson_asst_advanced | 1,835 | 2.84 | 50.40 | 29.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 14 tables
- wp_watsonconv_input_intents
- wp_watsonconv_sessions
- wp_watsonconv_actions
- wp_watsonconv_task_runner_queue
- wp_watsonconv_entities
- wp_watsonconv_requests
- wp_watsonconv_watson_outputs
- wp_watsonconv_contexts
- wp_watsonconv_output_intents
- wp_watsonconv_intents
- ...
- The uninstall procedure has failed, leaving 15 options in the database
- watsonconv_runner_state
- db_upgraded
- watsonconv_fallback_time
- watsonconv_runner_launched
- watsonconv_logger_initialized
- watsonconv_runner
- watsonconv_last_cron_check
- watsonconv_cron_was_reliable
- widget_theysaidso_widget
- watsonconv_fallback_state
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
- 1336× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/LocalTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberList.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Rest/Accounts/V1/CredentialInstance.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionList.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Tests/Integration/Sync/V1/Service/SyncList/SyncListItemTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Rest/Pricing/V1/Voice/CountryPage.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionPage.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Tests/Integration/Api/V2010/Account/Recording/AddOnResultTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Rest/Preview/DeployedDevices/FleetContext.php:34
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/conversation-watson/vendor/twilio/sdk/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageInstance.php:37
- > PHP Fatal error
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 Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: chat, faq, chat bot, artificial intelligence, support...
conversation-watson/watson.php 85% from 13 tests
The entry point to "Chatbot with IBM Watson" version 0.8.36 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("conversation-watson.php" instead of "watson.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin103,001 lines of code in 1,395 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,374 | 22,815 | 65,658 | 100,067 |
Markdown | 8 | 541 | 0 | 1,424 |
CSS | 2 | 116 | 0 | 678 |
JavaScript | 2 | 82 | 63 | 472 |
make | 2 | 40 | 9 | 212 |
JSON | 2 | 0 | 0 | 76 |
Python | 1 | 72 | 235 | 31 |
YAML | 1 | 0 | 0 | 16 |
Bourne Shell | 1 | 0 | 0 | 10 |
XML | 1 | 0 | 1 | 8 |
reStructuredText | 1 | 6 | 7 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 222 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 1,654 | |
▷ Abstract classes | 171 | 10.34% |
▷ Concrete classes | 1,483 | 89.66% |
▷ Final classes | 0 | 0.00% |
Methods | 9,862 | |
▷ Static methods | 575 | 5.83% |
▷ Public methods | 9,022 | 91.48% |
▷ Protected methods | 808 | 8.19% |
▷ Private methods | 32 | 0.32% |
Functions | 15 | |
▷ Named functions | 2 | 13.33% |
▷ Anonymous functions | 13 | 86.67% |
Constants | 23 | |
▷ Global constants | 4 | 17.39% |
▷ Class constants | 19 | 82.61% |
▷ Public constants | 19 | 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
12 PNG files occupy 0.93MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/options_instructions/7_json_text_close.png | 76.38KB | 16.15KB | ▼ 78.86% |
img/chatbot_logo.png | 21.57KB | 10.67KB | ▼ 50.52% |
img/options_instructions/6_json_text_open.png | 76.36KB | 16.12KB | ▼ 78.89% |
img/credentials_v2_2.png | 163.26KB | 43.11KB | ▼ 73.59% |
img/options_instructions/9_json_options_filled.png | 103.22KB | 24.67KB | ▼ 76.10% |