HippooAI C

Total Complexity 112
Dependencies 1
Dependents 0
Total lines 774
Lines of code 601
Logical lines of code 305
Comment lines 8
Methods 32
Properties 2

Methods 32

Method Rating Maintainability Complexity Lines of code
rest_generate_description()
B
39 16 60
parse_input_images()
A
50 11 27
openai_generate_description()
A
37 7 74
optimize_image()
A
48 8 29
rest_update_settings()
A
51 8 25
rest_test_connection()
S
49 5 30
rest_get_settings()
S
54 5 21
field_ai_model_render()
S
57 5 16
rest_get_models()
S
54 4 20
openai_get_models()
S
53 4 20
settings_init()
S
43 1 63
do_test_connection()
S
56 4 18
rest_update_prompts()
S
61 3 12
register_rest_routes()
S
48 1 41
rest_use_wc_authentication()
S
64 3 9
check_rate_limit()
S
63 3 10
openai_test_connection()
S
62 2 11
add_ai_tab_content()
S
61 1 16
field_ai_provider_render()
S
67 2 8
field_api_token_render()
S
64 2 10
field_system_prompt_render()
S
66 2 9
field_description_prompt_render()
S
66 2 9
field_max_tokens_render()
S
67 2 8
generate_cache_key()
S
68 2 7
uses_max_completion_tokens()
S
71 2 6
__construct()
S
66 1 8
add_ai_tab()
S
70 1 5
sanitize_ai_settings()
S
72 1 5
section_ai_connect_render()
S
81 1 6
section_ai_product_reader_render()
S
78 1 8
rest_permission_check()
S
80 1 3
rest_get_prompts()
S
68 1 7