Kadence_Blocks_Prebuilt_Library_REST_Controller D

Total Complexity 311
Dependencies 12
Dependents 1
Total lines 2,214
Lines of code 1,517
Logical lines of code 666
Comment lines 480
Methods 40
Properties 19

Methods 40

Method Rating Maintainability Complexity Lines of code
get_new_remote_contents()
D
17
55 267
get_library()
B
39 19 57
process_pattern()
B
40 18 55
get_pattern_content()
A
41 15 56
get_items()
A
40 14 63
get_images_by_industry()
A
43 15 48
get_all_ai_items()
A
44 14 42
import_image()
A
40 12 60
register_routes()
A
31 1 206
get_remaining_jobs()
A
41 10 58
get_all_items()
A
50 11 25
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_src_from_image_data()
S
61 7 11
get_local_contexts()
S
57 6 18
get_remote_contents()
S
52 5 27
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
get_token_header()
S
57 3 15
check_for_local_image()
S
53 2 26
is_response_code_error()
S
66 3 8
get_license_keys()
S
66 3 9
create_filename_from_alt()
S
66 2 8
sanitize_industry_name()
S
65 2 9
get_remaining_credits()
S
68 2 8
sanitize_jpeg_filename()
S
79 1 3
process_images()
S
75 1 4
get_items_permission_check()
S
80 1 3
__construct()
S
66 1 8