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

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