MxChat_Integrator D

Total Complexity 439
Dependencies 8
Dependents 0
Total lines 3,592
Lines of code 2,543
Logical lines of code 1,358
Comment lines 444
Methods 63
Properties 6

Methods 63

Method Rating Maintainability Complexity Lines of code
mxchat_handle_chat_request()
D
14
58 302
find_relevant_content_wordpress()
B
33 16 97
mxchat_handle_image_search_request()
B
36 17 75
mxchat_check_intent_and_invoke_callback()
B
34 15 95
mxchat_generate_response_claude()
B
38 16 67
fetch_and_split_pdf_pages()
B
39 16 63
mxchat_generate_response()
A
39 14 71
mxchat_live_agent_handover()
A
33 8 118
mxchat_generate_response_openai()
A
40 12 57
mxchat_generate_response_deepseek()
A
40 12 57
find_relevant_content_pinecone()
A
39 11 61
mxchat_handle_search_request()
A
38 10 70
find_product_in_message()
A
42 11 49
find_relevant_products_pinecone()
A
40 10 62
handle_pdf_upload()
A
40 10 60
find_relevant_products_wordpress()
A
40 10 59
mxchat_save_chat_message()
A
40 9 60
generate_search_results_html()
A
43 9 55
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
45 8 39
get_user_role_rate_limit()
A
47 8 33
mxchat_fetch_new_messages()
A
50 8 27
handle_slack_interaction()
A
39 5 70
add_email_to_loops()
A
47 7 35
format_intent_context()
A
48 7 32
mxchat_check_email_provided()
S
50 7 27
mxchat_generate_embedding()
S
45 6 41
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_interpret_search_query()
S
46 5 38
mxchat_send_user_message_to_agent()
S
41 3 67
mxchat_check_new_messages()
S
50 5 28
mxchat_stream_events()
S
52 5 23
mxchat_enqueue_scripts_styles()
S
43 3 48
mxchat_handle_agent_response()
S
49 4 31
find_relevant_pdf_pages()
S
55 4 19
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
49 3 30
mxchat_find_relevant_products()
S
59 4 13
mxchat_find_relevant_content()
S
59 4 13
__construct()
S
46 2 38
mxchat_fetch_conversation_history()
S
55 3 21
verify_slack_request()
S
56 3 17
mxchat_generate_image()
S
49 2 31
fetch_content_with_product_links()
S
59 3 14
mxchat_check_pre_chat_message_status()
S
60 3 13
mxchat_fetch_conversation_history_for_ajax()
S
63 2 11
register_routes()
S
56 1 19
verify_chat_session()
S
64 2 9
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
65 1 8
mxchat_handle_word_remove()
S
82 1 3
mxchat_handle_email_capture()
S
64 1 8
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