Kadence_Blocks_Prebuilt_Library_REST_Controller D

Total Complexity 438
Dependencies 14
Dependents 1
Total lines 2,999
Lines of code 2,097
Logical lines of code 1,056
Comment lines 625
Methods 53
Properties 24

Methods 53

Method Rating Maintainability Complexity Lines of code
get_new_remote_contents()
D
17
56 268
get_pattern_content()
C
35 24 81
get_library()
B
37 23 68
process_pattern()
B
35 22 80
get_library_categories()
B
39 20 59
get_items()
B
38 14 78
import_image()
B
39 15 62
get_images_by_industry()
A
43 15 48
get_connection()
A
43 14 43
register_routes()
A
29 1 230
install_single_cpt()
A
43 13 48
process_cpt()
A
48 13 32
get_remote_library_contents()
A
44 12 43
get_remaining_jobs()
A
40 10 63
get_all_ai_items()
A
46 11 39
get_remote_library_categories()
A
47 11 36
check_for_local_image()
A
45 10 43
get_image_info()
A
54 11 19
cpt_switch_color()
A
32 4 119
get_initial_jobs()
A
50 9 29
get_keyword_suggestions()
A
48 8 32
get_remote_search_images()
A
45 7 44
get_remote_remaining_credits()
A
50 8 29
get_remote_industry_images()
A
46 7 42
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_library_data()
S
52 6 25
get_local_contexts()
S
57 6 18
update_block_ids()
S
57 6 16
get_collection_params()
S
39 1 84
get_token_header()
S
55 5 18
get_license_keys()
S
59 5 15
install_inner_posts_cpt()
S
60 5 13
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
cpt_switch_meta_color()
S
50 2 32
sanitize_industries_array()
S
64 4 10
get_string_inbetween_when()
S
60 3 13
get_string_inbetween()
S
61 3 12
check_for_image()
S
65 3 9
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
62 1 12
sanitize_filename()
S
79 1 3
is_response_code_error()
S
75 1 4
process_images()
S
75 1 4
get_items_permission_check()
S
80 1 3
__construct()
S
66 1 8