MxChat_Integrator D

Total Complexity 277
Dependencies 6
Dependents 0
Total lines 2,089
Lines of code 1,376
Logical lines of code 780
Comment lines 352
Methods 47
Properties 2

Methods 47

Method Rating Maintainability Complexity Lines of code
mxchat_handle_search_request()
D
28
38 112
mxchat_handle_chat_request()
C
28
28 128
mxchat_handle_image_search_request()
B
36 17 75
mxchat_handle_product_recommendations()
A
37 13 74
mxchat_handle_pdf_discussion()
A
40 12 61
mxchat_generate_recommendations()
A
44 12 46
mxchat_check_intent_and_invoke_callback()
A
44 12 42
mxchat_find_relevant_content()
A
48 10 32
fetch_and_split_pdf_pages()
A
46 7 36
add_email_to_loops()
A
48 7 32
mxchat_generate_response_xai()
S
45 6 41
mxchat_generate_response_openai()
S
45 6 41
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_handle_order_history()
S
53 7 18
mxchat_generate_response_claude()
S
46 5 39
mxchat_interpret_search_query()
S
47 5 35
mxchat_handle_product_inquiry()
S
49 5 31
mxchat_handle_add_to_cart_intent()
S
50 5 29
mxchat_call_ai_api()
S
45 4 43
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_checkout_intent()
S
52 4 25
find_relevant_pdf_pages()
S
56 4 18
mxchat_fetch_woocommerce_products()
S
50 3 30
mxchat_generate_dalle_image()
S
50 3 28
mxchat_enqueue_scripts_styles()
S
46 2 39
mxchat_get_recommendations_from_order_history()
S
58 3 15
fetch_content_with_product_links()
S
59 3 14
mxchat_fetch_conversation_history_for_ai()
S
60 3 14
mxchat_fetch_conversation_history()
S
59 3 14
__construct()
S
53 2 22
mxchat_generate_image()
S
53 2 22
mxchat_save_chat_message()
S
55 2 19
mxchat_generate_ai_recommendation_prompt()
S
55 2 19
mxchat_check_pre_chat_message_status()
S
62 2 12
mxchat_fetch_conversation_history_for_ajax()
S
63 2 11
mxchat_get_general_recommendations()
S
59 1 16
mxchat_handle_product_delete()
S
66 2 8
mxchat_reset_rate_limits()
S
63 2 10
mxchat_fetch_ai_response()
S
74 2 4
mxchat_get_user_identifier()
S
81 1 3
mxchat_handle_email_capture()
S
66 1 7
mxchat_get_recommendations_from_cart()
S
66 1 8
mxchat_increment_chat_count()
S
73 1 5
mxchat_dismiss_pre_chat_message()
S
68 1 7