MxChat_Integrator D

Total Complexity 406
Dependencies 9
Dependents 0
Total lines 3,441
Lines of code 2,320
Logical lines of code 1,182
Comment lines 558
Methods 68
Properties 5

Methods 68

Method Rating Maintainability Complexity Lines of code
mxchat_handle_chat_request()
D
20
44 218
mxchat_generate_recommendations()
B
36 18 77
mxchat_handle_image_search_request()
B
36 17 75
fetch_and_split_pdf_pages()
B
40 16 58
mxchat_handle_product_recommendations()
A
37 13 73
mxchat_find_relevant_products()
A
40 12 60
mxchat_find_relevant_content()
A
40 12 60
mxchat_check_intent_and_invoke_callback()
A
44 12 43
mxchat_handle_search_request()
A
38 10 70
find_product_in_message()
A
43 11 49
mxchat_get_user_context()
A
44 11 46
handle_pdf_upload()
A
40 10 60
generate_search_results_html()
A
43 9 55
mxchat_generate_response_openai()
A
41 9 52
mxchat_generate_response_xai()
A
42 9 49
mxchat_handle_product_inquiry()
A
41 8 57
mxchat_handle_pdf_discussion()
A
51 10 24
mxchat_handle_add_to_cart_intent()
A
41 7 64
mxchat_generate_response_claude()
A
43 8 47
mxchat_live_agent_handover()
A
36 4 98
mxchat_fetch_new_messages()
A
51 8 25
handle_slack_interaction()
A
40 5 66
format_intent_context()
A
49 7 32
add_email_to_loops()
A
48 7 32
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_save_chat_message()
S
46 5 37
mxchat_interpret_search_query()
S
47 5 35
mxchat_get_ai_shopping_suggestion()
S
54 6 20
mxchat_send_user_message_to_agent()
S
42 3 64
mxchat_call_ai_api()
S
45 4 43
mxchat_handle_checkout_intent()
S
51 5 27
mxchat_stream_events()
S
52 5 23
mxchat_store_product_embedding()
S
55 5 17
mxchat_generate_embedding()
S
50 4 29
mxchat_handle_product_change()
S
60 5 14
mxchat_generate_response()
S
59 5 13
mxchat_handle_agent_response()
S
51 4 27
mxchat_handle_order_history()
S
50 4 26
mxchat_fetch_conversation_history_for_ai()
S
54 4 22
format_search_results()
S
55 4 18
find_relevant_pdf_pages()
S
56 4 18
handle_pdf_remove()
S
57 4 17
mxchat_enqueue_scripts_styles()
S
44 2 45
mxchat_fetch_woocommerce_products()
S
50 3 30
mxchat_generate_dalle_image()
S
50 3 28
__construct()
S
47 2 36
mxchat_fetch_conversation_history()
S
55 3 21
verify_slack_request()
S
57 3 15
fetch_content_with_product_links()
S
59 3 14
mxchat_generate_image()
S
53 2 22
mxchat_generate_ai_recommendation_prompt()
S
54 2 20
mxchat_check_pre_chat_message_status()
S
62 2 12
mxchat_fetch_conversation_history_for_ajax()
S
63 2 11
register_routes()
S
58 1 17
mxchat_reset_rate_limits()
S
63 2 10
mxchat_handle_product_delete()
S
66 2 8
verify_chat_session()
S
66 2 8
mxchat_fetch_ai_response()
S
74 2 4
generate_intent_response()
S
62 1 12
clear_pdf_transients()
S
63 1 11
mxchat_handle_word_upload()
S
82 1 3
mxchat_handle_switch_to_chatbot_intent()
S
67 1 7
mxchat_check_word_status()
S
82 1 3
mxchat_dismiss_pre_chat_message()
S
68 1 7
mxchat_increment_chat_count()
S
73 1 5
mxchat_handle_email_capture()
S
66 1 7
mxchat_get_user_identifier()
S
81 1 3
mxchat_handle_word_remove()
S
82 1 3