Code Analysis: User Submitted Posts 20240516

Function Rating Maintainability Complexity Lines of code
usp_validate_options()
D
12
115 185
usp_render_form()
D
2
66 817
usp_createPublicSubmission()
D
26
75 85
usp_attach_images()
D
31 38 85
usp_error_message()
D
35 38 59
usp_check_images()
C
39 28 57
usp_enqueueResources()
C
38 25 55
usp_get_cats()
B
42 24 50
usp_get_form_vars()
B
39 23 57
usp_send_mail_alert()
B
35 21 75
usp_checkForPublicSubmission()
B
37 21 63
usp_get_images()
B
43 21 37
usp_login_form()
B
30 9 169
usp_get_cat_options()
A
48 17 28
ReCaptcha\ReCaptcha::verify()
A
45 14 40
usp_post_category_options()
A
38 12 65
usp_inline_script()
A
46 14 31
usp_auto_display_options()
A
45 13 38
usp_redirect_message()
A
54 13 17
usp_get_categories()
A
47 11 34
usp_auto_display_custom_2()
A
47 11 32
usp_auto_display_custom()
A
47 11 32
usp_maybe_rotate()
A
50 11 26
usp_auto_display_images()
A
45 10 35
usp_meta_box_callback()
A
54 11 18
ReCaptcha\Response::fromJson()
A
54 11 18
usp_display_custom_checkbox()
A
54 10 18
usp_prepare_post()
A
48 9 29
usp_auto_display_url()
A
51 9 24
usp_auto_display_email()
A
51 9 24
usp_auto_display_name()
A
54 9 18
usp_add_defaults()
A
35 4 92
usp_verify_recaptcha()
A
55 9 16
user_submitted_posts_wp_resources()
A
37 4 82
usp_form_display_options()
A
55 8 16
usp_enqueue_recaptcha()
S
57 8 15
usp_display_posts()
S
42 5 58
usp_replace_image_vars()
S
45 6 42
usp_form_field_options()
S
53 7 20
usp_post_status_options()
S
55 7 16
usp_add_meta_box()
S
56 7 16
usp_remote_delete_post()
S
56 7 16
usp_replaceAuthor()
S
61 8 10
usp_form_field_options_custom()
S
50 6 25
usp_post_author_options()
S
51 6 22
usp_post_attachments()
S
54 6 20
usp_get_ip_address()
S
57 6 20
usp_addSubmittedStatusClause()
S
55 6 19
usp_reset_button_shortcode()
S
55 6 16
usp_get_submitted_tags()
S
58 6 15
usp_get_submitted_title()
S
60 6 12
usp_get_author()
S
54 5 22
usp_require_wp_version()
S
56 5 17
usp_access()
S
57 5 15
usp_get_submitted_category()
S
59 5 14
usp_post_type_options()
S
57 5 14
usp_outputUserSubmissionLink()
S
57 5 14
usp_form_field_recaptcha()
S
59 5 12
usp_unique_filename()
S
61 5 11
ReCaptcha\RequestMethod\SocketPost::submit()
S
50 4 26
usp_admin_notice()
S
56 4 20
usp_clear_cookies()
S
55 4 20
usp_form_field_options_recaptcha()
S
54 4 18
usp_form_field_options_images()
S
54 4 18
usp_form_field_options_captcha()
S
54 4 18
usp_plugin_action_links()
S
57 4 15
usp_dismiss_notice_save()
S
62 5 10
usp_author_link()
S
58 4 15
ReCaptcha\RequestMethod\Socket::fsockopen()
S
66 5 7
usp_check_recaptcha_keys()
S
67 5 7
usp_get_tag_options()
S
60 4 12
usp_member()
S
61 4 11
usp_visitor()
S
61 4 11
usp_i18n_init()
S
55 3 18
usp_is_public_submission()
S
64 4 10
usp_get_post_images()
S
64 4 10
usp_get_current_screen_id()
S
68 4 6
usp_get_current_screen_post_type()
S
68 4 6
usp_validateEmail()
S
63 4 10
usp_check_duplicates()
S
66 4 8
usp_gallery()
S
57 3 15
ReCaptcha\ReCaptcha::__construct()
S
63 4 10
usp_compare_version()
S
60 3 13
usp_load_admin_styles()
S
61 3 12
ReCaptcha\RequestMethod\CurlPost::submit()
S
55 2 21
ReCaptcha\RequestMethod\Post::submit()
S
58 2 16
usp_get_custom_field()
S
69 3 6
usp_get_custom_checkbox()
S
69 3 6
ReCaptcha\RequestParameters::toArray()
S
63 3 10
ReCaptcha\RequestMethod\CurlPost::__construct()
S
74 3 4
usp_get_comment_status()
S
67 3 7
usp_admin_footer_text()
S
63 3 10
usp_get_custom_field_2()
S
69 3 6
usp_dismiss_notice_version()
S
67 3 8
usp_display_form()
S
63 3 9
ReCaptcha\RequestMethod\SocketPost::__construct()
S
74 3 4
add_usp_links()
S
59 2 13
usp_get_date_time()
S
62 2 11
usp_sanitize_content()
S
54 1 23
usp_name_display()
S
59 1 17
usp_url_display()
S
59 1 17
usp_custom_display()
S
59 1 17
usp_image_display()
S
59 1 17
usp_email_display()
S
59 1 17
usp_form_version()
S
58 1 17
usp_width_min()
S
72 2 5
usp_dismiss_notice_check()
S
75 2 4
usp_height_max()
S
72 2 5
usp_height_min()
S
72 2 5
usp_check_date_expired()
S
74 2 4
ReCaptcha\RequestMethod\Post::__construct()
S
78 2 3
usp_include_deps()
S
69 2 7
usp_check_required()
S
72 2 5
usp_width_max()
S
72 2 5
exif_imagetype()
S
70 2 6
ReCaptcha\RequestMethod\Socket::fwrite()
S
77 2 3
usp_spamQuestion()
S
64 2 10
usp_post_type()
S
62 1 13
usp_recaptcha_version()
S
62 1 13
ReCaptcha\Response::toArray()
S
63 1 11
usp_add_options_page()
S
78 1 3
usp_init()
S
80 1 3
ReCaptcha\ReCaptcha::setChallengeTimeout()
S
77 1 4
ReCaptcha\Response::getHostname()
S
82 1 3
usp_get_default_title()
S
70 1 6
ReCaptcha\Response::getErrorCodes()
S
82 1 3
ReCaptcha\RequestParameters::toQueryString()
S
79 1 3
usp_random_string()
S
72 1 5
ReCaptcha\Response::__construct()
S
65 1 9
usp_dismiss_notice_link()
S
68 1 6
ReCaptcha\ReCaptcha::setExpectedHostname()
S
77 1 4
usp_update_category_option()
S
83 1 3
ReCaptcha\RequestMethod\Socket::fgets()
S
79 1 3
usp_login_form_shortcode()
S
70 1 7
ReCaptcha\RequestMethod\Curl::close()
S
81 1 3
ReCaptcha\RequestParameters::__construct()
S
71 1 6
ReCaptcha\Response::getScore()
S
82 1 3
usp_dismiss_notice_activate()
S
82 1 3
usp_delete_plugin_options()
S
82 1 3
ReCaptcha\ReCaptcha::setScoreThreshold()
S
76 1 4
ReCaptcha\RequestMethod\Socket::fclose()
S
80 1 3
ReCaptcha\Response::getChallengeTs()
S
82 1 3
user_submitted_posts()
S
82 1 3
usp_login_required_message()
S
65 1 8
ReCaptcha\ReCaptcha::setExpectedAction()
S
77 1 4
ReCaptcha\RequestMethod\Curl::exec()
S
80 1 3
ReCaptcha\Response::isSuccess()
S
82 1 3
usp_shortcode_empty_p_fix()
S
65 1 10
usp_remote_edit_post_link()
S
79 1 3
ReCaptcha\RequestMethod\Socket::feof()
S
80 1 3
ReCaptcha\Response::getAction()
S
82 1 3
ReCaptcha\Response::getApkPackageName()
S
82 1 3
ReCaptcha\RequestMethod\Curl::setoptArray()
S
79 1 3
ReCaptcha\ReCaptcha::setExpectedApkPackageName()
S
77 1 4
usp_filter_safe_styles()
S
77 1 4
ReCaptcha\RequestMethod\Curl::init()
S
80 1 3
usp_remote_delete_post_link()
S
77 1 3