Code Analysis: WP Visitor Statistics (Real Time Traffic) 7.8

Function Rating Maintainability Complexity Lines of code
wsmFnGetTimeZoneByCountry()
D
0
737 2,240
wsmStatistics::wsm_showRefferStatsBox()
D
7
107 383
wsmAdminInterface::wsmViewSettings()
D
5
66 562
wsmStatistics::wsm_showTrafficStatsList()
D
11
70 364
wsmStatistics::wsm_showContentByURLStats()
D
16
61 248
wsmStatistics::wsm_showDayStatBox()
D
19
59 235
wsmAdminInterface::fnPrintHeader()
D
25
57 122
wsmInitPlugin::wsm_registerMetaboxes()
D
18
43 246
wsmStatistics::wsm_showTitleCloud()
D
22
41 180
wsmStatistics::wsm_showGeoLocationDetails()
D
22
40 185
wsmDatabase::fnGetTotalVisitorsCount()
D
32 36 87
wsmStatistics::wsm_showVisitorsDetail()
D
25
30 165
wsmInitPlugin::wsm_allAjaxRequests()
D
25
20 297
wsmAdminInterface::wsmViewAddOns()
D
31 33 99
wsmStatistics::wsm_showTopReferrerList()
D
24
27 177
wsmStatistics::wsm_showContentByURL()
D
27
28 140
wsmStatistics::wsm_showStatFilterBox()
C
20
17 290
wsmStatistics::wsm_showDayStatsGraph()
C
22
16 281
wsmInitPlugin::wsmCreateDatabaseSchema()
C
20
1 492
wsmDatabase::fnGetTotalPageViewCount()
C
36 29 67
wsmDatabase::fnGetFirstTimeVisitorCount()
C
36 29 66
wsmAdminInterface::wsmCreateSubLayout()
C
30 22 145
wsmDatabase::fnGetReferralTotalPageViewCount()
C
37 27 61
wsmDatabase::fnGetReferralFirstTimeVisitorCount()
B
38 24 60
wsmDatabase::getReferralOSStats()
B
37 23 65
wsmDatabase::fnGetReferralTotalVisitorsCountByBroswerOS()
B
41 22 50
wsmDatabase::fnGetReferralList()
B
40 21 50
wsmStatistics::wsm_showGeoLocationGraph()
B
32 17 107
wsmInitPlugin::wsm_getLiveStats()
B
39 20 59
wsmStatistics::wsm_showRecentVisitedPagesDetails()
B
37 19 61
wsmAdminInterface::wsmSavePluginSettings()
B
40 19 57
wsmSanitizeFilteredPostData()
B
37 17 80
wsmStatistics::wsm_showRecentVisitedPages()
B
38 18 60
wsmInitPlugin::wsm_addTrackerScript()
B
39 17 68
wsmStatistics::wsm_showMostActiveVisitorsDetails()
B
37 17 66
wsmStatistics::wsm_showTopReferrerListDetails()
B
33 15 91
wsmDatabase::getReferralSiteStats()
B
43 18 41
wsmDatabase::fnGetURLogID()
B
41 17 55
wsmStatistics::wsm_showMostActiveVisitorsGeo()
B
31 11 132
wsmDatabase::fnGetDailyReportByMonthNameTimeZone()
B
37 15 71
wsmDatabase::fnGetReferralTotalVisitorsCount()
B
46 17 34
wsmDatabase::fnGetReferralTotalVisitorsCountByRefURL()
B
46 17 31
wsmInitPlugin::wsm_getUOSummary()
A
41 15 54
wsmDatabase::fnGetListOfUrlsByReferral()
A
45 16 35
wsmStatistics::wsm_showLastDaysStatsChart()
A
28
6 184
wsmDatabase::fnGetHourlyReportByDateNameTimeZone()
A
39 14 59
wsmDatabase::getContentByURLStats()
A
44 15 36
wsmDatabase::fnCorrectDatabaseTables()
A
46 15 36
wsmDatabase::fnGetMonthlyReportByYear()
A
39 13 64
wsmStatistics::wsm_showCurrentStats()
A
26
2 228
wsmStatistics::wsm_showMostActiveVisitors()
A
41 14 46
wsmDatabase::fnGetTotalReferralsByRefURL()
A
49 15 24
wsmStatistics::wsm_showVisitorsDetailGraph()
A
38 12 67
wsmDatabase::fnGetDailyReportByMonth()
A
41 13 50
wsmFnGetDateRangeTitle()
A
45 13 45
wsmRequests::fnSetVisitorLocationInfo()
A
50 14 27
wsmInitPlugin::wsm_checkView()
A
40 12 51
wsmArchiveTitleFromURL()
A
47 12 38
wsmStatistics::wsm_showForeCast()
A
40 11 51
wsmDatabase::fnGetReferralTotalVisitorsCountByOSBrowser()
A
49 12 28
wsmStatistics::wsm_showStatKeywords()
A
44 11 41
wsmDatabase::getVisitorsInfo()
A
44 11 41
wsmDatabase::fnGetReferralTotalVisitorsCountByCountry()
A
49 12 25
wsmRequests::fnGetLocalTime()
A
52 12 23
wsm_free_Notification::wsm_timezone_mismatch_notice()
A
39 8 82
wsmDatabase::getReferralCountryStats()
A
46 11 35
wsmDatabase::fnGetHistoricalHourlyStatsByDate()
A
42 10 49
wsmRequests::fnFindVisitor()
A
48 10 30
wsmDatabase::getContentURLDayWiseStats()
A
48 10 28
wsmInitPlugin::wsm_getDateWiseLocationDetail()
A
40 8 58
wsmDatabase::fnInsertNewUniqueVisit()
A
51 10 24
wsmDatabase::getGeoLocationInfo()
A
46 9 37
wsmFnGetPagination()
A
47 9 35
wsmInitPlugin::wsm_admin_menu()
A
42 8 48
wsmInitPlugin::wsm_save_ipadress()
A
44 8 44
wsmRequests::fnHandleExistingVisit()
A
49 9 29
wsmInitPlugin::wsm_getReferralOSDetails()
A
40 7 58
wsmInitPlugin::wsm_getReferrerUrlDetails()
A
40 7 58
wsmFnCalculateForeCastData()
A
50 9 27
wsmInitPlugin::wsm_plugin_init()
A
50 9 25
wsmGetSearchKeywords()
A
51 9 24
wsmStatistics::wsm_showPopularReferrers()
A
46 8 36
wsmDatabase::fnGetRefLogID()
A
48 8 32
wsmStatistics::wsm_showLastDaysStats()
A
47 8 32
wsmStatistics::wsm_showGeoLocation()
A
39 5 76
wsmUrlToPostid()
A
48 8 30
wsmInitPlugin::wsm_strip_tags()
A
35 3 100
wsmInitPlugin::wsm_adminIncludeScripts()
A
51 8 25
wsmRequests::__construct()
A
52 8 25
wsmRequests::fnGetParam()
A
42 6 53
wsmDatabase::fnUpdateExistingVisit()
A
52 8 22
wsmDatabase::getContentByURLTotalRecords()
A
52 8 20
wsmDatabase::fnGetMonthlyReportByYearNameTimeZone()
A
46 7 35
wsmFnStatCalculations()
A
54 8 20
wsmFnGetLocationInfo()
A
49 7 34
wsmGetWPTimezoneString()
A
55 8 18
wsmInitPlugin::wsmCreateDatabaseTables()
A
55 8 17
wsmGetTimezoneString()
A
56 8 17
wsmInitPlugin::wsm_getContentUrlDayView()
S
40 5 59
wsmDatabase::fnGetTotalStatsByMonth()
S
50 7 29
wsmStatistics::wsm_showActiveVisitorsByCity()
S
48 7 28
wsmDatabase::getReferralDeviceStartEndVisit()
S
51 7 27
wsmAdminInterface::wsmGetChartDaysDropDown()
S
50 7 27
wsmDatabase::fnGetTodaysVisitorsByHour()
S
49 7 27
wsmFnGetMonthDropDown()
S
49 7 26
wsmStatistics::wsm_showIPExclustion()
S
46 6 37
wsmDatabase::fnInsertNewVisit()
S
54 7 19
wsm_free_Notification::wsm_free_review_notice()
S
56 7 17
wsmRequests::fnSetBrowserId()
S
57 7 16
wsmDatabase::fnGetHistoricalDayStatsByDays()
S
48 6 31
wsmStatistics::wsm_showPopularPages()
S
47 6 31
wsmDateDifference()
S
49 6 31
wsmFnGetFilterPostData()
S
55 7 14
wsmDatabase::getContentByURLVisitors()
S
58 7 13
wsmAdminInterface::wsmGetArchiteDaysDropDown()
S
50 6 28
wsmStatistics::wsm_showDayStats()
S
45 5 39
wsmInitPlugin::wsm_activate()
S
55 6 19
wsmInitPlugin::wsm_getReferrerDetails()
S
49 5 33
wsmRequests::fnSetOSId()
S
56 6 18
wsmFormatHourlyStats()
S
57 6 16
wsmInitPlugin::wsm_commonScript()
S
47 5 31
wsmRequests::fnSetSearchKeyword()
S
58 6 15
wsmInitPlugin::wsm_admin_init()
S
59 6 13
wsm_free_Notification::wsm_free_review_dismissal()
S
61 6 12
wsmStatistics::wsm_showActiveVisitorsByCountry()
S
49 5 27
wsm_free_Notification::wsm_free_review_pending()
S
61 6 12
wsmDatabase::fnGetTotalPageViewsByCountries()
S
52 5 24
wsmDatabase::fnGetTotalVisitorsByCountries()
S
52 5 24
wsmInitPlugin::wsm_deactivate()
S
40 2 66
wsmDatabase::fnGetActiveVisitorsCount()
S
53 5 20
wsmAdminInterface::wsmShowMainPageLayout()
S
53 5 20
wsmRequests::fnSetURL()
S
55 5 20
wsmDatabase::fnGetDayWiseBounceRateByNumberOfDays()
S
53 5 20
wsmDatabase::fnGetMostActiveVisitors()
S
54 5 19
wsmStatistics::wsm_showGeneralStats()
S
49 4 33
wsmRequests::fnSetRefURL()
S
56 5 18
wsmDatabase::fnGetTodaysForeCastData()
S
56 5 16
wsmDatabase::fnGetCurrentDayHourlyStats()
S
44 3 46
wsmStatistics::wsm_showGenStats()
S
48 4 31
wsm_sanitize_text_or_array_field()
S
59 5 15
wsmDatabase::fnGetOSIDByTitle()
S
57 5 15
wsmDatabase::fnGetResolutionIDByTitle()
S
57 5 15
wsmDatabase::fnGetBrowserIDByTitle()
S
57 5 15
wsmDatabase::fnGetNDayFromFirstVisitActionTime()
S
59 5 15
wsmInitPlugin::wsm_deleteIpAddress()
S
51 4 28
wsmInitPlugin::wsm_updateIpAddress()
S
51 4 28
wsmInitPlugin::wsm_viewError()
S
53 4 27
wsmDatabase::fnGetRegionIdByCode()
S
61 5 11
wsmDatabase::fnGetCountryIdByCode()
S
61 5 11
wsmDatabase::fnGetReferralKeywords()
S
53 4 22
wsmFnGetYearDropDown()
S
56 4 17
wsmDatabase::fnUpdateURLParameters()
S
57 4 17
wsmCurrentGetTimezoneOffset()
S
57 4 16
wsmDatabase::fnGetDayWiseFirstTimeVisitorCount()
S
56 4 16
wsmDatabase::fnGetLastDaysHourlyAverageStats()
S
57 4 16
wsmConvertSecondsToTimeFormat()
S
63 5 9
wsmInitPlugin::wsm_setting_popup_func()
S
64 5 8
wsmDatabase::fnGetToolBarID()
S
58 4 15
wsmAdminInterface::wsmGetCountryDropDown()
S
57 4 15
wsmCleanupTimeZoneString()
S
60 4 13
wsmFnGetIPAddress()
S
60 4 13
wsmDatabase::fnGetSearchEngineID()
S
59 4 13
wsmRequests::fnSetExitURL()
S
61 4 13
wsmRequests::fnSetResolutionId()
S
61 4 12
wsmFnSendCurlRequest()
S
62 4 11
wsmRequests::fnGetBrowserLanguage()
S
62 4 11
wsmDatabase::fnGetTodaysPageViewsByHour()
S
55 3 17
wsmDatabase::fnIsNotDuplicateLinkVisit()
S
56 3 17
wsmDatabase::fnGetAverageVisitLength()
S
57 3 16
wsmInitPlugin::wsm_footerScripts()
S
58 3 16
wsmDatabase::fnGetTodaysBounceRateByHour()
S
57 3 16
wsmRequests::fnGetReturningVisitor()
S
64 4 10
wsmDatabase::getReferralSiteStartEndVisit()
S
58 3 15
wsm_free_Notification::wsm_get_system_timezone()
S
63 4 10
wsmAdminInterface::fnShowTopReferrerSites()
S
68 4 6
wsmDatabase::fnLogError()
S
64 4 10
wsmAdminInterface::fnShowReffererStatBox()
S
68 4 6
wsmDatabase::getReferralCountryStartEndVisit()
S
59 3 14
wsmConvertTimeDifference()
S
59 3 14
wsmRequests::fnHandleNewVisit()
S
60 3 13
wsmDatabase::fnGetDayWisePageViewsByNumberOfDays()
S
59 3 12
wsmDatabase::fnGetDayWiseVisitorsByNumberOfDays()
S
59 3 12
wsm_free_Notification::wsm_free_review_notice_message()
S
52 2 27
wsmRequests::fnIsVisitNew()
S
64 3 11
wsmRequests::fnGetDaysSinceLastVisit()
S
63 3 11
wsmRequests::fnGetDaysSinceFirstVisit()
S
62 3 11
wsmStatistics::wsm_addShortCodes()
S
48 1 37
wsmAdminInterface::fnPrintTitle()
S
55 1 36
wsmInitPlugin::initWsm()
S
47 1 33
wsmDatabase::fnGetMonthlyStatsByRange()
S
56 2 17
wsmDatabase::fnGetDailyStatsByMonthRange()
S
56 2 17
wsm_free_add_items()
S
57 2 16
wsmRequests::fnGetTimeSpentReferrerAction()
S
65 3 10
wsmInitPlugin::wsm_getTimezoneByCountry()
S
71 3 5
wsmValidateDateTime()
S
62 3 10
wsmGetAverageOfArray()
S
65 3 10
wsmAdminInterface::fnShowDaysStatsGraph()
S
63 3 10
wsmRequests::fnSetConfigId()
S
58 2 15
wsmInitPlugin::wsm_async_scripts()
S
65 3 9
wsmRequests::fnIsLastActionInTheSameVisit()
S
69 3 6
wsmDatabase::fnGetSearchEngineList()
S
64 3 9
wsmGetChangeInPercentage()
S
66 3 8
wsmDatabase::fnGetTotalPageViewsByRegion()
S
63 3 10
wsmIsTimestampValid()
S
68 3 7
wsmDatabase::fnGetHourlyStatsByDateRange()
S
58 2 14
wsmConvertDateUTCtoTimeZone()
S
61 2 12
wsmGetCurrentDateByTimeZone()
S
62 2 12
wsmGetDateByInterval()
S
61 2 12
wsm_free_customizer_admin_inline_styles()
S
69 2 12
wsmGetYesterdayDateByTimeZone()
S
62 2 12
wsmRequests::fnSetTheNewProperties()
S
55 1 22
wsmRequests::fnSetMiscProperties()
S
55 1 19
wsmInitPlugin::wsm_fnCreateImportantViews()
S
56 1 17
wsmInitPlugin::wsm_createHourWiseViews()
S
56 1 16
wsmRequests::fnWasLastActionNotToday()
S
64 2 10
wsmRequests::fnHandleVisit()
S
67 2 9
wsmAdminInterface::fnShowContentByURL()
S
70 2 6
wsmInitPlugin::wsmCreateDatabaseSchemaForNewSite()
S
70 2 7
wsmAdminInterface::fnIPExclusion()
S
70 2 6
wsmInitPlugin::wsm_admin_head()
S
58 1 15
wsmAdminInterface::fnShowGeoLocationStats()
S
70 2 6
wsmRequests::fnGetVisitorProperty()
S
72 2 6
wsmGetVisitorIdFromCookie()
S
64 2 9
wsmDatabase::fnGetCurrentDayStats()
S
58 1 15
wsmRequests::fnSetPageID()
S
69 2 7
wsmAdminInterface::fnShowMostActiveVisitorsGeo()
S
70 2 6
wsmAdminInterface::fnShowPopularPages()
S
70 2 6
wsmRequests::fnGetVisitCount()
S
70 2 7
wsmRequests::fnSetFirstActionVisitTime()
S
71 2 6
wsmAdminInterface::fnShowActiveVistiorsCountByCountry()
S
70 2 6
wsmAdminInterface::fnShowMostActiveVisitorsDetails()
S
70 2 6
wsmRequests::fnSetLastHitTime()
S
72 2 5
wsmAdminInterface::fnShowRecentVisitedPagesDetails()
S
70 2 6
wsmInitPlugin::wsmAddWrapperToShortCode()
S
69 2 6
wsmGetTimeZone()
S
70 2 7
wsmRequests::fnSetUserID()
S
67 2 8
wsm_add_async_defer_attribute()
S
72 2 5
wsmAdminInterface::fnShowRecentVisitedPages()
S
70 2 6
wsmAdminInterface::wsmViewIPExclusion()
S
65 2 9
wsmAdminInterface::fnShowVisitorsDetails()
S
70 2 6
wsmRequests::fnSetBrowserLanguage()
S
72 2 6
wsmFnIsCrossDomain()
S
65 2 9
wsmRequests::fnSetTotalVisitTime()
S
64 2 10
wsmDatabase::fnFindVisitorByConfigId()
S
65 2 8
wsmAdminInterface::fnStatsSearchKeywords()
S
70 2 6
wsmRequests::fnSetSiteID()
S
67 2 8
wsmAdminInterface::fnShowDailyStatBox()
S
70 2 6
wsmAdminInterface::fnShowContentURLStats()
S
70 2 6
wsmGetDateByTimeStamp()
S
64 2 10
wsmAdminInterface::fnShowMostActiveVisitors()
S
70 2 6
wsmAdminInterface::fnStatFilterBox()
S
70 2 6
wsmAdminInterface::wsmViewContent()
S
65 2 9
wsmAdminInterface::wsmViewTrafficSources()
S
63 2 10
wsmAdminInterface::fnShowMostActiveVisitorsGeoDetails()
S
70 2 6
wsmAdminInterface::fnShowLastDaysStats()
S
68 2 7
wsmAdminInterface::fnShowOsStatBox()
S
70 2 6
wsmAdminInterface::fnStatFilterBox4Referral()
S
70 2 6
wsmAdminInterface::fnShowPopularReferrers()
S
70 2 6
wsmAdminInterface::fnShowSearchEngineSummary()
S
70 2 6
wsmAdminInterface::fnShowTitleCloud()
S
70 2 6
wsmAdminInterface::fnShowActiveVistiorsCountByCity()
S
70 2 6
wsmInitPlugin::wsm_createMonthWiseViews()
S
57 1 15
wsmAdminInterface::fnShowGeoLocationChart()
S
70 2 6
wsmDatabase::fnGetBounceRateByDate()
S
66 2 8
wsmAdminInterface::wsmViewTraffic()
S
63 2 10
wsmAdminInterface::wsmViewVisitors()
S
65 2 9
wsmAdminInterface::wsmGetTimeZoneDropDown()
S
67 2 7
wsmAdminInterface::fnShowGeoLocationDetails()
S
70 2 6
wsmAdminInterface::fnShowGenStats()
S
70 2 6
wsmDatabase::fnFindVisitorById()
S
65 2 8
wsmStatistics::wsm_getTopChartBar()
S
59 2 10
wsmAdminInterface::fnShowTodayStats()
S
68 2 7
wsmRequests::fnSetVisitTotalActions()
S
69 2 7
wsmRequests::fnCleanupVisitTotalTime()
S
70 2 7
wsmAdminInterface::fnShowReffererSearchEngineStatBox()
S
70 2 6
wsmRequests::fnSetIPAddress()
S
67 2 8
wsmDatabase::fnGetCurrentHourStats()
S
59 1 13
wsmDatabase::fnGetHistoricalHourlyStatsByDay()
S
60 1 12
wsmRequests::fnSetExistingProperties()
S
65 1 11
wsmRequests::fnSetRefActionTime()
S
80 1 3
wsmDatabase::fnReturnURLElements()
S
63 1 9
wsmInitPlugin::wsm_adminIncludeCSS()
S
91 1 2
wsmInitPlugin::wsm_front_script_style()
S
74 1 4
wsmMaskIPaddress()
S
74 1 4
wsmGetCurrentTimeStamp()
S
80 1 3
wsmDatabase::fnGetAllCountries()
S
71 1 5
wsmInitPlugin::wsm_dailyScheduler()
S
81 1 3
wsmFnDecodeURL()
S
72 1 5
wsmDatabase::fnGetSearchEngine()
S
72 1 5
wsmInitPlugin::wsm_viewSuccess()
S
69 1 8
wsmDatabase::fnUpdateExistingLinkVisit()
S
65 1 9
wsmRequests::fnGetConfigId()
S
81 1 3
wsmRequests::fnGetUserId()
S
81 1 3
wsmGetMaxValueFromArray()
S
81 1 3
wsmDatabase::fnGetPopularPages()
S
63 1 9
wsmDatabase::fnGetColumnsOfLogVisit()
S
72 1 5
wsmDatabase::fnGetLastLinkVisited()
S
71 1 5
wsmGetSpinner()
S
77 1 4
wsmRequests::fnSetVisitorId()
S
80 1 3
wsmDatabase::fnGetColumnsOfLogUniqueVisit()
S
72 1 5
wsmStatistics::wsm_showSearchEngineSummary()
S
100 1 2
wsmAdminInterface::__construct()
S
67 1 8
wsmRequests::fnSetVisitLastActionTime()
S
80 1 3
wsmDatabase::fnGetToolBarList()
S
72 1 5
wsmDatabase::fnGetRecentVisitedPages()
S
62 1 10
wsmDatabase::fnGetPopularReferrers()
S
63 1 9
wsmDatabase::__construct()
S
61 1 9
wsmRequests::fnGetVisitorId()
S
81 1 3
wsmInitPlugin::wsm_correctDatabaseTables()
S
100 1 2
wsmRequests::fnGetPageId()
S
81 1 3
wsmDatabase::fnGetTotalBrowsingPages()
S
65 1 8
wsm_free_Notification::__construct()
S
82 1 3
wsmStatistics::__construct()
S
77 1 4
wsm_free_Notification::_hooks()
S
75 1 4
wsmRequests::fnGetSiteId()
S
81 1 3
wsmGetCurrentUTCDate()
S
68 1 7
wsmStatistics::wsm_getDatabaseObject()
S
83 1 3
wsm_free_top_bar_enqueue_style()
S
73 1 9
wsmRequests::fnGenerateDailyReports()
S
72 1 5
wsmAdminInterface::wsm_upgrade_to_pro()
S
83 1 3
wsmDatabase::fnGetFirstVisitDate()
S
72 1 5
wsmRequests::fnSetVisitorProperty()
S
80 1 3
wsmInitPlugin::wsmCreateDatabaseView()
S
72 1 5
wsmRequests::fnGetVisitorProperties()
S
69 1 4
wsmFNUpdateLogFile()
S
69 1 6
wsmFnIsExtensionLoaded()
S
81 1 3