Code Analysis: Atlas Content Modeler 0.26.2

Function Rating Maintainability Complexity Lines of code
dispatch_update_content_model_field()
D
22
55 191
WPE\AtlasContentModeler\FormEditingExperience::save_post()
D
27
38 146
register_content_fields_with_graphql()
C
35 30 82
WPE\AtlasContentModeler\WP_CLI\Blueprint::import()
C
30 27 122
sanitize_field()
C
36 23 87
save_taxonomy()
B
35 19 89
WPE\AtlasContentModeler\WP_CLI\Blueprint::export()
A
36 13 82
WPE\AtlasContentModeler\FormEditingExperience::enqueue_assets()
A
39 14 64
handle_content_fields_for_rest_api()
A
40 14 57
validate_model_field_data()
A
42 14 52
update_model()
A
41 13 61
update_0_6_1()
A
39 11 71
create_model()
A
40 11 66
import_terms()
A
43 12 51
map_html_field_type_to_graphql_field_type()
A
53 12 24
create_models()
A
43 10 51
delete_model()
A
45 10 42
save_blueprint_to_upload_dir()
A
43 9 53
register_relationship_connection()
A
40 8 67
collect_media()
A
45 9 44
is_field_repeatable()
A
50 10 28
append_reverse_relationship_fields()
A
51 10 26
zip_blueprint()
A
43 8 54
validate_media_field()
A
46 8 41
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::check_cardinality()
A
52 9 26
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::format_segments()
A
53 9 23
insert_model_entry()
A
47 8 35
register_acm_fields_as_mutation_inputs()
A
49 8 29
WPE\AtlasContentModeler\FormEditingExperience::sync_title_field_to_posts_table()
A
51 8 25
graphql_data_is_private()
A
52 8 25
WPE\AtlasContentModeler\WP_CLI\Model::is_new_model_id_valid()
A
48 7 39
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::generate_join_clause()
A
52 8 23
generate_custom_post_type_args()
A
43 6 50
WPE\AtlasContentModeler\FormEditingExperience::remove_post_type_supports()
A
55 8 19
unzip_blueprint()
A
48 7 34
register_relationships()
S
50 7 30
validate_min()
S
60 8 12
validate_max()
S
60 8 12
collect_post_tags()
S
52 7 27
get_labels()
S
50 7 25
dispatch_get_validate_unique_email()
S
47 6 39
check_versions()
S
45 5 52
WPE\AtlasContentModeler\WP_CLI\Reset::delete_posts()
S
54 7 22
content_model_reverse_slug_exists()
S
54 7 21
dispatch_patch_content_model_fields()
S
48 6 34
update_acm_fields_during_mutations()
S
55 7 19
enqueue_settings_assets()
S
43 5 48
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::add_relationship()
S
50 6 32
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\WPQueryIntegration::posts_orderby()
S
57 7 17
WPE\AtlasContentModeler\ContentConnect\Registry::get_post_to_post_relationship()
S
58 7 16
maybe_override_submenu_file()
S
58 7 15
WPE\AtlasContentModeler\WP_CLI\Model::change_id()
S
49 6 30
atlas_content_modeler_loader()
S
45 5 43
get_model_args()
S
51 6 27
validate_email_field()
S
52 6 27
get_remote_blueprint()
S
48 5 38
WPE\AtlasContentModeler\FormEditingExperience::filter_post_titles()
S
52 6 23
WPE\AtlasContentModeler\WP_CLI\Reset::delete_media()
S
54 6 22
register_content_types()
S
54 6 21
collect_post_meta()
S
54 6 21
WPE\AtlasContentModeler\WP_CLI\Model::replace_relationship_references()
S
55 6 20
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::generate_where_clause()
S
54 6 20
content_model_multi_option_exists()
S
59 6 16
content_model_multi_option_slug_exists()
S
59 6 16
import_media()
S
49 5 31
validate_attachment_file_type()
S
58 6 14
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::delete_relationship()
S
52 5 28
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::get_related_object_ids()
S
51 5 26
import_post_meta()
S
53 5 26
validate_date_field()
S
53 5 26
tag_posts()
S
52 5 25
validate_number_field()
S
49 4 36
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::__construct()
S
55 5 18
content_model_field_exists()
S
58 5 16
model_property_changed()
S
60 5 13
dispatch_delete_content_model_field()
S
51 4 27
WPE\AtlasContentModeler\FormEditingExperience::maybe_add_location_callback()
S
62 5 11
validate_text_field()
S
52 4 26
cleanup_detached_relationship_fields()
S
62 5 11
validate_number_min_max_step()
S
54 4 23
WPE\AtlasContentModeler\WP_CLI\Reset::get_media_ids()
S
55 4 21
import_taxonomies()
S
55 4 21
generate_custom_post_type_labels()
S
47 3 35
WPE\AtlasContentModeler\ContentConnect\API\Search::process_search()
S
55 4 20
write_manifest()
S
55 4 20
update_plugin()
S
56 4 18
get_registered_content_types()
S
57 4 17
get_relationship()
S
57 4 16
collect_relationships()
S
58 4 16
validate_not_empty()
S
68 5 6
get_field()
S
59 4 15
validate_array_of()
S
59 4 15
is_protected_meta()
S
59 4 15
WPE\AtlasContentModeler\FormEditingExperience::should_show_feedback_banner()
S
65 5 7
WPE\AtlasContentModeler\WP_CLI\Reset::delete_taxonomy_terms()
S
59 4 15
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::replace_relationships()
S
59 4 14
graphql_data_is_private()
S
60 4 13
dispatch_update_content_model()
S
52 3 27
WPE\AtlasContentModeler\ContentConnect\API\Search::search_posts()
S
52 3 27
validate_multiple_choice_field()
S
61 4 11
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::has_valid_segments()
S
64 4 11
validate_relationship_field()
S
53 3 25
copy_media()
S
52 3 25
get_registered_field_ids()
S
54 3 25
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::save_sort_data()
S
53 3 24
validate_row_count_within_repeatable_limits()
S
56 3 22
get_acm_temp_dir()
S
55 3 21
get_registered_root_fields()
S
56 3 21
collect_posts()
S
56 3 19
register_meta_types()
S
57 3 18
register_rest_routes()
S
48 1 46
WPE\AtlasContentModeler\FormEditingExperience::save_relationship_field()
S
58 3 16
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_column_names_query()
S
57 3 16
is_field_featured_image()
S
66 4 8
validate_in_array()
S
64 4 9
get_entry_title_field()
S
67 4 8
validate_step()
S
68 4 7
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::can_relate_post_ids()
S
63 4 10
WPE\AtlasContentModeler\ContentRegistration\REST_Posts_Controller::check_read_permission()
S
65 4 8
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::upgrade()
S
59 3 15
set_defaults()
S
59 3 14
import_posts()
S
60 3 14
order_fields()
S
60 3 14
register_admin_menu_page()
S
48 1 43
acm_content_connect_autoloader()
S
61 3 13
WPE\AtlasContentModeler\WP_CLI\Model::update_taxonomy_ids()
S
61 3 13
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::get_relationship_for_segment()
S
61 3 12
update_registered_content_type()
S
62 3 12
acm_content_connect_autoload()
S
62 3 11
WPE\AtlasContentModeler\FormEditingExperience::set_post_attributes()
S
63 3 11
WPE\AtlasContentModeler\ContentConnect\API\Search::check_permission()
S
63 3 11
WPE\AtlasContentModeler\FormEditingExperience::render_app_container()
S
63 3 11
WPE\AtlasContentModeler\FormEditingExperience::move_meta_boxes()
S
54 2 25
get_props()
S
54 2 22
acm_deprecation_notice()
S
58 2 20
dispatch_update_taxonomy()
S
56 2 19
import_acm_relationships()
S
56 2 19
dispatch_create_content_model()
S
57 2 18
dispatch_get_content_model()
S
57 2 18
atlas_content_modeler_rest_init()
S
58 2 18
dispatch_delete_taxonomy()
S
57 2 18
dispatch_delete_content_model()
S
58 2 16
trim_space()
S
65 3 9
validate_post_exists()
S
68 3 7
WPE\AtlasContentModeler\WP_Error::copy_errors()
S
67 3 8
WPE\AtlasContentModeler\Validation_Exception::as_wp_error()
S
64 3 10
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\WPQueryIntegration::posts_groupby()
S
68 3 7
WPE\AtlasContentModeler\FormEditingExperience::add_related_posts_to_rest_responses()
S
59 2 15
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\WPQueryIntegration::posts_where()
S
66 3 8
validate_text_min_max()
S
63 3 10
WPE\AtlasContentModeler\ContentConnect\Relationships\Relationship::__construct()
S
51 1 30
validate_array_key_exists()
S
69 3 6
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::is_valid_segment()
S
70 3 6
validate_date()
S
67 3 7
WPE\AtlasContentModeler\FormEditingExperience::append_error_to_location()
S
66 3 8
validate_post_type()
S
69 3 6
get_graphql_enabled_post_types()
S
65 3 9
validate_number()
S
69 3 6
get_field_from_slug()
S
64 3 10
validate_integer()
S
67 3 7
validate_decimal()
S
67 3 7
validate_email()
S
69 3 6
sanitize_fields()
S
59 2 15
validate_array()
S
69 3 6
is_field_id_exception()
S
66 3 8
validate_string()
S
69 3 6
get_manifest()
S
60 2 14
WPE\AtlasContentModeler\WP_CLI\Reset::get_post_ids()
S
60 2 14
WPE\AtlasContentModeler\FormEditingExperience::get_relationship_field()
S
61 2 13
is_acm_media_field_meta()
S
60 2 13
dispatch_put_content_models()
S
62 2 13
dispatch_dismiss_feedback_banner()
S
63 2 11
register_rest_routes()
S
54 1 26
register_rest_routes()
S
55 1 24
register_rest_routes()
S
55 1 24
WPE\AtlasContentModeler\FormEditingExperience::bootstrap()
S
52 1 23
generate_meta()
S
54 1 22
WPE\AtlasContentModeler\WP_CLI\Reset::log_stats()
S
55 1 18
WPE\AtlasContentModeler\WP_CLI\Reset::__invoke()
S
56 1 18
cleanup_detached_relationship_references()
S
59 1 16
update_model_entry()
S
65 2 8
WPE\AtlasContentModeler\FormEditingExperience::remove_thumbnail_meta_box()
S
70 2 6
WPE\AtlasContentModeler\WP_Error::add_multiple()
S
72 2 5
replace_relationship()
S
69 2 7
WPE\AtlasContentModeler\WP_CLI\Reset::delete_models()
S
70 2 6
collect_options()
S
69 2 7
add_relationship()
S
69 2 7
validate_post_is_attachment()
S
74 2 4
WPE\AtlasContentModeler\WP_CLI\Model::update_model_id()
S
64 2 10
WPE\AtlasContentModeler\Validation_Exception::add_message()
S
69 2 7
should_show_feedback_banner()
S
73 2 4
import_options()
S
73 2 5
WPE\AtlasContentModeler\FormEditingExperience::feedback_notice_handler()
S
73 2 5
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_values_query()
S
65 2 8
validate_number_type()
S
69 2 7
WPE\AtlasContentModeler\ContentConnect\Plugin::get_table()
S
71 2 6
WPE\AtlasContentModeler\WP_CLI\Reset::delete_taxonomies()
S
70 2 6
is_field_required()
S
77 2 3
WPE\AtlasContentModeler\FormEditingExperience::disable_block_editor()
S
71 2 6
WPE\AtlasContentModeler\ContentConnect\Plugin::instance()
S
70 2 7
is_allowed_field_id()
S
70 2 6
get_model()
S
69 2 7
get_blueprint()
S
71 2 6
WPE\AtlasContentModeler\ContentConnect\Registry::post_to_post_relationship_exists()
S
68 2 7
register()
S
68 2 7
get_connection_name()
S
66 2 8
WPE\AtlasContentModeler\Validation_Exception::add_messages()
S
73 2 5
update_registered_content_types()
S
67 2 8
WPE\AtlasContentModeler\WP_CLI\Reset::delete_relationships()
S
64 2 9
WPE\AtlasContentModeler\FormEditingExperience::support_title_in_api_responses()
S
73 2 5
WPE\AtlasContentModeler\FormEditingExperience::add_published_query_arg_to_location()
S
65 2 9
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_column_updates_query()
S
63 2 10
WPE\AtlasContentModeler\WP_Error::add_at_index()
S
67 2 7
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::__construct()
S
72 2 5
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\WPQueryIntegration::posts_join()
S
71 2 6
get_local_blueprint()
S
66 2 9
delete_folder()
S
67 2 8
WPE\AtlasContentModeler\FormEditingExperience::display_save_post_errors()
S
65 2 10
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\RelationshipQuery::parse_query()
S
69 2 7
WPE\AtlasContentModeler\ContentConnect\Registry::get_post_to_post_relationship_by_key()
S
71 2 6
WPE\AtlasContentModeler\ContentConnect\Registry::define_post_to_post()
S
62 2 10
WPE\AtlasContentModeler\WP_CLI\Reset::__construct()
S
60 1 14
register_settings_fields()
S
62 1 14
register_rest_routes()
S
62 1 13
WPE\AtlasContentModeler\FormEditingExperience::has_relationship_references()
S
61 1 13
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::replace_bulk()
S
60 1 13
register_rest_routes()
S
62 1 13
WPE\AtlasContentModeler\ContentConnect\Tables\PostToPost::get_schema()
S
64 1 13
register_plugin_settings()
S
61 1 13
register_rest_routes()
S
62 1 13
WPE\AtlasContentModeler\ContentConnect\Plugin::setup()
S
61 1 12
enqueue_shared_assets()
S
63 1 11
WPE\AtlasContentModeler\ContentConnect\Relationships\DeletedItems::deleted_post()
S
64 1 11
WPE\AtlasContentModeler\ContentConnect\API\Search::register_endpoint()
S
64 1 11
WPE\AtlasContentModeler\ContentConnect\Relationships\DeletedItems::setup()
S
79 1 3
WPE\AtlasContentModeler\ContentConnect\Tables\PostToPost::get_table_name()
S
80 1 3
render_admin_menu_page()
S
81 1 3
WPE\AtlasContentModeler\ContentConnect\API\Search::localize_endpoints()
S
71 1 5
root_type_exists()
S
75 1 4
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_schema_version()
S
100 1 0
WPE\AtlasContentModeler\FormEditingExperience::update_post()
S
71 1 5
WPE\AtlasContentModeler\ContentConnect\Tables\PostToPost::get_schema_version()
S
82 1 3
get_registry()
S
82 1 3
WPE\AtlasContentModeler\ContentConnect\Plugin::register_tables()
S
76 1 4
WPE\AtlasContentModeler\ContentConnect\Plugin::get_registry()
S
82 1 3
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::delete()
S
75 1 4
get_field_type_from_slug()
S
74 1 4
WPE\AtlasContentModeler\ContentConnect\Relationships\PostToPost::setup()
S
98 1 1
array_remove_by_keys()
S
72 1 6
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::setup()
S
79 1 3
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_schema()
S
100 1 0
WPE\AtlasContentModeler\FormEditingExperience::render_feedback_notice()
S
80 1 3
WPE\AtlasContentModeler\ContentConnect\QueryIntegration\WPQueryIntegration::setup()
S
70 1 6
WPE\AtlasContentModeler\ContentConnect\Registry::get_relationship_key()
S
65 1 9
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_schema_option_name()
S
80 1 3
WPE\AtlasContentModeler\FormEditingExperience::current_screen()
S
81 1 3
WPE\AtlasContentModeler\WP_CLI\Model::change_post_type()
S
65 1 10
get_acm_taxonomies()
S
80 1 3
camelcase()
S
67 1 7
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_table_name()
S
100 1 0
WPE\AtlasContentModeler\ContentConnect\API\Search::setup()
S
75 1 4
get_related_ids_by_name()
S
65 1 8
get_fields_by_type()
S
64 1 10
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_db()
S
78 1 4
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::replace()
S
75 1 4
WPE\AtlasContentModeler\ContentConnect\Relationships\Relationship::setup()
S
100 1 0
shape_field_args()
S
64 1 10
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::get_installed_schema_version()
S
80 1 3
reserved_post_types()
S
65 1 9
WPE\AtlasContentModeler\ContentConnect\Registry::setup()
S
98 1 1
get_attributes_for_field_type()
S
75 1 4
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::generate_table_name()
S
73 1 5
taxonomy_property_changed()
S
74 1 4
WPE\AtlasContentModeler\ContentConnect\Plugin::wp_init()
S
80 1 3
WPE\AtlasContentModeler\ContentConnect\Tables\BaseTable::should_upgrade()
S
70 1 7
array_extract_by_keys()
S
72 1 6
acm_usage_tracking_enabled()
S
79 1 3
WPE\AtlasContentModeler\WP_CLI\Model::__construct()
S
71 1 6
WPE\AtlasContentModeler\FormEditingExperience::__construct()
S
82 1 3
validate_richtext_field()
S
80 1 3
WPE\AtlasContentModeler\WP_CLI\Reset::get_media_fields()
S
64 1 10
WPE\AtlasContentModeler\ContentConnect\Plugin::__construct()
S
75 1 4