WPForms_Field D

Total Complexity 290
Dependencies 0
Dependents 0
Total lines 2,140
Lines of code 1,260
Logical lines of code 628
Comment lines 592
Methods 29
Properties 10

Methods 29

Method Rating Maintainability Complexity Lines of code
field_option()
D
4
89 559
field_preview_option()
D
19
56 207
field_element()
D
33 33 86
field_new()
A
39 9 70
field_prefill_value_property_dynamic()
A
48 11 34
get_field_populated_single_property_value_normal_choices()
A
49 10 29
field_fill_empty_choices()
A
55 9 17
field_prefill_value_property_fallback()
S
54 7 21
field_prefill_remove_choices_defaults()
S
55 7 21
get_field_populated_single_property_value()
S
55 7 19
is_fallback_population_allowed()
S
56 6 19
get_field_populated_single_property_value_dynamic_choices()
S
55 6 19
field_display_sublabel()
S
56 5 17
field_element_toggle()
S
56 4 17
__construct()
S
51 3 24
ajax_error_field_name()
S
67 4 7
validate()
S
70 4 5
format()
S
58 3 14
enqueue_choicesjs_once()
S
51 2 29
field_prefill_value_property()
S
62 3 11
is_dynamic_population_allowed()
S
64 3 10
field_display_error()
S
64 2 10
field_options()
S
100 1 0
field_display()
S
100 1 0
field_preview()
S
100 1 0
init()
S
100 1 0
field_button()
S
65 1 9
get_field_populated_single_property_value_public()
S
78 1 3
is_choicesjs_search_enabled()
S
78 1 3