WPForms_Field D

Total Complexity 422
Dependencies 3
Dependents 0
Total lines 3,549
Lines of code 2,156
Logical lines of code 888
Comment lines 903
Methods 52
Properties 12

Methods 52

Method Rating Maintainability Complexity Lines of code
field_option()
D
0
134 1,104
field_preview_option()
D
15
68 261
field_element()
D
31 36 94
field_new()
A
36 10 91
field_prefill_value_property_dynamic()
A
48 11 34
get_field_populated_single_property_value_normal_choices()
A
48 10 32
field_fill_empty_choices()
A
53 9 20
get_empty_dynamic_choices_message()
S
50 7 28
display_quantity_dropdown()
S
45 6 40
field_prefill_remove_choices_defaults()
S
55 7 21
field_prefill_value_property_fallback()
S
54 7 21
get_field_populated_single_property_value()
S
55 7 19
get_field_populated_single_property_value_dynamic_choices()
S
55 6 19
is_fallback_population_allowed()
S
56 6 19
field_html_value()
S
59 6 14
get_submitted_field_quantity()
S
60 6 12
__construct()
S
46 4 36
field_display_sublabel()
S
56 5 17
get_field_html()
S
57 5 17
field_element_toggle()
S
56 4 17
get_object()
S
60 4 11
enqueue_choicesjs_once()
S
49 2 33
is_payment_quantities_enabled()
S
65 4 9
ajax_error_field_name()
S
67 4 7
validate()
S
70 4 5
format()
S
58 3 14
field_prefill_value_property()
S
62 3 11
is_quantity_choicesjs_search_enabled()
S
67 3 7
is_dynamic_population_allowed()
S
64 3 10
add_keywords()
S
67 3 8
get_choices_label()
S
65 3 9
enhance_template_fields_with_keywords()
S
65 3 9
field_display_modern()
S
68 3 7
preview_field_class()
S
66 3 9
field_display_error()
S
64 2 10
exclude_empty_dynamic_choices()
S
65 2 9
field_display_proxy()
S
66 2 8
is_dynamic_choices_empty()
S
66 2 8
field_data()
S
71 2 6
add_allowed_label_html_tags()
S
62 1 12
display_empty_dynamic_choices_message()
S
72 1 6
field_options()
S
100 1 0
get_field_html_image()
S
70 1 7
is_dynamic_choices()
S
79 1 3
is_choicesjs_search_enabled()
S
78 1 3
filter_field_html_value_images()
S
77 1 3
field_preview()
S
100 1 0
get_field_populated_single_property_value_public()
S
78 1 3
init()
S
100 1 0
field_display()
S
100 1 0
field_button()
S
64 1 10
field_display_classic()
S
79 1 3