Code Analysis: User Submitted Posts 20201120

Function Rating Maintainability Complexity Lines of code
usp_validate_options()
D
14
106 175
usp_render_form()
D
4
62 702
usp_createPublicSubmission()
D
30 59 70
usp_error_message()
D
35 36 57
usp_attach_images()
C
35 29 71
usp_check_images()
C
39 28 57
usp_enqueueResources()
C
38 25 55
usp_get_cats()
B
42 24 50
usp_send_mail_alert()
B
36 21 68
usp_get_form_vars()
B
40 21 53
usp_checkForPublicSubmission()
B
38 19 61
usp_login_form()
B
30 9 169
usp_get_images()
B
43 17 40
usp_get_cat_options()
A
48 17 28
usp_print_scripts()
A
46 15 36
ReCaptcha\ReCaptcha::verify()
A
45 14 40
usp_post_category_options()
A
38 12 65
usp_inline_script()
A
46 14 32
usp_auto_display_options()
A
46 12 35
usp_redirect_message()
A
54 13 17
usp_get_categories()
A
47 11 34
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_verify_recaptcha()
A
54 11 17
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
36 4 86
usp_form_display_options()
A
55 8 16
usp_replace_image_vars()
S
45 6 42
usp_display_posts()
S
43 5 52
usp_form_field_options()
S
53 7 20
usp_add_meta_box()
S
56 7 16
usp_post_status_options()
S
55 7 16
usp_post_author_options()
S
51 6 22
usp_get_ip_address()
S
57 6 20
usp_post_attachments()
S
54 6 20
usp_addSubmittedStatusClause()
S
55 6 19
usp_reset_button_shortcode()
S
54 6 17
usp_get_submitted_tags()
S
58 6 15
usp_enqueue_recaptcha()
S
60 6 12
usp_form_field_options_custom()
S
52 5 22
usp_get_author()
S
54 5 22
usp_require_wp_version()
S
56 5 17
usp_get_submitted_category()
S
59 5 14
usp_outputUserSubmissionLink()
S
57 5 14
usp_post_type_options()
S
57 5 14
usp_access()
S
58 5 13
usp_form_field_recaptcha()
S
59 5 12
usp_unique_filename()
S
61 5 11
ReCaptcha\RequestMethod\SocketPost::submit()
S
50 4 26
usp_form_field_options_captcha()
S
53 4 20
usp_form_field_options_recaptcha()
S
53 4 20
usp_form_field_options_images()
S
53 4 20
usp_clear_cookies()
S
55 4 20
usp_plugin_action_links()
S
57 4 15
usp_author_link()
S
58 4 15
ReCaptcha\RequestMethod\Socket::fsockopen()
S
66 5 7
usp_get_submitted_title()
S
65 5 8
usp_replaceAuthor()
S
64 5 8
usp_get_tag_options()
S
60 4 12
usp_check_duplicates()
S
66 4 8
usp_visitor()
S
63 4 9
usp_member()
S
63 4 9
usp_is_public_submission()
S
64 4 10
usp_validateEmail()
S
63 4 10
ReCaptcha\ReCaptcha::__construct()
S
63 4 10
usp_get_post_images()
S
64 4 10
usp_gallery()
S
58 3 14
usp_compare_version()
S
60 3 13
usp_load_admin_styles()
S
61 3 11
ReCaptcha\RequestMethod\CurlPost::submit()
S
55 2 21
ReCaptcha\RequestMethod\Post::submit()
S
58 2 16
usp_get_comment_status()
S
67 3 7
usp_get_custom_field()
S
69 3 6
usp_get_custom_checkbox()
S
69 3 6
ReCaptcha\RequestMethod\SocketPost::__construct()
S
74 3 4
ReCaptcha\RequestMethod\CurlPost::__construct()
S
74 3 4
ReCaptcha\RequestParameters::toArray()
S
63 3 10
usp_display_form()
S
63 3 9
add_usp_links()
S
59 2 13
usp_email_display()
S
59 1 17
usp_form_version()
S
58 1 17
usp_name_display()
S
59 1 17
usp_image_display()
S
59 1 17
usp_url_display()
S
59 1 17
usp_custom_display()
S
59 1 17
usp_include_deps()
S
69 2 7
exif_imagetype()
S
70 2 6
usp_check_required()
S
72 2 5
usp_spamQuestion()
S
64 2 10
ReCaptcha\RequestMethod\Socket::fwrite()
S
77 2 3
usp_height_min()
S
72 2 5
usp_height_max()
S
72 2 5
usp_width_min()
S
72 2 5
usp_width_max()
S
72 2 5
ReCaptcha\RequestMethod\Post::__construct()
S
78 2 3
usp_recaptcha_version()
S
62 1 13
usp_post_type()
S
62 1 13
usp_sanitize_content()
S
61 1 12
ReCaptcha\Response::toArray()
S
63 1 11
usp_i18n_init()
S
78 1 3
ReCaptcha\ReCaptcha::setExpectedApkPackageName()
S
77 1 4
usp_shortcode_empty_p_fix()
S
65 1 10
usp_get_default_title()
S
69 1 6
ReCaptcha\Response::isSuccess()
S
82 1 3
ReCaptcha\Response::getHostname()
S
82 1 3
ReCaptcha\ReCaptcha::setChallengeTimeout()
S
77 1 4
ReCaptcha\RequestParameters::toQueryString()
S
79 1 3
ReCaptcha\RequestMethod\Curl::init()
S
80 1 3
ReCaptcha\RequestMethod\Curl::exec()
S
80 1 3
usp_filter_safe_styles()
S
77 1 4
usp_update_category_option()
S
83 1 3
ReCaptcha\ReCaptcha::setExpectedAction()
S
77 1 4
user_submitted_posts()
S
82 1 3
ReCaptcha\RequestMethod\Curl::setoptArray()
S
79 1 3
ReCaptcha\Response::getApkPackageName()
S
82 1 3
usp_init()
S
80 1 3
ReCaptcha\Response::getChallengeTs()
S
82 1 3
ReCaptcha\Response::getAction()
S
82 1 3
ReCaptcha\ReCaptcha::setExpectedHostname()
S
77 1 4
ReCaptcha\Response::__construct()
S
65 1 9
usp_random_string()
S
72 1 5
ReCaptcha\ReCaptcha::setScoreThreshold()
S
76 1 4
ReCaptcha\Response::getScore()
S
82 1 3
usp_delete_plugin_options()
S
82 1 3
ReCaptcha\RequestMethod\Socket::fclose()
S
80 1 3
ReCaptcha\RequestMethod\Socket::fgets()
S
79 1 3
usp_login_required_message()
S
65 1 8
ReCaptcha\Response::getErrorCodes()
S
82 1 3
usp_add_options_page()
S
79 1 3
ReCaptcha\RequestParameters::__construct()
S
71 1 6
usp_login_form_shortcode()
S
70 1 7
ReCaptcha\RequestMethod\Curl::close()
S
81 1 3
ReCaptcha\RequestMethod\Socket::feof()
S
80 1 3