WP_Sheet_Editor_Helpers D

Total Complexity 582
Dependencies 11
Dependents 12
Total lines 2,437
Lines of code 1,777
Logical lines of code 1,071
Comment lines 297
Methods 99
Properties 5

Methods 99

Method Rating Maintainability Complexity Lines of code
save_rows()
D
20
67 160
get_rows()
D
18
60 207
maybe_replace_urls_with_file_ids()
D
26
45 128
prepare_query_params_for_retrieving_rows()
C
32 30 92
get_prepared_post_types()
A
41 15 50
save_column_text_value()
A
41 14 61
get_sheet_sort_options()
A
44 15 38
get_gallery_cell_content()
A
46 13 34
get_column_text_value()
A
47 13 33
create_placeholder_posts()
A
40 11 61
add_file_to_gallery_from_path()
A
47 11 34
get_post_type_columns_options()
A
47 11 33
add_file_to_gallery_from_url()
A
49 10 29
get_extension_by_post_type()
A
55 9 21
is_happy_user()
S
57 8 15
get_all_meta_keys()
S
55 7 19
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
sanitize_data_for_db()
S
55 6 19
let_to_num()
S
57 6 17
get_with_dot_notation()
S
58 6 16
remove_disallowed_post_types()
S
59 6 15
get_provider_from_query_string()
S
58 6 14
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
add_post_type_to_rows()
S
56 4 19
get_gutenberg_cell_content()
S
54 4 19
user_can_delete_post_type()
S
60 4 14
rename_array_keys()
S
60 4 14
get_enabled_post_types()
S
59 4 14
create_rest_request()
S
60 4 13
array_remove_empty()
S
63 4 11
verify_sheet_permissions_from_request()
S
62 4 11
can_rescan_db_fields()
S
65 4 8
get_post_type_taxonomies_single_data()
S
64 4 10
get_attachment_id_from_url()
S
57 3 15
sanitize_table_key()
S
65 4 9
get_post_type_taxonomies()
S
63 4 10
get_post_types_without_own_sheet()
S
61 3 12
array_to_dot()
S
61 3 12
array_flatten()
S
63 3 11
remove_unlisted_keys()
S
65 3 9
get_plugin_mode()
S
74 3 4
get_unfiltered_provider_columns()
S
63 3 10
prepare_raw_value_for_display()
S
69 3 6
is_plugin_active()
S
64 3 10
is_rest_request()
S
72 3 4
is_editor_page()
S
67 3 7
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
merge_arrays_by_value()
S
61 2 13
increase_counter()
S
61 2 12
get_all_post_types_names()
S
63 2 11
remove_array_item_by_value()
S
69 2 7
get_post_type_label()
S
72 2 5
remove_all_post_actions()
S
71 2 5
init()
S
78 2 3
get_instance()
S
70 2 7
post_type_array()
S
72 2 6
get_data_provider_class_key()
S
67 2 7
columns_cache_expiration()
S
69 2 7
sanitize_integer()
S
67 2 8
verify_nonce_from_request()
S
77 2 3
get_nonce_from_request()
S
78 2 3
get_job_id_from_request()
S
78 2 3
get_provider_columns()
S
68 2 7
get_provider_editor()
S
74 2 4
get_current_provider()
S
71 2 6
get_term_separator()
S
71 2 5
is_settings_page()
S
78 2 3
get_current_user_id()
S
68 2 8
get_edit_spreadsheet_capability()
S
66 2 9
get_view_spreadsheet_capability()
S
66 2 9
get_columns_limit()
S
73 2 4
get_uuid()
S
62 1 13
has_paid_addon_active()
S
64 1 11
get_post_types_with_own_sheet()
S
70 1 5
__construct()
S
91 1 2
is_post_type_allowed()
S
75 1 4
get_allowed_post_types()
S
73 1 5
get_tinymce_cell_content()
S
75 1 4
get_editor_url()
S
75 1 4
set_current_user()
S
80 1 3
user_can_manage_options()
S
80 1 3
get_data_provider()
S
72 1 5
get_settings_page_url()
S
77 1 3
get_files_list()
S
75 1 4
_get_post_id_from_search()
S
75 1 4
get_random_date_in_range()
S
75 1 4
convert_key_to_label()
S
76 1 3
current_user_can()
S
78 1 3
is_plain_text_request()
S
79 1 3