Code Analysis: Customize Snapshots 0.7.0

Function Rating Maintainability Complexity Lines of code
CustomizeSnapshots\Post_Type::render_data_metabox()
B
34 17 83
CustomizeSnapshots\Post_Type::save()
B
40 17 59
CustomizeSnapshots\Customize_Snapshot_Manager::handle_frontend_changeset_publish()
B
36 15 78
CustomizeSnapshots\Customize_Snapshot_Manager::clean_up_nav_menus_created_auto_drafts()
A
43 15 43
CustomizeSnapshots\Post_Type::filter_out_settings_if_removed_in_metabox()
A
47 12 33
CustomizeSnapshots\Customize_Snapshot_Manager::remove_all_non_snapshot_admin_bar_links()
A
49 12 28
CustomizeSnapshots\Post_Type::set_customizer_state_query_vars()
A
50 11 25
CustomizeSnapshots\Post_Type::merge_snapshots()
A
42 8 53
CustomizeSnapshots\Customize_Snapshot_Manager_Compat::enqueue_controls_scripts()
A
43 8 45
CustomizeSnapshots\Customize_Snapshot_Manager::prepare_snapshot_post_content_for_publish()
A
50 9 29
CustomizeSnapshots\Post_Type::filter_user_has_cap()
A
52 9 23
CustomizeSnapshots\Post_Type::get_post_content()
A
55 9 19
CustomizeSnapshots\Plugin_Base::add_doc_hooks()
A
49 8 28
CustomizeSnapshots\Customize_Snapshot_Manager_Compat::add_edit_box_template()
A
36 2 117
CustomizeSnapshots\Post_Type::suspend_kses_for_snapshot_revision_restore()
A
52 8 25
CustomizeSnapshots\Plugin_Base::autoload()
S
52 7 25
CustomizeSnapshots\Customize_Snapshot_Manager::enqueue_controls_scripts()
S
50 6 29
CustomizeSnapshots\Post_Type::filter_post_row_actions()
S
46 5 41
CustomizeSnapshots\Post_Type::start_pretending_customize_save_ajax_action()
S
60 7 11
CustomizeSnapshots\Plugin_Base::remove_doc_hooks()
S
54 6 20
CustomizeSnapshots\Customize_Snapshot_Manager_Compat::override_post_date_default_data()
S
57 6 18
CustomizeSnapshots\Customize_Snapshot_Manager::replace_customize_link()
S
49 5 33
CustomizeSnapshots\Post_Type::show_publish_error_admin_notice()
S
57 6 17
CustomizeSnapshots\Customize_Snapshot_Manager_Compat::render_templates()
S
41 1 83
CustomizeSnapshots\Post_Type::handle_snapshot_merge()
S
54 5 21
CustomizeSnapshots\Snapshot_REST_API_Controller::parse_author_list()
S
56 5 19
CustomizeSnapshots\Customize_Snapshot_Manager::enqueue_admin_scripts()
S
57 5 16
CustomizeSnapshots\Post_Type::remap_customize_meta_cap()
S
58 5 16
CustomizeSnapshots\Post_Type::filter_snapshot_excerpt()
S
59 5 13
CustomizeSnapshots\Customize_Snapshot_Manager::add_publish_changeset_link()
S
51 4 27
CustomizeSnapshots\Plugin::register_scripts()
S
53 4 20
CustomizeSnapshots\Plugin::register_styles()
S
54 4 19
CustomizeSnapshots\Customize_Snapshot_Manager::add_post_edit_screen_link()
S
57 4 17
CustomizeSnapshots\Post_Type::finish_pretending_customize_save_ajax_action()
S
63 5 9
CustomizeSnapshots\Post_Type::get_frontend_view_link()
S
58 4 15
CustomizeSnapshots\Plugin_Base::relative_path()
S
61 4 12
CustomizeSnapshots\Customize_Snapshot_Manager::enqueue_frontend_scripts()
S
55 3 20
CustomizeSnapshots\Post_Type::hooks()
S
54 3 19
CustomizeSnapshots\Post_Type::add_admin_menu_item()
S
54 3 19
CustomizeSnapshots\Customize_Snapshot_Manager::add_snapshot_uuid_to_return_url()
S
57 3 16
CustomizeSnapshots\Customize_Snapshot_Manager::save_customizer_state_query_vars()
S
63 4 10
CustomizeSnapshots\Post_Type::hide_disabled_publishing_actions()
S
63 3 15
CustomizeSnapshots\Post_Type::admin_show_merge_error()
S
60 3 13
CustomizeSnapshots\Post_Type::disable_revision_ui_for_published_posts()
S
64 3 12
CustomizeSnapshots\Customize_Snapshot_Manager::get_edit_link()
S
63 3 11
CustomizeSnapshots\Customize_Snapshot_Manager::render_templates()
S
52 1 35
CustomizeSnapshots\Post_Type::init()
S
57 2 16
is_previewing_settings()
S
74 3 4
CustomizeSnapshots\Post_Type::display_post_states()
S
63 3 10
CustomizeSnapshots\Snapshot_REST_API_Controller::__construct()
S
66 3 8
CustomizeSnapshots\Plugin_Base::_add_hook()
S
66 3 7
CustomizeSnapshots\Snapshot_REST_API_Controller::check_read_permission()
S
67 3 7
CustomizeSnapshots\Customize_Snapshot_Manager::ensure_customize_manager()
S
64 3 9
CustomizeSnapshots\Post_Type::force_at_least_one_revision()
S
70 3 6
CustomizeSnapshots\Customize_Snapshot_Manager::add_changesets_admin_bar_link()
S
60 2 14
CustomizeSnapshots\Customize_Snapshot_Manager::add_snapshot_exit_link()
S
61 2 13
CustomizeSnapshots\Customize_Snapshot_Manager_Compat::format_gmt_offset()
S
61 2 13
CustomizeSnapshots\Customize_Snapshot_Manager_Compat::get_month_choices()
S
59 2 13
CustomizeSnapshots\Plugin_Base::locate_plugin()
S
60 2 12
CustomizeSnapshots\Customize_Snapshot_Manager::print_admin_bar_styles()
S
67 1 25
CustomizeSnapshots\Post_Type::extend_changeset_post_type_object()
S
54 1 21
CustomizeSnapshots\Customize_Snapshot_Manager::hooks()
S
55 1 18
CustomizeSnapshots\Plugin_Base::trigger_warning()
S
72 2 5
CustomizeSnapshots\Snapshot_REST_API_Controller::check_initial_access_permission()
S
66 2 8
CustomizeSnapshots\Plugin_Base::get_object_reflection()
S
69 2 7
CustomizeSnapshots\Customize_Snapshot_Manager::create_initial_changeset_revision()
S
73 2 5
CustomizeSnapshots\Customize_Snapshot_Manager::encode_json()
S
66 2 8
CustomizeSnapshots\Post_Type::suspend_kses()
S
70 2 6
CustomizeSnapshots\Snapshot_REST_API_Controller::get_items_permissions_check()
S
69 2 7
CustomizeSnapshots\Plugin::param_back_compat()
S
69 2 7
CustomizeSnapshots\Customize_Snapshot_Manager::prepare_errors_for_response()
S
64 2 10
CustomizeSnapshots\Snapshot_REST_API_Controller::get_item_permissions_check()
S
69 2 7
CustomizeSnapshots\Post_Type::filter_post_type_link()
S
70 2 6
CustomizeSnapshots\Post_Type::restore_kses()
S
73 2 6
CustomizeSnapshots\Plugin::init()
S
75 2 4
CustomizeSnapshots\Plugin_Base::is_wpcom_vip_prod()
S
79 2 3
is_back_compat()
S
66 2 8
CustomizeSnapshots\Plugin::__construct()
S
64 2 9
current_snapshot_uuid()
S
68 2 8
CustomizeSnapshots\Post_Type::get_customizer_state_query_vars()
S
68 2 7
CustomizeSnapshots\Customize_Snapshot_Manager::is_valid_uuid()
S
78 1 3
CustomizeSnapshots\Customize_Snapshot_Manager::get_customize_uuid_param()
S
82 1 3
CustomizeSnapshots\Customize_Snapshot_Manager::add_resume_snapshot_link()
S
64 1 10
CustomizeSnapshots\Snapshot_REST_API_Controller::prepare_item_for_response()
S
72 1 5
customize_snapshots_php_version_text()
S
80 1 3
CustomizeSnapshots\Customize_Snapshot_Manager::__construct()
S
81 1 3
CustomizeSnapshots\Customize_Snapshot_Manager::get_front_uuid_param()
S
82 1 3
customize_snapshots_php_version_error()
S
80 1 3
get_plugin_instance()
S
79 1 4
CustomizeSnapshots\Snapshot_REST_API_Controller::get_collection_params()
S
70 1 6
CustomizeSnapshots\Post_Type::__construct()
S
81 1 3
CustomizeSnapshots\Snapshot_REST_API_Controller::create_item()
S
70 1 6
CustomizeSnapshots\Post_Type::find_post()
S
76 1 4
CustomizeSnapshots\Post_Type::remove_slug_metabox()
S
79 1 3
CustomizeSnapshots\Plugin_Base::__destruct()
S
83 1 3
CustomizeSnapshots\Post_Type::add_snapshot_bulk_actions()
S
75 1 4
CustomizeSnapshots\Customize_Snapshot_Manager::add_snapshot_var_to_customize_save()
S
68 1 7
CustomizeSnapshots\Snapshot_REST_API_Controller::delete_item()
S
69 1 6
CustomizeSnapshots\Post_Type::get_slug()
S
81 1 3
CustomizeSnapshots\Post_Type::setup_metaboxes()
S
64 1 9
CustomizeSnapshots\Customize_Snapshot_Manager::customize_menu()
S
66 1 9
CustomizeSnapshots\Customize_Snapshot_Manager::init()
S
77 1 4
CustomizeSnapshots\Plugin_Base::add_filter()
S
78 1 3
CustomizeSnapshots\Snapshot_REST_API_Controller::get_item_schema()
S
64 1 9
CustomizeSnapshots\Plugin_Base::add_action()
S
78 1 3
CustomizeSnapshots\Customize_Snapshot_Manager::get_post_type()
S
82 1 3
CustomizeSnapshots\Customize_Snapshot_Manager::get_customize_manager()
S
79 1 4
CustomizeSnapshots\Post_Type::_override_wp_query_is_single()
S
81 1 3
CustomizeSnapshots\Plugin_Base::__construct()
S
66 1 8
CustomizeSnapshots\Snapshot_REST_API_Controller::update_item()
S
69 1 6