WP_Sheet_Editor_Helpers D

Total Complexity 649
Dependencies 12
Dependents 11
Total lines 2,657
Lines of code 1,953
Logical lines of code 1,187
Comment lines 324
Methods 103
Properties 9

Methods 103

Method Rating Maintainability Complexity Lines of code
save_rows()
D
18
74 188
get_rows()
D
15
71 229
maybe_replace_urls_with_file_ids()
D
24
54 142
prepare_query_params_for_retrieving_rows()
C
32 30 93
add_file_to_gallery_from_url()
B
38 18 64
add_post_type_to_rows()
B
43 17 53
get_sheet_sort_options()
A
44 16 38
get_prepared_post_types()
A
41 15 50
save_column_text_value()
A
41 14 61
create_placeholder_posts()
A
39 11 64
add_file_to_gallery_from_path()
A
47 12 36
get_column_text_value()
A
49 12 29
get_post_type_columns_options()
A
47 11 33
get_extension_by_post_type()
A
55 9 21
get_cached_attachment_url()
A
53 9 20
sanitize_data_for_db()
A
52 8 22
is_happy_user()
S
57 8 15
get_all_meta_keys()
S
55 7 19
get_provider_from_query_string()
S
58 7 14
safe_html()
S
58 7 14
change_values_format()
S
52 6 27
get_custom_modal_editor_cell_content()
S
52 6 23
readfile_chunked()
S
55 6 20
_prepare_data_for_saving()
S
56 6 19
get_gallery_cell_content()
S
55 6 18
let_to_num()
S
57 6 17
get_with_dot_notation()
S
58 6 16
remove_disallowed_post_types()
S
59 6 15
is_wpse_page()
S
62 6 10
set_with_dot_notation()
S
58 5 15
get_all_post_types()
S
57 5 15
get_current_query_session_id()
S
59 5 13
get_column_settings()
S
61 5 12
get_gutenberg_cell_content()
S
54 4 19
get_ids_from_text_list()
S
57 4 16
rename_array_keys()
S
60 4 14
get_enabled_post_types()
S
59 4 14
user_can_delete_post_type()
S
60 4 14
create_rest_request()
S
60 4 13
verify_sheet_permissions_from_request()
S
62 4 11
array_remove_empty()
S
63 4 11
get_term_separator()
S
62 4 10
can_rescan_db_fields()
S
65 4 8
sanitize_table_key()
S
65 4 9
get_post_type_taxonomies()
S
63 4 10
get_post_type_taxonomies_single_data()
S
64 4 10
get_attachment_id_from_url()
S
57 3 15
array_to_dot()
S
61 3 12
get_post_types_without_own_sheet()
S
61 3 12
array_flatten()
S
63 3 11
prepare_raw_value_for_display()
S
69 3 6
is_plugin_active()
S
64 3 10
remove_unlisted_keys()
S
65 3 9
is_rest_request()
S
72 3 4
get_plugin_mode()
S
74 3 4
is_editor_page()
S
67 3 7
get_unfiltered_provider_columns()
S
63 3 10
user_can_edit_post_type()
S
66 3 8
user_can_view_post_type()
S
66 3 8
safe_text_only()
S
68 3 7
get_provider_columns()
S
67 3 7
merge_arrays_by_value()
S
61 2 13
increase_counter()
S
61 2 12
get_all_post_types_names()
S
63 2 11
get_allowed_post_types()
S
66 2 9
get_view_spreadsheet_capability()
S
66 2 9
is_settings_page()
S
78 2 3
get_post_type_label()
S
72 2 5
get_instance()
S
70 2 7
init()
S
78 2 3
get_data_provider_class_key()
S
67 2 7
get_current_provider()
S
71 2 6
remove_all_post_actions()
S
71 2 5
get_columns_limit()
S
73 2 4
get_provider_editor()
S
74 2 4
post_type_array()
S
72 2 6
get_job_id_from_request()
S
78 2 3
get_nonce_from_request()
S
78 2 3
columns_cache_expiration()
S
69 2 7
get_page_by_title()
S
66 2 8
verify_nonce_from_request()
S
77 2 3
remove_array_item_by_value()
S
69 2 7
current_user_can()
S
66 2 8
sanitize_integer()
S
67 2 8
do_booleable()
S
69 2 6
get_current_user_id()
S
68 2 8
get_edit_spreadsheet_capability()
S
66 2 9
has_paid_addon_active()
S
64 1 11
is_post_type_allowed()
S
75 1 4
get_files_list()
S
75 1 4
get_settings_page_url()
S
77 1 3
get_editor_url()
S
75 1 4
get_tinymce_cell_content()
S
75 1 4
_get_post_id_from_search()
S
75 1 4
get_data_provider()
S
72 1 5
user_can_manage_options()
S
80 1 3
get_random_date_in_range()
S
75 1 4
get_post_types_with_own_sheet()
S
70 1 5
convert_key_to_label()
S
76 1 3
get_uuid()
S
81 1 3
is_plain_text_request()
S
79 1 3
set_current_user()
S
80 1 3
__construct()
S
91 1 2