WPForms_Field D

Total Complexity 454
Dependencies 4
Dependents 0
Total lines 3,924
Lines of code 2,292
Logical lines of code 957
Comment lines 979
Methods 58
Properties 13

Methods 58

Method Rating Maintainability Complexity Lines of code
field_option()
D
0
135 1,126
field_preview_option()
D
15
66 264
field_element()
D
28
38 122
field_new()
A
35 10 91
field_prefill_value_property_dynamic()
A
44 13 44
get_field_populated_single_property_value_normal_choices()
A
48 10 34
add_quantity_to_populated_field_properties()
A
53 9 22
field_fill_empty_choices()
A
53 9 20
get_choices_label()
A
57 9 15
get_empty_dynamic_choices_message()
S
50 7 28
display_quantity_dropdown()
S
45 6 40
field_prefill_remove_choices_defaults()
S
54 7 21
field_prefill_value_property_fallback()
S
54 7 21
get_field_populated_single_property_value()
S
56 7 17
field_display_sublabel()
S
52 6 24
is_fallback_population_allowed()
S
55 6 19
get_field_populated_single_property_value_dynamic_choices()
S
55 6 19
field_html_value()
S
59 6 14
get_object()
S
57 6 14
get_submitted_field_quantity()
S
60 6 12
get_field_html()
S
55 5 19
ajax_error_field_name()
S
60 5 12
field_element_toggle()
S
56 4 17
__construct()
S
59 4 15
validate()
S
65 5 8
enqueue_choicesjs_once()
S
49 2 32
field_data()
S
65 4 9
is_payment_quantities_enabled()
S
65 4 9
format()
S
58 3 14
is_dynamic_population_allowed()
S
64 3 10
field_prefill_value_property()
S
63 3 10
enhance_template_fields_with_keywords()
S
65 3 9
add_keywords()
S
67 3 8
field_display_modern()
S
68 3 7
field_new_default()
S
69 3 6
preview_field_class()
S
66 3 9
field_button()
S
60 2 13
common_hooks()
S
50 1 26
field_display_proxy()
S
66 2 8
exclude_empty_dynamic_choices()
S
65 2 9
is_dynamic_choices_empty()
S
66 2 8
is_quantity_choicesjs_search_enabled()
S
67 2 7
field_display_error()
S
63 2 10
add_allowed_label_html_tags()
S
62 1 12
display_empty_dynamic_choices_message()
S
72 1 6
load_script_in_footer()
S
80 1 3
field_display()
S
100 1 0
is_dynamic_choices()
S
79 1 3
is_choicesjs_search_enabled()
S
78 1 3
filter_field_html_value_images()
S
77 1 3
get_field_html_image()
S
70 1 7
field_display_classic()
S
79 1 3
field_preview()
S
100 1 0
field_options()
S
100 1 0
field_default_settings()
S
74 1 4
get_field_populated_single_property_value_public()
S
78 1 3
init()
S
100 1 0
get_price_after_label()
S
78 1 3