Code Analysis: SG Security 1.0.1

Function Rating Maintainability Complexity Lines of code
SG_Security\Activity_Log\Activity_Log_Posts::log_post_status_transition()
A
43 11 54
SG_Security\Rest\Rest_Helper_Activity::get_query()
A
45 11 39
SG_Security\Sg_2fa\Sg_2fa::validate_2fa_login()
A
46 10 36
SG_Security\Rest\Rest_Helper_Activity::get_unknown_filters()
A
37 5 96
SG_Security\Activity_Log\Activity_Log_Unknown::log_visit()
A
48 9 33
SG_Security\Block_Service\Block_Service::block_ip()
A
48 7 37
SG_Security\Sg_2fa\Sg_2fa::load_form()
A
53 8 20
SG_Security\Login_Service\Login_Service::log_login_attempt()
A
48 7 35
SG_Security\Activity_Log\Activity_Log_Options::log_option_update()
A
34 2 109
SG_Security\Message_Service\Message_Service::get_response_message()
A
36 2 108
SG_Security\Plugins_Service\Plugins_Service::resintall_plugin()
A
49 7 33
SG_Security\Rest\Rest_Helper_Activity::get_registered_activity_filters()
A
39 4 77
SG_Security\I18n\I18n::update_json_translations()
A
49 7 31
SG_Security\Logout_Service\Logout_Service::change_salts()
S
50 6 31
SG_Security\I18n\I18n::get_i18n_data_json()
S
53 6 24
SG_Security\Password_Service\Password_Service::force_password_reset()
S
55 6 21
SG_Security\Helper\Helper::has_updates()
S
55 6 20
SG_Security\Rest\Rest_Helper_Activity::registered_activity()
S
46 4 39
SG_Security\Plugins_Service\Plugins_Service::get_plugins_data()
S
52 5 23
SG_Security\Activity_Log\Activity_Log_Themes::log_theme_update()
S
54 5 22
SG_Security\Rest\Rest_Helper_Activity::unknown_activity()
S
47 4 37
SG_Security\Activity_Log\Activity_Log_Plugins::log_plugin_update()
S
54 5 21
SG_Security\Rest\Rest_Helper_Activity::get_blocked_user()
S
48 4 36
SG_Security\Rest\Rest::register_activity_log_routes()
S
41 1 79
SG_Security\Login_Service\Login_Service::maybe_block_login_access()
S
57 5 17
SG_Security\Helper\Helper::is_rest()
S
57 5 15
SG_Security\Rest\Rest_Helper_Activity::get_user_data()
S
51 4 27
SG_Security\Options_Service\Options_Service::fetch_options()
S
53 4 24
SG_Security\Activity_Log\Activity_Log_Helper::log_event()
S
53 4 23
SG_Security\Activity_Log\Activity_Log_Widgets::log_widget_delete()
S
54 4 21
SG_Security\Helper\Helper::get_current_user_ip()
S
55 4 21
SG_Security\Admin\Admin::admin_print_styles()
S
48 3 34
SG_Security\Activity_Log\Activity_Log_Plugins::log_plugin_install()
S
56 4 19
SG_Security\Activity_Log\Activity_Log_Themes::log_theme_install()
S
56 4 19
SG_Security\Activator\Activator::activate()
S
56 4 18
SG_Security\Activity_Log\Activity_Log_Posts::log_post_delete()
S
57 4 17
SG_Security\Rest\Rest_Helper::send_json()
S
57 4 17
SG_Security\Block_Service\Block_Service::change_user_role()
S
50 3 30
SG_Security\Rest\Rest_Helper_Activity::get_request_filters()
S
58 4 15
SG_Security\Htaccess_Service\Xmlrpc_Service::plugins_using_xml_rpc()
S
58 4 15
SG_Security\Htaccess_Service\Directory_Service::get_filepath()
S
60 4 14
SG_Security\Activity_Log\Activity_Log_Themes::get_delete_theme()
S
60 4 14
SG_Security\Readme_Service\Readme_Service::delete_readme()
S
61 4 12
SG_Security\Activity_Log\Activity_Log_Unknown::get_visitor_type()
S
63 4 11
SG_Security\Rest\Rest_Helper_Options::fetch_options()
S
51 3 25
SG_Security\Install_Service\Install_1_0_1::install()
S
54 3 24
SG_Security\Rest\Rest::register_site_security_routes()
S
46 1 51
SG_Security\Activity_Log\Activity_Log_Helper::check_for_duplicates()
S
50 2 35
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::enable()
S
57 3 17
SG_Security\Block_Service\Block_Service::block_user_by_ip()
S
59 3 16
SG_Security\Activity_Log\Activity_Log::delete_logs_on_admin_page()
S
66 4 9
SG_Security\Sg_2fa\Sg_2fa::generate_user_secret()
S
59 3 15
SG_Security\Sg_2fa\Sg_2fa::generate_users_secret()
S
61 3 14
SG_Security\Loader\Loader::add_activity_log_hooks()
S
44 1 43
SG_Security\Admin\Admin::hide_errors_and_notices()
S
62 3 12
SG_Security\Htaccess_Service\Directory_Service::toggle_rules()
S
62 3 12
SG_Security\Login_Service\Login_Service::get_login_attempts_data()
S
62 3 11
SG_Security\Password_Service\Password_Service::password_reset_redirect()
S
62 3 11
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::disable()
S
62 3 11
SG_Security\Htaccess_Service\Directory_Service::do_replacement()
S
61 3 11
SG_Security\Sg_2fa\Sg_2fa::init_2fa()
S
62 3 11
SG_Security\Install_Service\Install_Service::do_install()
S
62 3 11
SG_Security\Activity_Log\Activity_Log_Helper::insert()
S
54 2 23
SG_Security\Activity_Log\Activity_Log_Helper::get_visitor_by_ip()
S
55 2 23
SG_Security\Activity_Log\Activity_Log_Helper::get_visitor_by_user_id()
S
55 2 23
SG_Security\Block_Service\Block_Service::get_visitor_status()
S
55 2 22
SG_Security\Admin\Admin::add_plugin_pages()
S
56 2 20
SG_Security\Rest\Rest_Helper_Dashboard::ebook()
S
56 2 19
SG_Security\Rest\Rest_Helper_Dashboard::notifications()
S
57 2 18
SG_Security\Block_Service\Block_Service::get_ip_by_id()
S
59 2 16
SG_Security\Rest\Rest_Helper_Login::disable_admin_username()
S
58 2 16
SG_Security\Login_Service\Login_Service::restrict_login_to_ips()
S
65 3 9
SG_Security\Logout_Service\Logout_Service::config_exist()
S
68 3 8
SG_Security\Logout_Service\Logout_Service::replace_salts()
S
64 3 9
SG_Security\Options_Service\Options_Service::is_enabled()
S
66 3 8
SG_Security\Options_Service\Options_Service::enable_option()
S
65 3 8
SG_Security\Options_Service\Options_Service::disable_option()
S
65 3 8
SG_Security\Block_Service\Block_Service::get_user_id_by_id()
S
60 2 15
SG_Security\Helper\Helper::is_cron_disabled()
S
70 3 6
SG_Security\Rest\Rest::register_login_routes()
S
52 1 30
SG_Security\Rest\Rest_Helper::validate_and_get_option_value()
S
67 3 7
SG_Security\Activity_Log\Activity_Log_Themes::log_theme_delete()
S
58 2 15
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::set_htaccess_path()
S
65 3 10
SG_Security\Rest\Rest_Helper_Activity::get_visitor_status()
S
59 2 15
SG_Security\Activity_Log\Activity_Log_Attachments::get_attachment_activity_description()
S
64 3 10
SG_Security\Htaccess_Service\Directory_Service::maybe_remove_htaccess()
S
65 3 10
SG_Security\Activity_Log\Activity_Log::set_sgs_logs_cron()
S
67 3 8
SG_Security\Install_Service\Install_Service::install()
S
67 3 7
SG_Security\Install_Service\Install_Service::install_required()
S
65 3 9
SG_Security\Activity_Log\Activity_Log_Widgets::log_widget_update()
S
58 2 15
SG_Security\Loader\Loader::add_feed_service_hooks()
S
59 2 14
SG_Security\Rest\Rest_Helper_Activity::block_user()
S
60 2 14
SG_Security\Activity_Log\Activity_Log_Themes::log_theme_edit()
S
59 2 14
SG_Security\Rest\Rest_Helper_Activity::block_ip()
S
59 2 14
SG_Security\Activity_Log\Activity_Log_Helper::create_log_tables()
S
54 1 29
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_status_transition()
S
60 2 13
SG_Security\Activity_Log\Activity_Log_Plugins::log_plugin_edit()
S
60 2 13
SG_Security\Admin\Admin::enqueue_styles()
S
62 2 12
SG_Security\Admin\Admin::enqueue_scripts()
S
62 2 12
SG_Security\Admin\Admin::get_plugin_page_ids()
S
63 2 11
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::lock_and_write()
S
63 2 11
SG_Security\Rest\Rest_Helper_Dashboard::hardening()
S
54 1 24
SG_Security\Rest\Rest::register_post_hack_action_routes()
S
55 1 23
SG_Security\Rest\Rest::register_dashboard_routes()
S
55 1 23
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::__construct()
S
71 2 6
SG_Security\Htaccess_Service\Headers_Service::toggle_rules()
S
75 2 4
SG_Security\Activity_Log\Activity_Log_Plugins::get_plugin_name()
S
67 2 7
SG_Security\Rest\Rest_Helper_Site_Security::xss_protection()
S
69 2 6
SG_Security\Helper\Helper::error_handler()
S
65 2 8
SG_Security\Wp_Version_Service\Wp_Version_Service::remove_script_and_styles_version()
S
71 2 6
SG_Security\Readme_Service\Readme_Service::readme_exist()
S
71 2 6
SG_Security\Loader\Loader::load_dependencies()
S
74 2 5
SG_Security\Activity_Log\Activity_Log::get_instance()
S
71 2 6
SG_Security\Loader\Loader::add_hooks()
S
72 2 5
SG_Security\Helper\Helper::get_home_url()
S
69 2 6
SG_Security\Activity_Log\Activity_Log_Widgets::get_widget_description()
S
68 2 7
SG_Security\Loader\Loader::add_editors_service_hooks()
S
70 2 6
SG_Security\Loader\Loader::add_sg_2fa_hooks()
S
62 2 10
SG_Security\Loader\Loader::add_wp_version_service_hooks()
S
66 2 8
SG_Security\Htaccess_Service\Xmlrpc_Service::toggle_rules()
S
75 2 4
SG_Security\Sg_2fa\Sg_2fa::handle_option_change()
S
74 2 5
SG_Security\Loader\Loader::add_login_service_hooks()
S
64 2 9
SG_Security\Admin\Admin::is_plugin_page()
S
68 2 7
SG_Security\Login_Service\Login_Service::reset_login_attempts()
S
65 2 9
SG_Security\Logout_Service\Logout_Service::get_fresh_salts()
S
66 2 8
SG_Security\Loader\Loader::add_usernames_service_hooks()
S
70 2 6
SG_Security\Admin\Admin::reorder_submenu_pages()
S
68 2 7
SG_Security\Options_Service\Options_Service::change_option()
S
71 2 5
SG_Security\Loader\Loader::factory()
S
65 2 8
SG_Security\Options_Service\Options_Service::validate_key()
S
68 2 7
SG_Security\Activity_Log\Activity_Log::factory()
S
66 2 7
SG_Security\Password_Service\Password_Service::add_custom_login_message()
S
69 2 6
SG_Security\Editors_Service\Editors_Service::disable_file_edit()
S
70 2 6
SG_Security\Helper\Helper::setup_wp_filesystem()
S
67 2 8
SG_Security\Password_Service\Password_Service::invalidate_passwords()
S
69 2 6
SG_Security\Activity_Log\Activity_Log::run()
S
74 2 5
SG_Security\Helper\Helper::hide_warnings_in_rest_api()
S
73 2 5
SG_Security\Helper\Helper::get_site_url()
S
69 2 6
SG_Security\Helper\Helper::get_uploads_dir()
S
66 2 8
SG_Security\Plugins_Service\Plugins_Service::reinstall_plugins()
S
69 2 7
SG_Security\Activity_Log\Activity_Log_Users::log_login()
S
61 1 13
SG_Security\Activity_Log\Activity_Log_Users::log_logout()
S
61 1 13
SG_Security\Activity_Log\Activity_Log_Users::log_user_delete()
S
61 1 13
SG_Security\Activity_Log\Activity_Log_Users::log_user_register()
S
61 1 13
SG_Security\Activity_Log\Activity_Log_Users::log_wrong_password()
S
61 1 13
SG_Security\Activity_Log\Activity_Log_Users::log_profile_update()
S
62 1 12
SG_Security\Activity_Log\Activity_Log::delete_old_activity_logs()
S
64 1 11
SG_Security\Activity_Log\Activity_Log_Taxonomies::log_term_create()
S
62 1 11
SG_Security\Activity_Log\Activity_Log_Taxonomies::log_term_edit()
S
62 1 11
SG_Security\Activity_Log\Activity_Log_Taxonomies::log_term_delete()
S
62 1 11
SG_Security\Rest\Rest_Helper_Options::change_option_from_rest()
S
64 1 11
SG_Security\Rest\Rest_Helper_Login::login_access()
S
64 1 11
SG_Security\Loader\Loader::__construct()
S
78 1 4
SG_Security\Rest\Rest_Helper::change_option()
S
79 1 3
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::do_replacement()
S
82 1 3
SG_Security\Rest\Rest_Helper_Site_Security::disable_feeds()
S
80 1 3
SG_Security\Rest\Rest_Helper_Activity::__construct()
S
80 1 3
SG_Security\Plugins_Service\Plugins_Service::maintanance_mode()
S
80 1 3
SG_Security\Install_Service\Install_Service::get_current_version()
S
79 1 3
SG_Security\Password_Service\Password_Service::get_redirect_url()
S
69 1 7
SG_Security\Rest\Rest_Helper_Site_Security::__construct()
S
68 1 7
SG_Security\Rest\Rest::register_options_routes()
S
66 1 9
SG_Security\Activity_Log\Activity_Log_Attachments::log_delete_attachment()
S
64 1 10
SG_Security\Loader\Loader::add_block_service_hooks()
S
79 1 3
SG_Security\Activity_Log\Activity_Log_Themes::get_theme_name()
S
72 1 5
SG_Security\Options_Service\Options_Service::add_key_prefix()
S
80 1 3
SG_Security\Rest\Rest_Helper_Site_Security::disable_editors()
S
80 1 3
SG_Security\Activity_Log\Activity_Log_Themes::get_theme_description()
S
80 1 3
SG_Security\Loader\Loader::add_install_service_hooks()
S
79 1 3
SG_Security\Activity_Log\Activity_Log_Taxonomies::get_term_description()
S
74 1 4
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_insert()
S
64 1 10
SG_Security\Loader\Loader::add_i18n_hooks()
S
74 1 4
SG_Security\Rest\Rest_Helper_Site_Security::lock_system_folders()
S
73 1 5
SG_Security\Rest\Rest_Helper_Site_Security::delete_readme()
S
70 1 7
SG_Security\Activity_Log\Activity_Log::__construct()
S
68 1 7
SG_Security\Htaccess_Service\Xmlrpc_Service::get_filepath()
S
80 1 3
SG_Security\Rest\Rest_Helper_Site_Security::disable_xml_rpc()
S
73 1 5
SG_Security\Loader\Loader::add_helper_hooks()
S
75 1 4
SG_Security\Rest\Rest::register_rest_routes()
S
69 1 8
SG_Security\Sg_2fa\Sg_2fa::check_authentication_code()
S
74 1 4
SG_Security\Rest\Rest::__construct()
S
67 1 8
SG_Security\Sg_2fa\Sg_2fa::generate_qr_code()
S
71 1 5
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_unspam()
S
64 1 10
SG_Security\Rest\Rest::check_permissions()
S
80 1 3
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_delete()
S
64 1 10
SG_Security\Activity_Log\Activity_Log_Plugins::log_plugin_deactivate()
S
63 1 10
SG_Security\Password_Service\Password_Service::remove_password_reset_meta()
S
79 1 3
SG_Security\Activity_Log\Activity_Log_Core::log_core_update()
S
65 1 9
SG_Security\Admin\Admin::render()
S
82 1 3
SG_Security\Activity_Log\Activity_Log_Plugins::get_plugin_log_description()
S
80 1 3
SG_Security\Rest\Rest_Helper_Activity::get_total_pages()
S
65 1 9
SG_Security\Rest\Rest_Helper_Post_Hack_Actions::resinstall_plugins()
S
70 1 7
SG_Security\Install_Service\Install::install()
S
100 1 0
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_spam()
S
64 1 10
SG_Security\Activity_Log\Activity_Log_Users::get_user_description()
S
74 1 4
SG_Security\Activity_Log\Activity_Log_Export::log_export()
S
65 1 9
SG_Security\Loader\Loader::add_admin_hooks()
S
66 1 8
SG_Security\Activity_Log\Activity_Log_Themes::log_theme_switch()
S
64 1 10
SG_Security\Activity_Log\Activity_Log_Themes::log_theme_customizer_edit()
S
63 1 10
SG_Security\Login_Service\Login_Service::__construct()
S
79 1 3
SG_Security\Rest\Rest_Helper_Site_Security::hide_wp_version()
S
80 1 3
SG_Security\Activity_Log\Activity_Log_Attachments::log_add_attachment()
S
64 1 10
SG_Security\Loader\Loader::add_password_service_hooks()
S
72 1 5
SG_Security\Rest\Rest_Helper_Options::__construct()
S
76 1 4
SG_Security\Rest\Rest_Helper::get_response_message()
S
79 1 3
SG_Security\Feed_Service\Feed_Service::disable_feed()
S
80 1 3
SG_Security\Sg_2fa\Sg_2fa::__construct()
S
80 1 3
SG_Security\Htaccess_Service\Headers_Service::get_filepath()
S
80 1 3
SG_Security\Activity_Log\Activity_Log_Plugins::log_plugin_activate()
S
63 1 10
SG_Security\Loader\Loader::add_rest_hooks()
S
79 1 3
SG_Security\Rest\Rest_Helper_Post_Hack_Actions::force_password_reset()
S
68 1 8
SG_Security\Activity_Log\Activity_Log_Posts::get_post_description()
S
80 1 3
SG_Security\Rest\Rest_Helper_Login::sg2fa()
S
80 1 3
SG_Security\Install_Service\Install_Service::__construct()
S
75 1 5
SG_Security\Rest\Rest_Helper_Login::__construct()
S
71 1 6
SG_Security\Deactivator\Deactivator::deactivate()
S
66 1 9
SG_Security\I18n\I18n::load_textdomain()
S
71 1 7
SG_Security\Rest\Rest_Helper_Post_Hack_Actions::__construct()
S
73 1 5
SG_Security\Rest\Rest_Helper_Login::limit_login_attempts()
S
64 1 10
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_edit()
S
64 1 10
SG_Security\Rest\Rest_Helper_Post_Hack_Actions::logout_users()
S
69 1 7
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::get_instance()
S
80 1 3
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_untrash()
S
64 1 10
SG_Security\Htaccess_Service\Abstract_Htaccess_Service::is_enabled()
S
74 1 4
SG_Security\Activity_Log\Activity_Log_Comments::log_comment_trash()
S
64 1 10
SG_Security\Activity_Log\Activity_Log_Comments::get_comment_description()
S
73 1 4
SG_Security\Usernames_Service\Usernames_Service::add_illegal_usernames()
S
70 1 7
SG_Security\Install_Service\Install::get_version()
S
81 1 3
SG_Security\Activity_Log\Activity_Log_Attachments::log_edit_attachment()
S
64 1 10
SG_Security\Usernames_Service\Usernames_Service::change_admin_username()
S
66 1 9