Code Analysis: Custom Field Suite 2.6.7

Function Rating Maintainability Complexity Lines of code
cfs_form::render()
D
23
36 195
cfs_api::get_matching_groups()
C
32 28 96
cfs_api::save_fields()
B
33 18 106
cfs_form::init()
B
38 20 69
cfs_api::get_fields()
B
36 19 77
cfs_api::find_input_fields()
A
44 15 43
cfs_api::save_fields_recursive()
A
39 13 66
cfs_field_group::save()
A
37 12 80
cfs_relationship::html()
A
40 11 59
cfs_loop::recursive_html()
A
39 10 64
cfs_term::html()
A
40 10 63
cfs_select::html()
A
51 11 24
cfs_init::ajax_handler()
A
48 10 31
cfs_loop::dynamic_label()
A
49 10 30
cfs_api::get_reverse_related()
A
45 9 40
cfs_field_group::import()
A
42 8 53
cfs_init::save_post()
A
53 9 22
cfs_wysiwyg::input_head()
A
43 3 104
cfs_user::html()
A
48 7 35
cfs_hyperlink::format_value_for_api()
A
54 8 19
cfs_loop::recursive_clone()
A
41 5 63
cfs_init::cfs_column_content()
A
48 7 31
cfs_select::options_html()
A
40 4 76
cfs_revision::_wp_post_revision_field_postmeta()
S
51 6 27
cfs_api::assemble_value_array()
S
53 6 22
cfs_api::get_field_info()
S
55 6 19
cfs_ajax::search_posts()
S
50 5 30
cfs_hyperlink::html()
S
51 5 29
cfs_api::get_field()
S
58 6 14
cfs_field_group::export()
S
51 5 27
cfs_select::pre_save_field()
S
53 5 22
cfs_api::array_orderby()
S
55 5 21
cfs_loop::input_head()
S
100 1 80
cfs_api::get_input_fields()
S
57 5 15
cfs_relationship::input_head()
S
100 1 73
cfs_term::input_head()
S
100 1 73
cfs_user::input_head()
S
100 1 73
cfs_file::input_head()
S
53 1 72
cfs_file::html()
S
53 4 22
cfs_file::options_html()
S
42 1 64
cfs_field_group::load_field_groups()
S
51 3 28
cfs_loop::options_html()
S
44 1 58
cfs_third_party::duplicate_post()
S
61 4 12
cfs_init::get_field_types()
S
51 3 26
cfs_init::init()
S
51 3 25
cfs_textarea::options_html()
S
44 1 55
cfs_revision::save_post()
S
63 4 10
cfs_select::format_value_for_api()
S
64 4 10
cfs_third_party::pts_post_type_filter()
S
64 4 9
cfs_upgrade::__construct()
S
60 3 14
cfs_wysiwyg::options_html()
S
48 1 41
cfs_true_false::options_html()
S
50 1 35
cfs_text::options_html()
S
50 1 34
cfs_relationship::options_html()
S
50 1 31
cfs_term::options_html()
S
50 1 31
cfs_field::get_option()
S
66 3 9
cfs_relationship::pre_save()
S
64 3 10
cfs_session::__construct()
S
66 3 8
cfs_term::pre_save()
S
64 3 10
cfs_file::format_value_for_api()
S
67 3 7
cfs_true_false::html()
S
64 3 10
cfs_user::pre_save()
S
64 3 10
cfs_form::admin_notice()
S
65 3 9
cfs_init::admin_head()
S
70 3 6
cfs_init::show_credits()
S
70 3 6
cfs_date::input_head()
S
59 1 29
cfs_form::load_assets()
S
58 2 14
cfs_upgrade::clean_install()
S
54 1 28
cfs_true_false::input_head()
S
100 1 27
cfs_select::input_head()
S
100 1 25
cfs_hyperlink::options_html()
S
53 1 25
cfs_init::register_post_type()
S
53 1 23
cfs_tab::input_head()
S
100 1 22
cfs_color::input_head()
S
60 1 20
cfs_field::options_html()
S
56 1 20
cfs_color::options_html()
S
58 1 18
cfs_ajax::reset()
S
58 1 16
cfs_wysiwyg::format_value_for_api()
S
73 2 4
cfs_revision::check_for_changes()
S
67 2 8
cfs_api::get()
S
70 2 6
cfs_wysiwyg::mce_external_plugins()
S
69 2 6
cfs_select::select2_code()
S
67 2 8
cfs_textarea::format_value_for_api()
S
74 2 4
cfs_hyperlink::pre_save()
S
64 2 10
cfs_user::format_value_for_input()
S
78 2 3
cfs_relationship::format_value_for_input()
S
78 2 3
cfs_init::delete_post()
S
66 2 8
cfs_third_party::wpml_handler()
S
69 2 6
Custom_Field_Suite::instance()
S
71 2 6
cfs_session::get()
S
63 2 10
cfs_term::format_value_for_input()
S
78 2 3
cfs_session::is_valid()
S
78 2 3
cfs_true_false::format_value_for_api()
S
79 2 3
cfs_init::admin_menu()
S
71 2 5
cfs_wysiwyg::format_value_for_input()
S
67 2 8
cfs_init::load_textdomain()
S
63 2 10
cfs_user::options_html()
S
63 1 13
cfs_wysiwyg::html()
S
65 1 12
Custom_Field_Suite::create_field()
S
63 1 11
cfs_field::format_value_for_input()
S
83 1 3
cfs_term::__construct()
S
75 1 4
Custom_Field_Suite::__construct()
S
73 1 6
cfs_tab::__construct()
S
75 1 4
cfs_hyperlink::prepare_value()
S
80 1 3
cfs_select::prepare_value()
S
83 1 3
cfs_postbox_classes()
S
77 1 4
Custom_Field_Suite::find_fields()
S
81 1 3
Custom_Field_Suite::form()
S
74 1 5
cfs_upgrade::run_upgrade()
S
91 1 2
cfs_textarea::__construct()
S
75 1 4
cfs_tab::options_html()
S
100 1 2
cfs_session::cleanup()
S
72 1 5
cfs_date::load_assets()
S
75 1 4
cfs_revision::_wp_post_revision_fields()
S
76 1 4
cfs_wysiwyg::__construct()
S
72 1 5
cfs_term::prepare_value()
S
83 1 3
CFS()
S
82 1 3
cfs_revision::__construct()
S
66 1 8
cfs_loop::__construct()
S
73 1 5
cfs_date::__construct()
S
75 1 4
cfs_form::footer_scripts()
S
82 1 3
cfs_text::__construct()
S
75 1 4
cfs_textarea::format_value_for_input()
S
80 1 3
cfs_session::set()
S
64 1 10
cfs_select::__construct()
S
73 1 5
cfs_form::head_scripts()
S
100 1 10
cfs_loop::html()
S
69 1 6
Custom_Field_Suite::save()
S
79 1 3
cfs_loop::prepare_value()
S
83 1 3
cfs_text::format_value_for_input()
S
80 1 3
cfs_init::add_meta_boxes()
S
69 1 5
cfs_tab::html()
S
100 1 2
cfs_true_false::__construct()
S
75 1 4
cfs_field::pre_save()
S
83 1 3
cfs_init::page_tools()
S
80 1 3
cfs_init::meta_box()
S
74 1 4
cfs_relationship::prepare_value()
S
83 1 3
cfs_init::cfs_columns()
S
69 1 7
cfs_field::html()
S
74 1 5
cfs_user::__construct()
S
75 1 4
cfs_relationship::__construct()
S
75 1 4
cfs_field::__construct()
S
75 1 4
Custom_Field_Suite::get_field_info()
S
80 1 3
cfs_init::__construct()
S
79 1 3
cfs_user::prepare_value()
S
83 1 3
cfs_third_party::__construct()
S
69 1 6
cfs_field::input_head()
S
100 1 2
Custom_Field_Suite::field_html()
S
80 1 3
Custom_Field_Suite::get()
S
79 1 3
cfs_revision::wp_restore_post_revision()
S
74 1 4
cfs_field::pre_save_field()
S
83 1 3
cfs_hyperlink::__construct()
S
75 1 4
cfs_form::__construct()
S
66 1 8
cfs_textarea::html()
S
74 1 5
cfs_color::__construct()
S
75 1 4
cfs_field::format_value_for_api()
S
83 1 3
cfs_field::prepare_value()
S
81 1 3
Custom_Field_Suite::get_reverse_related()
S
80 1 3
cfs_file::__construct()
S
75 1 4
cfs_revision::wp_delete_post_revision()
S
72 1 5