Code Analysis: GEO Traffic Control and Redirect 2.9.4

Function Rating Maintainability Complexity Lines of code
SEO_SG_Protection_HTML::PluginPage()
D
2
73 923
register_plgsggeo_page_callback()
D
20
50 212
SEO_SG_Protection::PatchHtaccess_file()
C
34 23 88
SEO_SG_Protection_HTML::PrintIconMessage()
B
38 16 81
SEO_SG_Protection::Add_IP_adresses()
A
40 13 54
SEO_SG_Protection_HTML::blockPagePreview()
A
43 13 48
SEO_SG_Protection::PatchWPConfig_file()
A
43 13 45
sg_Geo_IP2Country::decodeByType()
A
47 13 34
SEO_SG_Protection_HTML::ExtensionsPage()
A
40 9 70
SEO_SG_Protection_2::BlockPage()
A
44 10 47
SEO_SG_Protection::UpdateGEOdb()
A
46 10 33
SEO_SG_Protection::CheckWPConfig_file()
A
50 10 26
SEO_SG_Protection::GetCountryCode()
S
52 7 22
SEO_SG_Protection::Get_Params()
S
48 6 34
SEO_SG_Protection_2::GetCountryCode()
S
53 6 22
sg_Geo_IP2Country::decodeBigUint()
S
52 6 22
SEO_SG_Protection_HTML::CountryList_checkboxes()
S
54 6 19
SEO_SG_Protection_2::Check_IP_in_list()
S
56 6 18
SEO_SG_Protection::PreparePieData()
S
56 6 17
plgsggeo_activation()
S
46 4 45
SEO_SG_Protection::GetMyIP()
S
66 7 7
SEO_SG_Protection::GeneratePieData()
S
50 5 29
sg_Geo_IP2Country::decode()
S
51 5 28
sg_Geo_IP2Country::readNode()
S
51 5 26
sg_Geo_IP2Country::findAddressInTree()
S
54 5 19
SEO_SG_Protection_2::Check_if_User_IP_allowed()
S
57 5 17
SEO_SG_Protection::Check_IP_in_list()
S
57 5 16
SEO_SG_Protection::Check_if_User_IP_allowed()
S
57 5 16
sg_Geo_IP2Country::sizeFromCtrlByte()
S
57 5 15
sg_Geo_IP2Country::get()
S
62 6 10
SEO_SG_Protection::PrepareDomain()
S
65 6 7
sg_Geo_IP2Country::ipV4StartNode()
S
60 5 14
sg_Geo_IP2Country::findMetadataStart()
S
54 4 20
SEO_SG_Protection::Set_Params()
S
54 4 20
SEO_SG_Protection::CheckBlockLog()
S
55 4 19
sg_Geo_IP2Country::__construct()
S
57 4 16
sg_Geo_IP2Country::read()
S
62 4 12
SEO_SG_Protection::CheckAntivirusInstallation()
S
61 4 12
SEO_SG_Protection::CreateRemote_file_contents()
S
51 3 25
Installer_GEO_SG_Protection::Installer_from_URL()
S
54 3 23
Installer_GEO_SG_Protection::Do_Update()
S
55 3 19
plgsggeo_admin_init()
S
55 3 18
sg_Geo_IP2Country::getCountryByIP()
S
68 4 6
SEO_SG_Protection_HTML::BlockPage()
S
53 2 28
Installer_GEO_SG_Protection::CheckForUpdates()
S
61 3 11
SEO_SG_Protection_HTML::Load_GEO_to_SQL()
S
56 2 25
SEO_SG_Protection_HTML::Wait_CSS_Loader()
S
56 1 35
SEO_SG_Protection_2::Check_if_User_allowed()
S
74 3 4
sg_Geo_IP2Country::getContinentByIP()
S
69 3 6
SEO_SG_Protection_2::GetMyIP()
S
69 3 6
SEO_SG_Protection::Check_if_User_allowed()
S
74 3 4
sg_Geo_IP2Country::metadata()
S
72 3 5
SEO_SG_Protection::CheckIfPRO()
S
63 3 9
sg_Geo_IP2Country::startNode()
S
70 3 6
sg_Geo_IP2Country::decodePointer()
S
60 2 12
Installer_GEO_SG_Protection::UpdateExtJSON()
S
61 2 11
sg_Geo_IP2Country::decodeArray()
S
66 2 8
sg_Geo_IP2Country::decodeBoolean()
S
79 2 3
sg_Geo_IP2Country::verifySize()
S
79 2 3
SEO_SG_Protection::Get_Last_Update_date_GEOdb()
S
65 2 8
plgsggeo_activation_do_redirect()
S
69 2 7
plgsggeo_settings_check()
S
78 2 3
sg_Geo_IP2Country::decodeMap()
S
65 2 9
sg_Geo_IP2Country::close()
S
75 2 4
geoprotection_admin_notice()
S
67 2 8
sg_Geo_IP2Country::getNameByCountryCode()
S
69 2 7
sg_Geo_IP2Country::resolveDataPointer()
S
68 2 7
sg_Geo_IP2Country::maybeSwitchByteOrder()
S
79 2 3
sg_Geo_IP2Country::setMetaData()
S
58 1 15
SEO_SG_Protection_2::Save_Block_alert()
S
61 1 12
register_plgsggeo_upgrade_redirect()
S
66 1 12
SEO_SG_Protection::Save_Block_alert()
S
62 1 11
plgsggeo_uninstall()
S
63 1 11
SEO_SG_Protection::Add_IP_adresses_shutdown_function()
S
66 1 7
sg_Geo_IP2Country::decodeUint()
S
74 1 4
plgsggeo_deactivation()
S
77 1 4
register_plgsggeo_backendprotection_subpage()
S
78 1 3
register_plgsggeo_support_subpage()
S
78 1 3
SEO_SG_Protection::API_Request()
S
89 1 2
sg_Geo_IP2Country::decodeString()
S
82 1 3
plgsggeo_domain_callback()
S
73 1 5
sg_Geo_IP2Country::decodeDouble()
S
75 1 4
sg_Geo_IP2Country::decodeFloat()
S
75 1 4
sg_Geo_IP2Country::zeroPadLeft()
S
78 1 3
plgsggeo_big_dashboard_widget()
S
100 1 2
register_plgsggeo_redirect_subpage()
S
78 1 3
register_plgsggeo_customize_subpage()
S
78 1 3
register_plgsggeo_logs_subpage()
S
78 1 3
SEO_SG_Protection::Delete_old_logs()
S
67 1 7
register_plgsggeo_upgrade_subpage()
S
79 1 3
sg_Geo_IP2Country::isPlatformLittleEndian()
S
72 1 5
register_plgsggeo_extensions_subpage()
S
79 1 3
SEO_SG_Protection::CreateSettingsFile()
S
65 1 8
plgsggeo_ajax_refresh()
S
77 1 4
plgsggeo_extensions_page()
S
78 1 4
plgsggeo_footer_protectedby()
S
100 1 2
sg_Geo_IP2Country::decoderFunc()
S
71 1 6
Installer_GEO_SG_Protection::sep_replace()
S
79 1 3
sg_Geo_IP2Country::decodeInt32()
S
72 1 5
SEO_SG_Protection::GetLatestRecords()
S
64 1 10
register_plgsggeo_page()
S
73 1 4