Blockons_WC_Rest_Routes D

Total Complexity 170
Dependencies 8
Dependents 0
Total lines 1,107
Lines of code 793
Logical lines of code 355
Comment lines 158
Methods 31
Properties 0

Methods 31

Method Rating Maintainability Complexity Lines of code
prepare_email_content()
C
33 29 102
blockons_handle_contact_form_submission()
C
33 22 94
handle_file_uploads()
B
33 17 96
process_shortcodes()
A
42 12 47
prepare_email_headers()
A
44 12 44
cleanup_old_uploads()
A
51 8 26
blockons_create_rest_routes()
S
40 3 70
verify_recaptcha()
S
49 5 32
get_reply_to_email()
S
62 7 10
get_submission_title()
S
61 6 12
process_form_submission()
S
49 4 32
save_form_submission()
S
54 4 21
get_client_ip()
S
55 4 20
blockons_get_product_data_by_id()
S
52 3 23
is_development_environment()
S
66 4 7
should_verify_recaptcha()
S
69 4 6
blockons_get_all_post_types()
S
60 3 13
get_email_subject()
S
60 3 13
blockons_get_post_by_id()
S
55 2 19
save_submission_metadata()
S
54 2 19
blockons_get_wc_products()
S
59 2 15
get_add_to_cart_form()
S
60 2 14
get_metadata_content()
S
60 2 13
blockons_get_wc_product_by_id()
S
57 1 17
blockons_save_settings_permission()
S
79 2 3
blockons_get_settings()
S
71 2 6
should_save_submission()
S
78 1 3
blockons_delete_settings()
S
76 1 4
blockons_save_settings()
S
69 1 6
blockons_get_settings_permission()
S
82 1 3
__construct()
S
79 1 3