Kadence_Blocks_Prebuilt_Library_REST_Controller D

Total Complexity 304
Dependencies 14
Dependents 1
Total lines 2,261
Lines of code 1,514
Logical lines of code 664
Comment lines 505
Methods 41
Properties 19

Methods 41

Method Rating Maintainability Complexity Lines of code
get_new_remote_contents()
D
17
55 267
process_pattern()
C
35 25 76
get_library()
B
39 19 57
get_pattern_content()
A
41 15 56
get_images_by_industry()
A
43 15 48
get_items()
A
41 12 60
import_image()
A
40 12 60
register_routes()
A
31 1 206
get_remaining_jobs()
A
41 10 58
get_all_ai_items()
A
46 11 39
get_image_info()
A
54 11 19
get_remote_library_contents()
A
48 10 33
get_initial_jobs()
A
50 9 29
get_remote_search_images()
A
45 7 44
get_remote_industry_images()
A
46 7 42
get_keyword_suggestions()
A
49 7 31
get_image_search_query()
S
49 7 30
get_all_items()
S
54 7 20
get_src_from_image_data()
S
61 7 11
get_local_contexts()
S
57 6 18
get_remote_remaining_credits()
S
53 5 24
get_collection_params()
S
40 1 79
get_remote_image_collections()
S
56 4 20
get_image_collections()
S
57 4 17
get_remote_industry_verticals()
S
58 4 17
get_industry_verticals()
S
58 4 16
check_for_image()
S
62 4 12
sanitize_industries_array()
S
64 4 10
check_for_local_image()
S
53 2 26
get_license_keys()
S
66 3 9
get_token_header()
S
58 2 14
create_filename_from_alt()
S
66 2 8
is_ai_job_processing()
S
68 2 7
sanitize_industry_name()
S
65 2 9
get_remaining_credits()
S
68 2 8
get_remote_contents()
S
63 1 12
__construct()
S
66 1 8
sanitize_jpeg_filename()
S
79 1 3
process_images()
S
75 1 4
get_items_permission_check()
S
80 1 3
is_response_code_error()
S
75 1 4