MxChat_Integrator D

Total Complexity 625
Dependencies 9
Dependents 0
Total lines 4,805
Lines of code 3,294
Logical lines of code 1,628
Comment lines 779
Methods 74
Properties 6

Methods 74

Method Rating Maintainability Complexity Lines of code
mxchat_handle_chat_request()
D
13
65 303
mxchat_generate_response_xai()
D
28
28 139
mxchat_generate_embedding()
C
28
24 148
mxchat_generate_response_deepseek()
C
29 25 129
mxchat_generate_response_openai()
C
31 21 118
mxchat_generate_response()
B
33 18 112
mxchat_live_agent_handover()
B
30 17 124
check_rate_limit()
B
35 19 84
find_relevant_content_wordpress()
B
33 17 100
mxchat_check_intent_and_invoke_callback()
B
36 18 82
mxchat_handle_image_search_request()
B
35 18 79
mxchat_generate_response_gemini()
B
34 15 100
mxchat_generate_response_claude()
B
38 16 63
fetch_and_split_pdf_pages()
B
40 16 58
mxchat_handle_search_request()
B
35 14 88
mxchat_interpret_search_query()
B
44 17 40
mxchat_save_chat_message()
A
38 14 67
find_product_in_message()
A
40 14 58
find_relevant_content_pinecone()
A
38 13 70
mxchat_reset_rate_limits()
A
41 14 53
handle_pdf_upload()
A
40 10 60
find_relevant_products_wordpress()
A
40 10 59
find_relevant_products_pinecone()
A
42 10 53
handle_slack_messages()
A
42 10 49
generate_search_results_html()
A
43 9 55
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 30
mxchat_fetch_new_messages()
A
51 8 25
handle_slack_interaction()
A
40 5 66
send_new_chat_notification()
A
48 7 32
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_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
51 4 26
interpret_query_with_gemini()
S
48 3 34
format_search_results()
S
55 4 18
find_relevant_pdf_pages()
S
56 4 18
handle_pdf_remove()
S
56 4 17
interpret_query_with_claude()
S
49 3 30
mxchat_fetch_woocommerce_products()
S
50 3 30
interpret_query_with_deepseek()
S
50 3 29
interpret_query_with_xai()
S
50 3 29
get_client_ip()
S
60 4 13
interpret_query_with_openai()
S
50 3 28
mxchat_generate_dalle_image()
S
50 3 28
mxchat_fetch_conversation_history()
S
55 3 21
mxchat_send_user_message_to_agent()
S
54 3 20
verify_slack_request()
S
57 3 15
mxchat_find_relevant_content()
S
64 4 9
mxchat_find_relevant_products()
S
64 4 9
fetch_content_with_product_links()
S
59 3 14
setup_rate_limit_cron_jobs()
S
62 3 12
mxchat_generate_image()
S
51 2 27
__construct()
S
47 1 36
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
generate_intent_response()
S
60 1 14
clear_pdf_transients()
S
63 1 11
mxchat_handle_switch_to_chatbot_intent()
S
67 1 7
mxchat_check_word_status()
S
82 1 3
mxchat_handle_email_capture()
S
66 1 7
mxchat_handle_word_upload()
S
82 1 3
mxchat_dismiss_pre_chat_message()
S
68 1 7
cleanup_cron_events()
S
81 1 3
mxchat_get_user_identifier()
S
81 1 3
mxchat_increment_chat_count()
S
73 1 5
mxchat_handle_word_remove()
S
82 1 3