Code Analysis: SiteGuard WP Plugin 1.7.6

Function Rating Maintainability Complexity Lines of code
SiteGuard_Menu_WAF_Tuning_Support::render_page()
D
13
70 325
SiteGuard_Menu_Rename_Login::render_page()
C
26
25 173
SiteGuard::upgrade()
C
36 26 77
SiteGuard_Htaccess::update_settings()
C
34 24 95
SiteGuard_Menu_Author_Query::render_page()
B
29
15 153
SiteGuard_Menu_CAPTCHA::render_page()
B
29 15 150
SiteGuard_Menu_Admin_Filter::render_page()
B
32 16 123
SiteGuard_Menu_Updates_Notify::render_page()
B
30 15 137
SiteGuard_Menu_Protect_XMLRPC::render_page()
B
32 15 122
SiteGuard_Menu_Dashboard::render_page()
B
34 14 95
SiteGuard_Menu_Login_Lock::render_page()
B
31 11 126
SiteGuard::htaccess_check()
A
47 16 37
SiteGuard_Menu_Same_Error::render_page()
A
37 11 85
SiteGuard_Menu_Login_Alert::render_page()
A
34 9 108
SiteGuard_LoginHistory::get_history()
A
43 12 52
SiteGuard_Htaccess::clear_settings()
A
43 12 49
SiteGuard_Menu_Fail_Once::render_page()
A
36 9 91
SiteGuardReallySimpleCaptcha::generate_image()
A
38 10 70
SiteGuard_Menu_Login_History::set_cookie()
A
46 12 37
SiteGuard_Base::get_server_ip()
A
47 12 36
SiteGuard_UpdatesNotify::plugins_update_check()
A
42 10 46
SiteGuard_LoginLock::handler_wp_login_failed()
A
43 9 48
SiteGuardReallySimpleCaptcha::cleanup()
A
47 10 32
SiteGuard_AdminFilter::update_settings()
A
41 8 55
SiteGuard_Htaccess::is_exists_setting()
A
47 9 37
SiteGuard_RenameLogin::handler_wp_redirect()
A
60 11 10
SiteGuard_CAPTCHA::__construct()
A
49 9 28
SiteGuard_LoginHistory_Table::usort_reorder()
A
58 9 12
SiteGuard_Menu_INIT::add_pages()
A
35 1 122
SiteGuard_UpdatesNotify::themes_update_check()
A
48 7 31
SiteGuard_LoginLock::handler_wp_authenticate_user()
S
51 7 26
SiteGuard_UpdatesNotify::do_update_check()
S
52 7 25
SiteGuardReallySimpleCaptcha::check()
S
51 7 25
SiteGuardReallySimpleCaptcha::make_tmp_dir()
S
50 6 28
SiteGuard_LoginHistory_Table::__construct()
S
46 5 40
SiteGuard_WAF_Exclude_Rule::update_settings()
S
53 6 24
SiteGuard_CAPTCHA::check_requirements()
S
56 6 23
SiteGuard_Base::is_private_ip()
S
53 6 22
SiteGuard_RenameLogin::init()
S
54 6 21
SiteGuard_LoginHistory_Table::column_default()
S
60 6 14
SiteGuard_CAPTCHA::handler_process_comment_post()
S
60 6 13
SiteGuard_Htaccess::make_tmp_dir()
S
51 5 26
SiteGuard_WAF_Exclude_Rule::input_check()
S
51 5 25
SiteGuard_LoginHistory_Table::get_filter_param_checkbox()
S
56 5 20
SiteGuard_Htaccess::check_permission()
S
55 5 20
SiteGuard_LoginHistory::convert_operation()
S
56 5 20
SiteGuard_Disable_Author_Query::handler_deny_rest_api()
S
56 5 18
SiteGuard_WAF_Exclude_Rule_Table::usort_reorder()
S
63 6 8
SiteGuard_UpdatesNotify::check_plugins_against_notified()
S
59 5 14
SiteGuard_UpdatesNotify::check_themes_against_notified()
S
59 5 14
SiteGuard_WAF_Exclude_Rule::get_max_id()
S
62 5 12
SiteGuard_CAPTCHA::init()
S
52 4 26
SiteGuard_CAPTCHA::check_extensions()
S
54 4 22
SiteGuard_RenameLogin::handler_login_init()
S
56 4 18
SiteGuard_WAF_Exclude_Rule::delete_rule()
S
56 4 18
SiteGuard::__construct()
S
57 4 16
SiteGuard_LoginAlert::handler_wp_login()
S
57 4 15
SiteGuard_UpdatesNotify::check_requirements()
S
60 4 15
SiteGuard_LoginHistory_Table::get_filter_param_normal()
S
60 4 14
SiteGuard_RenameLogin::send_notify()
S
57 4 14
SiteGuard_UpdatesNotify::send_notify()
S
58 4 14
SiteGuard_WAF_Exclude_Rule::get_rule()
S
59 4 14
SiteGuard_RenameLogin::get_active_incompatible_plugins()
S
61 4 13
SiteGuard_LoginLock::is_locked()
S
59 4 12
SiteGuard_LoginHistory_Table::prepare_items()
S
51 3 27
SiteGuard_LoginHistory::add_operation()
S
51 3 26
SiteGuard_WAF_Exclude_Rule_Table::prepare_items()
S
52 3 26
SiteGuard_UpdatesNotify::core_update_check()
S
52 3 24
SiteGuard_WAF_Exclude_Rule::add_rule()
S
53 3 23
SiteGuard_RenameLogin::update_settings()
S
54 3 22
SiteGuard_WAF_Exclude_Rule::update_rule_itr()
S
54 3 21
SiteGuardReallySimpleCaptcha::generate_random_word()
S
56 3 18
SiteGuard_Disable_Author_Query::handler_author_query()
S
66 4 8
SiteGuard_CAPTCHA::handler_registration_errors()
S
63 4 10
SiteGuard_RenameLogin::set_404()
S
63 4 10
SiteGuard_Base::get_ip()
S
64 4 10
SiteGuard_CAPTCHA::handler_wp_authenticate_user()
S
63 4 10
SiteGuard_CAPTCHA::handler_lostpassword_post()
S
66 4 8
SiteGuard_LoginHistory::is_exist()
S
59 3 14
SiteGuard_LoginHistory::convert_type()
S
60 3 14
SiteGuard_CAPTCHA::check_image_access()
S
60 3 14
SiteGuard_Menu_Protect_XMLRPC::db_to_page()
S
62 3 14
SiteGuard_Menu_Protect_XMLRPC::page_to_db()
S
62 3 14
SiteGuard_LoginAlert::replace_valuable()
S
59 3 13
SiteGuard_RenameLogin::__construct()
S
62 3 12
SiteGuard_WAF_Exclude_Rule::output_exclude_sig_1()
S
61 3 12
remove_directory()
S
62 3 11
SiteGuard_LoginHistory_Table::extra_tablenav()
S
54 2 26
SiteGuard_RenameLogin::handler_stop_redirect()
S
63 3 11
SiteGuard_Menu_Login_History::render_page()
S
51 2 26
SiteGuardReallySimpleCaptcha::remove()
S
61 3 11
SiteGuard_UpdatesNotify::init()
S
54 2 24
SiteGuardReallySimpleCaptcha::generate_answer_file()
S
57 2 16
siteguard_rand()
S
64 3 10
SiteGuard_Disable_Author_Query::__construct()
S
64 3 9
SiteGuard_WAF_Exclude_Rule_Table::column_default()
S
66 3 9
SiteGuard_LoginLock::__construct()
S
63 3 10
SiteGuard_AdminFilter::handler_wp_login()
S
65 3 9
SiteGuard_Base::is_switch_value()
S
71 3 6
SiteGuard_UpdatesNotify::check_wp_cron_access()
S
63 3 9
SiteGuard_UpdatesNotify::check_disable_wp_cron()
S
66 3 8
SiteGuard_CAPTCHA::handler_login_errors()
S
69 3 6
SiteGuard_CAPTCHA::handler_comment_form()
S
65 3 9
SiteGuardReallySimpleCaptcha::set_lang_mode()
S
73 3 5
SiteGuard_LoginLock::init()
S
60 2 14
SiteGuard_WAF_Exclude_Rule::update_rule()
S
61 2 13
SiteGuard_LoginAlert::init()
S
61 2 12
SiteGuard_Menu_WAF_Tuning_Support::set_filename()
S
62 2 11
siteguard_activate()
S
54 1 21
SiteGuard_AdminFilter::init()
S
58 1 17
SiteGuard_LoginHistory::init()
S
60 1 16
SiteGuard_LoginHistory::handler_wp_login()
S
71 2 6
siteguard_check_multisite()
S
67 2 8
SiteGuard_LoginHistory::check_operation()
S
68 2 7
SiteGuard_LoginLock::handler_authenticate()
S
65 2 9
SiteGuard_Menu_Login_Lock::is_interval_value()
S
68 2 7
SiteGuard_Menu_Protect_XMLRPC::is_switch_value()
S
69 2 7
SiteGuard_RenameLogin::convert_url()
S
64 2 10
siteguard_error_log()
S
66 2 8
SiteGuard_RenameLogin::feature_on()
S
65 2 9
SiteGuard_CAPTCHA::handler_login_form()
S
72 2 5
SiteGuard_UpdatesNotify::feature_on()
S
70 2 6
SiteGuard_Menu_CAPTCHA::is_captcha_switch_value()
S
68 2 7
SiteGuard_Config::get()
S
78 2 3
SiteGuard_CAPTCHA::check_htaccess()
S
66 2 8
SiteGuard_WAF_Exclude_Rule::set_enable()
S
64 2 10
SiteGuard_WAF_Exclude_Rule::feature_on()
S
65 2 9
SiteGuard_Menu_Login_Lock::is_locksec_value()
S
68 2 7
SiteGuard_LoginHistory_Table::get_filter_type()
S
67 2 8
SiteGuard_CAPTCHA::check_support_freetype()
S
67 2 8
SiteGuard_CAPTCHA::handler_register_form()
S
72 2 5
SiteGuard_LoginHistory::check_type()
S
69 2 7
SiteGuard_Disable_Pingback::__construct()
S
70 2 6
SiteGuard_LoginHistory::handler_xmlrpc_call()
S
69 2 7
SiteGuard_Disable_Pingback::init()
S
66 2 9
SiteGuard_CAPTCHA::handler_lostpassword_form()
S
72 2 5
SiteGuard_AdminFilter::feature_on()
S
65 2 9
SiteGuard_Menu_Login_Lock::is_threshold_value()
S
68 2 7
SiteGuard_Disable_XMLRPC::feature_on()
S
65 2 9
SiteGuard_Menu_Updates_Notify::is_notify_value()
S
68 2 7
SiteGuard_LoginHistory_Table::get_filter_operation()
S
67 2 8
SiteGuard_Htaccess::get_apply_permission()
S
64 2 10
SiteGuard_LoginAlert::__construct()
S
70 2 6
SiteGuard_LoginHistory::get_type()
S
69 2 7
SiteGuard_Disable_XMLRPC::update_settings()
S
62 1 13
SiteGuardReallySimpleCaptcha::__construct()
S
61 1 12
SiteGuard::admin_notices()
S
61 1 12
SiteGuard_LoginHistory_Table::operation_dropdown()
S
63 1 11
SiteGuard_WAF_Exclude_Rule_Table::column_sig()
S
61 1 11
SiteGuard_WAF_Exclude_Rule::__construct()
S
100 1 2
SiteGuard_WAF_Exclude_Rule_Table::process_bulk_action()
S
85 1 3
SiteGuard_CAPTCHA::put_captcha()
S
71 1 6
SiteGuard_LoginLock::get_status()
S
83 1 3
SiteGuard_Disable_Author_Query::init()
S
69 1 7
SiteGuard_Menu_INIT::menu_fail_once()
S
77 1 4
SiteGuard_AdminFilter::feature_off()
S
76 1 4
SiteGuard_CAPTCHA::get_captcha()
S
63 1 10
SiteGuard_WAF_Exclude_Rule_Table::get_bulk_actions()
S
72 1 6
SiteGuard_WAF_Exclude_Rule::clear_rules()
S
71 1 6
SiteGuard_LoginLock::handler_login_shake()
S
77 1 4
SiteGuard_Menu_INIT::menu_captcha()
S
77 1 4
SiteGuard_Menu_CAPTCHA::__construct()
S
83 1 3
SiteGuard_Htaccess::get_htaccess_new_file()
S
79 1 3
SiteGuard_Htaccess::test_htaccess()
S
82 1 3
SiteGuard_LoginHistory_Table::login_name_input()
S
69 1 7
SiteGuard_Menu_INIT::menu_updates_notify()
S
77 1 4
SiteGuard_WAF_Exclude_Rule::get_rules()
S
74 1 5
SiteGuard_WAF_Exclude_Rule::output_exclude_sig_2()
S
79 1 3
SiteGuard_Disable_Pingback::handler_xmlrpc_methods()
S
74 1 5
SiteGuard_Disable_XMLRPC::feature_off()
S
76 1 4
SiteGuard_RenameLogin::handler_site_url()
S
77 1 4
SiteGuard_RenameLogin::insert_rewrite_rules()
S
68 1 7
SiteGuard_CAPTCHA::add_captcha_error()
S
79 1 3
SiteGuard_Menu_INIT::menu_dashboard()
S
77 1 4
SiteGuard_Base::__construct()
S
100 1 2
SiteGuard_LoginHistory::__construct()
S
69 1 6
SiteGuard_Menu_Admin_Filter::__construct()
S
83 1 3
SiteGuard_Config::__construct()
S
80 1 3
delete_siteguard_plugin()
S
65 1 9
SiteGuard_UpdatesNotify::sort_by_interval()
S
79 1 3
SiteGuard_Menu_INIT::menu_waf_tuning_support()
S
77 1 4
SiteGuard_LoginHistory_Table::ip_address_input()
S
69 1 7
SiteGuard_RenameLogin::add_filter()
S
64 1 9
SiteGuard_Menu_Login_Alert::__construct()
S
83 1 3
SiteGuard_WAF_Exclude_Rule::get_enable()
S
74 1 5
SiteGuard_UpdatesNotify::log_last_check_time()
S
73 1 5
SiteGuard::set_cookie()
S
83 1 3
SiteGuard_LoginHistory_Table::get_filter_ip_address()
S
80 1 3
SiteGuard_Menu_Rename_Login::__construct()
S
83 1 3
SiteGuard_Menu_INIT::menu_rename_login()
S
77 1 4
SiteGuard_WAF_Exclude_Rule_Table::get_sortable_columns()
S
68 1 8
siteguard_error_dump()
S
69 1 7
SiteGuard_WAF_Exclude_Rule::init()
S
71 1 6
SiteGuard_Menu_Updates_Notify::__construct()
S
83 1 3
SiteGuard_AdminFilter::cvt_exclude()
S
79 1 3
SiteGuard_WAF_Exclude_Rule_Table::__construct()
S
65 1 10
SiteGuard_WAF_Exclude_Rule::cvt_exclude()
S
79 1 3
SiteGuard_AdminFilter::cvt_status_for_1_2_5()
S
71 1 5
SiteGuard_Menu_INIT::menu_block_author_query()
S
77 1 4
SiteGuard_Menu_INIT::menu_login_lock()
S
77 1 4
SiteGuard_WAF_Exclude_Rule_Table::get_columns()
S
65 1 9
SiteGuard_WAF_Exclude_Rule::get_mark()
S
81 1 3
SiteGuard_Menu_INIT::menu_admin_filter()
S
77 1 4
SiteGuard_Menu_Author_Query::__construct()
S
83 1 3
SiteGuard_RenameLogin::handler_register()
S
77 1 4
SiteGuard_Menu_INIT::menu_login_alert()
S
77 1 4
SiteGuard_Htaccess::get_apply_permission_itr()
S
71 1 5
SiteGuard_Menu_Login_History::__construct()
S
74 1 5
SiteGuard_Menu_INIT::menu_protect_xmlrpc()
S
77 1 4
SiteGuard_Base::check_module()
S
83 1 3
SiteGuard_CAPTCHA::handler_shake_error_codes()
S
77 1 4
SiteGuard_Htaccess::__construct()
S
100 1 2
SiteGuard_Menu_Same_Error::__construct()
S
83 1 3
SiteGuard_Menu_Protect_XMLRPC::__construct()
S
83 1 3
SiteGuard_WAF_Exclude_Rule::feature_off()
S
76 1 4
SiteGuardReallySimpleCaptcha::normalize_path()
S
72 1 5
SiteGuard_Base::cvt_ret2camma()
S
65 1 9
SiteGuard_WAF_Exclude_Rule_Table::column_cb()
S
69 1 7
SiteGuard_Config::update()
S
80 1 3
SiteGuard_LoginHistory_Table::process_bulk_action()
S
85 1 3
SiteGuard_Menu_Dashboard::__construct()
S
83 1 3
SiteGuard_Base::cvt_camma2ret()
S
74 1 4
SiteGuard_Disable_XMLRPC::get_mark()
S
81 1 3
SiteGuard_Menu_WAF_Tuning_Support::htaccess_error()
S
74 1 5
SiteGuard_Menu_INIT::menu_login_history()
S
81 1 3
SiteGuard_RenameLogin::get_mark()
S
81 1 3
SiteGuard_Disable_XMLRPC::__construct()
S
100 1 2
SiteGuard_LoginHistory::handler_wp_login_failed()
S
76 1 4
SiteGuard_Menu_Login_History::clear_cookie()
S
66 1 8
SiteGuard_UpdatesNotify::__construct()
S
79 1 3
SiteGuard_Menu_INIT::menu_same_error()
S
77 1 4
SiteGuard_LoginHistory_Table::get_filter_login_name_not()
S
80 1 3
SiteGuard_UpdatesNotify::get_intervals()
S
76 1 4
SiteGuard_UpdatesNotify::feature_off()
S
80 1 3
siteguard_deactivate()
S
65 1 10
SiteGuard_UpdatesNotify::get_schedules()
S
72 1 5
SiteGuard::plugins_loaded()
S
70 1 7
SiteGuard_Menu_Fail_Once::__construct()
S
83 1 3
SiteGuard_Htaccess::get_tmp_dir()
S
80 1 3
SiteGuard_Disable_XMLRPC::init()
S
74 1 5
SiteGuard_AdminFilter::__construct()
S
76 1 4
SiteGuard_RenameLogin::feature_off()
S
76 1 4
SiteGuard_LoginHistory_Table::get_filter_ip_address_not()
S
80 1 3
SiteGuard_AdminFilter::get_mark()
S
81 1 3
SiteGuard_LoginHistory_Table::type_dropdown()
S
66 1 9
SiteGuard_Menu_Login_Lock::__construct()
S
83 1 3
SiteGuard_AdminFilter::get_rewrite_cond()
S
78 1 3
SiteGuard_Menu_WAF_Tuning_Support::__construct()
S
74 1 5
SiteGuard_LoginHistory_Table::get_sortable_columns()
S
64 1 10
SiteGuard_LoginHistory_Table::get_filter_login_name()
S
80 1 3
SiteGuard_Menu_INIT::menu_styles()
S
79 1 3
SiteGuard_LoginHistory_Table::get_bulk_actions()
S
78 1 4
SiteGuard_LoginHistory_Table::get_columns()
S
64 1 10
SiteGuard_Config::set()
S
80 1 3
SiteGuard_Htaccess::get_htaccess_file()
S
80 1 3
SiteGuard_WAF_Exclude_Rule::cvt_csrf2comma()
S
67 1 8
SiteGuard_Menu_INIT::__construct()
S
79 1 3