MxChat_Integrator D

Total Complexity 422
Dependencies 8
Dependents 0
Total lines 3,448
Lines of code 2,323
Logical lines of code 1,165
Comment lines 553
Methods 63
Properties 6

Methods 63

Method Rating Maintainability Complexity Lines of code
mxchat_handle_chat_request()
D
17
50 262
mxchat_handle_image_search_request()
B
36 17 75
mxchat_generate_response_claude()
B
38 16 63
fetch_and_split_pdf_pages()
B
40 16 58
mxchat_generate_response()
A
39 14 70
find_relevant_content_wordpress()
A
37 13 78
mxchat_check_intent_and_invoke_callback()
A
39 13 65
mxchat_live_agent_handover()
A
33 8 118
mxchat_generate_response_openai()
A
41 12 55
mxchat_generate_response_deepseek()
A
41 12 55
mxchat_handle_search_request()
A
38 10 70
find_product_in_message()
A
42 11 49
handle_pdf_upload()
A
40 10 60
find_relevant_products_wordpress()
A
40 10 59
find_relevant_products_pinecone()
A
42 10 53
find_relevant_content_pinecone()
A
43 10 47
generate_search_results_html()
A
43 9 55
mxchat_save_chat_message()
A
42 9 52
mxchat_generate_response_xai()
A
42 9 49
mxchat_fetch_conversation_history_for_ai()
A
43 9 48
mxchat_handle_pdf_discussion()
A
50 10 24
mxchat_handle_save_email_and_response()
A
48 8 31
mxchat_fetch_new_messages()
A
51 8 25
get_user_role_rate_limit()
A
53 8 22
handle_slack_interaction()
A
40 5 66
format_intent_context()
A
48 7 32
add_email_to_loops()
A
48 7 32
mxchat_check_email_provided()
S
53 7 20
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_interpret_search_query()
S
47 5 35
mxchat_send_user_message_to_agent()
S
42 3 64
mxchat_check_new_messages()
S
50 5 28
mxchat_stream_events()
S
52 5 23
mxchat_enqueue_scripts_styles()
S
43 3 48
mxchat_generate_embedding()
S
50 4 29
mxchat_handle_agent_response()
S
51 4 26
find_relevant_pdf_pages()
S
56 4 18
format_search_results()
S
55 4 18
handle_pdf_remove()
S
56 4 17
mxchat_fetch_woocommerce_products()
S
50 3 30
mxchat_generate_dalle_image()
S
50 3 28
__construct()
S
46 2 38
mxchat_fetch_conversation_history()
S
55 3 21
mxchat_find_relevant_products()
S
64 4 9
verify_slack_request()
S
57 3 15
mxchat_find_relevant_content()
S
64 4 9
fetch_content_with_product_links()
S
59 3 14
mxchat_generate_image()
S
52 2 22
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
verify_chat_session()
S
66 2 8
mxchat_reset_rate_limits()
S
63 2 10
generate_intent_response()
S
61 1 13
clear_pdf_transients()
S
63 1 11
mxchat_increment_chat_count()
S
73 1 5
mxchat_handle_switch_to_chatbot_intent()
S
67 1 7
mxchat_handle_word_remove()
S
82 1 3
mxchat_handle_email_capture()
S
66 1 7
mxchat_get_user_identifier()
S
81 1 3
mxchat_dismiss_pre_chat_message()
S
68 1 7
mxchat_check_word_status()
S
82 1 3
mxchat_handle_word_upload()
S
82 1 3