Code Analysis: Customize Posts 0.9.1

Function Rating Maintainability Complexity Lines of code
WP_Customize_Post_Setting::sanitize()
D
22
60 155
WP_Customize_Posts_Preview::filter_get_pages_to_preview_settings()
D
22
48 184
Edit_Post_Preview::update_post_changeset()
C
34 23 86
WP_Customize_Posts_Preview::filter_posts_request_to_inject_customized_state()
B
30 18 125
WP_Customize_Posts_Preview::_inject_meta_sql_customized_derived_tables()
B
34 18 91
WP_Customize_Posts::ajax_posts_select2_query()
B
38 18 65
WP_Customize_Posts_Preview::filter_get_post_meta_to_preview()
B
41 18 59
WP_Customize_Posts::transition_customize_draft()
B
41 18 53
WP_Customize_Post_Setting::update()
A
42 14 53
WP_Customize_Posts_Preview::amend_partials_response_with_rest_resources()
A
42 14 51
WP_Customize_Posts::ajax_fetch_settings()
A
43 13 49
WP_Customize_Posts_Preview::capture_sanitized_post_setting_values_for_nav_menu_items()
A
46 13 38
WP_Customize_Posts::ensure_static_front_page_constructs_registered()
A
40 11 65
WP_Customize_Postmeta_Setting::__construct()
A
48 13 29
WP_Customize_Posts::ajax_insert_auto_draft_post()
A
42 11 53
Customize_Posts_Plugin::register_scripts()
A
33 6 126
WP_Customize_Postmeta_Setting::sanitize()
A
47 12 33
WP_Customize_Post_Setting::override_post_data()
A
46 11 40
WP_Customize_Posts_Preview::filter_get_meta_sql_to_inject_customized_state()
A
47 11 35
WP_Customize_Posts_Preview::filter_the_title()
A
46 10 41
WP_Customize_Post_Field_Partial::render_comment_status()
A
51 11 23
WP_Customize_Posts::filter_customize_dynamic_setting_args()
A
49 10 33
WP_Customize_Posts::enqueue_scripts()
A
37 7 77
WP_Customize_Posts::get_settings()
A
47 9 35
WP_Customize_Posts_Preview::get_post_field_partial_schema()
A
39 6 77
Edit_Post_Preview::get_previewed_post()
A
55 10 17
WP_Customize_Postmeta_Setting::update()
A
48 9 32
WP_Customize_Posts::filter_customize_save_response_to_export_saved_values()
A
52 9 23
WP_Customize_Posts::sanitize_nav_menus_created_posts()
A
54 9 21
WP_Customize_Posts_Preview::export_preview_data()
A
44 7 44
Customize_Posts_Plugin::cleanup_autodraft_on_changeset_delete()
A
49 8 27
WP_Customize_Featured_Image_Controller::handle_ajax_set_post_thumbnail()
A
50 8 27
WP_Customize_Posts::auth_post_meta_callback()
A
53 8 24
WP_Customize_Post_Field_Partial::render_post_author()
A
55 8 16
WP_Customize_Postmeta_Controller::register_meta()
S
50 7 27
WP_Customize_Posts::ajax_search_available_items()
S
51 7 26
WP_Customize_Postmeta_Controller::__construct()
S
52 7 24
WP_Customize_Post_Setting::__construct()
S
53 7 22
WP_Customize_Posts::ajax_load_available_items()
S
53 7 21
WP_Customize_Posts::configure_builtin_post_types()
S
60 7 12
WP_Customize_Posts::get_setting_params()
S
51 6 27
WP_Customize_Post_Setting::normalize_post_data()
S
52 6 25
WP_Customize_Posts::replace_nav_menus_hooks()
S
52 6 23
WP_Customize_Posts_Preview::filter_customize_dynamic_partial_args()
S
54 6 21
Customize_Posts_Plugin::load_support_classes()
S
54 6 20
WP_Customize_Post_Field_Partial::__construct()
S
54 6 20
WP_Customize_Posts_Preview::filter_get_post_status()
S
56 6 19
WP_Customize_Featured_Image_Controller::sanitize_setting()
S
57 6 16
WP_Customize_Posts_Preview::filter_nav_menu_item_to_set_post_dependent_props()
S
58 6 16
Edit_Post_Preview::get_preview_post_link()
S
58 6 14
WP_Customize_Post_Date_Control::content_template()
S
41 2 74
WP_Customize_Posts::register_post_type_meta()
S
50 5 28
Customize_Posts_Twenty_Eleven_Support::biography_render_callback()
S
51 5 28
Edit_Post_Preview::enqueue_admin_scripts()
S
50 5 26
WP_Customize_Post_Field_Partial::render_post_title()
S
52 5 24
WP_Customize_Featured_Image_Controller::handle_save_post_thumbnail_id()
S
55 5 19
WP_Customize_Post_Setting::augment_gmt_dates()
S
57 5 18
WP_Customize_Posts_Preview::compare_posts_for_get_pages()
S
58 5 16
WP_Customize_Posts::filter_customize_dynamic_setting_class()
S
59 5 15
WP_Customize_Featured_Image_Controller::filter_customize_dynamic_partial_args()
S
57 5 15
WP_Customize_Posts::preview_customize_draft_post_ids()
S
58 5 15
Edit_Post_Preview::remove_static_controls_and_sections()
S
59 5 15
WP_Customize_Dynamic_Control::content_template()
S
48 1 75
WP_Customize_Posts::preview_customize_draft()
S
59 5 14
Customize_Posts_Twenty_Twelve_Support::biography_render_callback()
S
51 4 29
WP_Customize_Posts::add_support()
S
61 5 12
WP_Customize_Posts::render_templates()
S
44 1 72
WP_Customize_Featured_Image_Controller::sanitize_value()
S
62 5 11
Customize_Posts_Twenty_Thirteen_Support::biography_render_callback()
S
61 5 11
WP_Customize_Posts::enqueue_select2_locale_script()
S
51 4 25
Customize_Posts_Plugin::register_styles()
S
52 4 23
Customize_Posts_Twenty_Sixteen_Support::content_render_callback()
S
53 4 21
WP_Customize_Post_Setting::value()
S
58 4 16
WP_Customize_Posts::filter_out_nav_menus_created_posts_for_customized_posts()
S
60 4 15
WP_Customize_Posts::current_user_can_edit_post()
S
60 4 14
Customize_Posts_Twenty_Ten_Support::biography_render_callback()
S
52 3 28
WP_Customize_Post_Field_Partial::render_ping_status()
S
61 4 12
WP_Customize_Posts::__construct()
S
44 2 42
WP_Customize_Posts::insert_auto_draft_post()
S
51 3 27
WP_Customize_Posts_Panel::__construct()
S
61 4 12
WP_Customize_Post_Section::__construct()
S
62 4 11
Edit_Post_Preview::filter_customize_loaded_component()
S
62 4 11
Customize_Posts_Plugin::__construct()
S
50 3 26
Customize_Posts_Twenty_Fifteen_Support::biography_render_callback()
S
62 4 11
Customize_Posts_Twenty_Sixteen_Support::biography_render_callback()
S
62 4 11
WP_Customize_Posts::register_constructs()
S
52 3 25
WP_Customize_Posts::get_author_choices()
S
54 3 22
WP_Customize_Post_Discussion_Fields_Control::content_template()
S
50 1 50
WP_Customize_Posts::get_select2_item_result()
S
54 3 20
WP_Customize_Featured_Image_Controller::filter_admin_post_thumbnail_html()
S
57 3 16
Edit_Post_Preview::enqueue_customize_scripts()
S
58 3 16
WP_Customize_Postmeta_Controller::enqueue_admin_scripts()
S
72 4 5
WP_Customize_Post_Setting::is_post_data_conflicted()
S
63 4 10
WP_Customize_Posts::post_link_draft()
S
67 4 7
WP_Customize_Postmeta_Setting::value()
S
59 3 15
Customize_Posts_Plugin::grant_customize_capability()
S
68 4 6
WP_Customize_Posts_Preview::ensure_page_for_posts_preview()
S
68 4 6
WP_Customize_Posts_Preview::filter_the_posts_to_preview_settings()
S
63 4 10
WP_Customize_Post_Field_Partial::render_callback()
S
58 3 15
WP_Customize_Page_Template_Controller::sanitize_setting()
S
63 4 9
Customize_Posts_Plugin::add_admin_bar_customize_link_queried_object_autofocus()
S
59 3 14
WP_Customize_Posts::get_post_types()
S
59 3 14
WP_Customize_Posts_Preview::preview_setup_postdata()
S
60 3 14
WP_Customize_Posts_Panel::print_template()
S
51 1 44
WP_Customize_Postmeta_Setting::preview()
S
62 3 12
Customize_Posts_Twenty_Seventeen_Support::print_preview_style()
S
62 2 20
WP_Customize_Posts_Preview::add_preview_filters()
S
54 2 19
WP_Customize_Post_Status_Control::content_template()
S
54 1 33
WP_Customize_Posts::maybe_do_admin_print_footer_scripts()
S
68 3 8
WP_Customize_Post_Date_Control::__construct()
S
67 3 7
WP_Customize_Post_Status_Control::__construct()
S
67 3 7
WP_Customize_Posts_Preview::filter_preview_comments_open()
S
64 3 9
WP_Customize_Posts_Preview::filter_get_edit_post_link()
S
65 3 10
WP_Customize_Posts_Preview::filter_preview_pings_open()
S
64 3 9
WP_Customize_Posts_Preview::filter_customize_dynamic_partial_class()
S
68 3 7
WP_Customize_Featured_Image_Controller::render_post_thumbnail_partial()
S
59 2 15
WP_Customize_Posts::filter_customize_save_response_for_conflicts()
S
65 3 9
WP_Customize_Posts::register_post_type_meta_settings()
S
64 3 10
WP_Customize_Posts::get_date_month_choices()
S
58 2 15
WP_Customize_Post_Editor_Control::__construct()
S
67 3 7
WP_Customize_Posts_Preview::filter_pristine_early_nav_menu_item()
S
69 3 6
WP_Customize_Posts::get_post_status_choices()
S
52 1 29
WP_Customize_Page_Template_Controller::get_page_template_choices()
S
60 2 14
WP_Customize_Posts::filter_map_meta_cap()
S
60 2 13
WP_Customize_Posts::format_gmt_offset()
S
61 2 13
WP_Customize_Posts::render_editor()
S
54 1 25
WP_Customize_Posts_Preview::filter_get_avatar()
S
56 1 19
WP_Customize_Featured_Image_Controller::enqueue_customize_pane_scripts()
S
58 1 16
WP_Customize_Posts_Preview::customize_preview_init()
S
56 1 16
WP_Customize_Featured_Image_Controller::filter_post_thumbnail_html()
S
58 1 15
WP_Customize_Post_Section::json()
S
66 2 8
WP_Customize_Posts::enqueue_editor()
S
67 2 7
Customize_Posts_Plugin::filter_customize_loaded_components()
S
68 2 7
Edit_Post_Preview::can_load_customize_post_preview()
S
77 2 3
WP_Customize_Posts_Preview::filter_the_posts_to_tally_orderby_keys()
S
67 2 8
WP_Customize_Posts_Preview::filter_the_posts_to_tally_previewed_posts()
S
71 2 6
WP_Customize_Post_Setting::preview()
S
66 2 9
WP_Customize_Featured_Image_Controller::js_value()
S
68 2 8
WP_Customize_Posts_Preview::prepare_query_preview()
S
67 2 8
Customize_Posts_Support::init()
S
74 2 5
WP_Customize_Posts::force_empty_post_dates()
S
61 1 14
WP_Customize_Post_Editor_Control::content_template()
S
63 1 14
WP_Customize_Featured_Image_Controller::enqueue_customize_preview_scripts()
S
62 1 12
Customize_Posts_Plugin::register_customize_draft()
S
64 1 11
Customize_Posts_Twenty_Ten_Support::filter_partial_schema()
S
62 1 11
WP_Customize_Page_Template_Controller::enqueue_customize_pane_scripts()
S
63 1 11
WP_Customize_Post_Field_Partial::render_post_date()
S
72 1 5
WP_Customize_Post_Status_Control::enqueue()
S
81 1 3
WP_Customize_Posts_Preview::amend_with_queried_post_ids()
S
75 1 4
Customize_Posts_Twenty_Ten_Support::add_support()
S
79 1 3
WP_Customize_Post_Field_Partial::json()
S
66 1 8
WP_Customize_Featured_Image_Controller::enqueue_edit_post_scripts()
S
81 1 3
WP_Customize_Dynamic_Control::json()
S
68 1 7
Customize_Posts_Twenty_Seventeen_Support::filter_partial_schema()
S
76 1 4
WP_Customize_Posts::add_customize_nonce()
S
76 1 4
Customize_Posts_Twenty_Twelve_Support::filter_partial_schema()
S
65 1 9
Customize_Posts_Support::add_support()
S
98 1 1
WP_Customize_Posts_Preview::remove_filter_pristine_early_nav_menu_item()
S
79 1 3
Edit_Post_Preview::make_auto_draft_status_previewable()
S
76 1 4
WP_Customize_Postmeta_Controller::sanitize_setting()
S
77 1 4
Customize_Posts_Plugin_Support::is_support_needed()
S
78 1 3
WP_Customize_Postmeta_Controller::validate_setting()
S
76 1 4
WP_Customize_Postmeta_Controller::enqueue_customize_pane_scripts()
S
100 1 0
WP_Customize_Post_Date_Control::enqueue()
S
81 1 3
WP_Customize_Posts_Panel::json()
S
73 1 5
WP_Customize_Page_Template_Controller::sanitize_value()
S
68 1 7
WP_Customize_Postmeta_Controller::customize_preview_init()
S
79 1 3
Customize_Posts_Twenty_Thirteen_Support::add_support()
S
79 1 3
WP_Customize_Post_Editor_Control::enqueue()
S
81 1 3
Customize_Posts_Plugin::has_required_core_version()
S
74 1 4
WP_Customize_Posts::sanitize_post_id()
S
77 1 4
WP_Customize_Posts_Preview::enqueue_scripts()
S
77 1 4
Customize_Posts_Direct_Manipulation_Support::add_support()
S
79 1 3
WP_Customize_Post_Setting::get_post_setting_id()
S
79 1 3
Customize_Posts_Twenty_Seventeen_Support::add_support()
S
74 1 4
WP_Customize_Posts::has_published_pages()
S
70 1 6
Customize_Posts_Direct_Manipulation_Support::filter_disabled_modules()
S
77 1 4
WP_Customize_Posts_Preview::__construct()
S
66 1 8
WP_Customize_Postmeta_Controller::enqueue_customize_preview_scripts()
S
98 1 1
WP_Customize_Post_Field_Partial::render_post_content()
S
68 1 7
Customize_Posts_Support::is_support_needed()
S
100 1 0
Customize_Posts_Plugin::add_posts_to_customize_loaded_components()
S
77 1 4
WP_Customize_Dynamic_Control::render_content()
S
98 1 1
Customize_Posts_Theme_Support::is_support_needed()
S
80 1 3
WP_Customize_Page_Template_Controller::enqueue_edit_post_scripts()
S
81 1 3
WP_Customize_Featured_Image_Controller::set_admin_post_thumbnail_id()
S
73 1 5
WP_Customize_Post_Setting::get_post_data()
S
76 1 4
Edit_Post_Preview::__construct()
S
64 1 9
WP_Customize_Posts_Preview::handle_the_post_to_tally_previewed_post()
S
80 1 3
WP_Customize_Postmeta_Controller::sanitize_value()
S
82 1 3
Customize_Posts_Twenty_Thirteen_Support::filter_partial_schema()
S
65 1 9
WP_Customize_Post_Field_Partial::render_post_excerpt()
S
70 1 6
Customize_Posts_Twenty_Twelve_Support::add_support()
S
79 1 3
Customize_Posts_Twenty_Fifteen_Support::filter_partial_schema()
S
65 1 9
WP_Customize_Postmeta_Controller::enqueue_edit_post_scripts()
S
98 1 1
Customize_Posts_Support::__construct()
S
81 1 3
Customize_Posts_Plugin::show_core_version_dependency_failure()
S
72 1 7
Customize_Posts_Twenty_Eleven_Support::filter_partial_schema()
S
64 1 10
WP_Customize_Post_Setting::js_value()
S
73 1 5
Customize_Posts_Twenty_Sixteen_Support::add_support()
S
79 1 3
WP_Customize_Posts::register_meta()
S
80 1 3
WP_Customize_Postmeta_Controller::js_value()
S
77 1 4
WP_Customize_Featured_Image_Controller::override_default_edit_post_screen_functionality()
S
69 1 6
WP_Customize_Postmeta_Setting::get_post_meta_setting_id()
S
78 1 3
WP_Customize_Featured_Image_Controller::setup_selective_refresh()
S
74 1 4
Customize_Posts_Twenty_Sixteen_Support::filter_partial_schema()
S
64 1 10
WP_Customize_Featured_Image_Controller::__construct()
S
72 1 5
Customize_Posts_Twenty_Eleven_Support::add_support()
S
79 1 3
Customize_Posts_Twenty_Fifteen_Support::add_support()
S
79 1 3