Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.70MB] [CPU: ▲7.65ms] 75% from 4 tests
An overview of server-side resources used by AI ChatBot
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 539.12ms on /wp-admin/admin.php?page=wpbot)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.21 ▲1.75 | 55.05 ▲10.13 |
Dashboard /wp-admin | 5.01 ▲1.66 | 55.72 ▼5.40 |
Posts /wp-admin/edit.php | 5.06 ▲1.70 | 59.08 ▲9.94 |
Add New Post /wp-admin/post-new.php | 7.60 ▲1.71 | 112.40 ▲24.89 |
Media Library /wp-admin/upload.php | 4.93 ▲1.70 | 46.70 ▲15.94 |
Help and Debugging /wp-admin/admin.php?page=wpbot_help_page | 4.93 | 53.10 |
OpenAI Settings /wp-admin/admin.php?page=wpbot_openAi | 5.25 | 50.33 |
Settings /wp-admin/admin.php?page=wpbot | 6.38 | 539.12 |
Simple Text Responses /wp-admin/admin.php?page=simple-text-response | 4.90 | 41.26 |
Support /wp-admin/admin.php?page=wpbot_support_page | 4.84 | 39.47 |
WPBot Lite /wp-admin/admin.php?page=wpbot-panel | 5.07 | 46.97 |
Server storage [IO: ▲8.63MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 263 new files
Database: 3 new tables, 201 new options
New tables |
---|
wp_wpbot_response |
wp_wpwbot_index |
wp_wpbot_sessions |
New WordPress options |
---|
qlcd_wp_chatbot_meta_label |
qlcd_wp_chatbot_cart_link |
enable_wp_chatbot_inactive_time_show |
qlcd_wp_chatbot_fb_app_id |
qlcd_wp_chatbot_host |
qlcd_wp_chatbot_cart_removing |
qlcd_wp_chatbot_product_order |
wp_chatbot_agent_image |
qlcd_wp_chatbot_viewed_product_welcome |
qlcd_wp_chatbot_email_sent |
... |
Browser metrics Passed 4 tests
Checking browser requirements for AI ChatBot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,112 ▲365 | 13.70 ▼0.89 | 14.81 ▲13.19 | 33.03 ▼7.50 |
Dashboard /wp-admin | 2,248 ▲70 | 5.64 ▼0.04 | 94.88 ▼16.39 | 44.40 ▲1.74 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.03 ▲0.08 | 39.57 ▼0.35 | 38.57 ▲5.96 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.16 ▼0.05 | 704.26 ▼11.76 | 52.06 ▼8.34 |
Media Library /wp-admin/upload.php | 1,453 ▲62 | 4.20 ▼0.04 | 95.57 ▼4.47 | 46.09 ▲3.79 |
Help and Debugging /wp-admin/admin.php?page=wpbot_help_page | 1,892 | 3.79 | 56.62 | 101.89 |
OpenAI Settings /wp-admin/admin.php?page=wpbot_openAi | 1,926 | 3.69 | 57.98 | 92.65 |
Settings /wp-admin/admin.php?page=wpbot | 15,042 | 8.07 | 404.59 | 127.30 |
Simple Text Responses /wp-admin/admin.php?page=simple-text-response | 1,244 | 1.72 | 31.72 | 33.85 |
Support /wp-admin/admin.php?page=wpbot_support_page | 1,909 | 1.70 | 24.57 | 81.00 |
WPBot Lite /wp-admin/admin.php?page=wpbot-panel | 1,581 | 3.74 | 46.56 | 95.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_wpbot_response
- wp_wpbot_sessions
- wp_wpwbot_index
- This plugin does not fully uninstall, leaving 201 options in the database
- qlcd_wp_chatbot_support_phone
- wp_chatbot_show_wpcommerce
- qcld_wb_chatbot_theme
- qlcd_wp_chatbot_thank_for_phone
- wp_chatbot_exit_intent_msg
- qlcd_wp_chatbot_cart_link
- qlcd_wp_chatbot_did_you_mean
- disable_wp_chatbot_faq
- qlcd_wp_chatbot_no_result
- wp_chatbot_exclude_post_list
- ...
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 36× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/chatbot/templates/template-01/template.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/chatbot/templates/app-templates/app-order-thankyou.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/chatbot/includes/openai/admin/admin_ui2.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/chatbot/includes/openai/admin/data_post_converter.php:89
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/chatbot/includes/openai/qcld_wp_OpenAI.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot/includes/openai/plugin-upgrader/admin/admin-notices.php:4
- > PHP Warning
Use of undefined constant QCLD_wpCHATBOT_IMG_URL - assumed 'QCLD_wpCHATBOT_IMG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/chatbot/qc-rating-feature/qc-rating-class.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chatbot/templates/template-horizontal/template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/chatbot/templates/template-horizontal/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/chatbot/templates/template-02/shortcode.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #4 in chatbot/assets to your readme.txt
chatbot/qcld-wpwbot.php 77% from 13 tests
The main PHP file in "AI ChatBot" ver. 5.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/lang")
- Main file name: Name the main plugin file the same as the plugin slug ("chatbot.php" instead of "qcld-wpwbot.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin32,195 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,375 | 962 | 12,714 |
CSS | 25 | 2,078 | 391 | 7,366 |
JavaScript | 18 | 1,413 | 824 | 6,955 |
SVG | 2 | 0 | 0 | 2,959 |
PO File | 2 | 610 | 627 | 1,290 |
HTML | 1 | 121 | 0 | 501 |
XML | 3 | 0 | 0 | 410 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 34.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 146 | |
▷ Static methods | 8 | 5.48% |
▷ Public methods | 130 | 89.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 10.96% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
93 PNG files occupy 2.41MB with 1.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
qc-support-promo-page/images/coming-soon-special.png | 44.70KB | 15.55KB | ▼ 65.22% |
images/wp-boat-product-close-icon.png | 1.33KB | 0.29KB | ▼ 78.02% |
images/conversational-forns.png | 10.65KB | 5.76KB | ▼ 45.89% |
images/chatbot.png | 37.72KB | 10.93KB | ▼ 71.01% |
qc-support-promo-page/images/premium-theme-coming-soont.png | 42.28KB | 15.04KB | ▼ 64.44% |