firebase / friendlypix-ios
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 106 units with 1,233 lines of code in units (41.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (251 lines of code)
    • 4 simple units (110 lines of code)
    • 98 very simple units (872 lines of code)
0% | 0% | 20% | 8% | 70%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
swift0% | 0% | 20% | 8% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
FriendlyPix0% | 0% | 22% | 6% | 70%
FriendlyPixUITests0% | 0% | 0% | 26% | 73%
FriendlyPixTests0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func loadFeed()
in FriendlyPix/FPFeedViewController.swift
79 22 0
func populateContent()
in FriendlyPix/FPCardCollectionViewCell.swift
98 12 3
func listenPost()
in FriendlyPix/FPFeedViewController.swift
49 11 1
func timeAgo()
in FriendlyPix/DateExtension.swift
25 11 0
func authUI()
in FriendlyPix/AppDelegate.swift
18 8 3
func toggleFollow()
in FriendlyPix/FPAccountViewController.swift
21 7 1
func signInWithGoogle()
in FriendlyPixUITests/FriendlyPixUITests.swift
34 7 0
func application()
in FriendlyPix/AppDelegate.swift
37 6 2
func loadUserPosts()
in FriendlyPix/FPHashTagViewController.swift
25 5 0
func updateHomeFeeds()
in FriendlyPix/FPFeedViewController.swift
38 5 0
func signed()
in FriendlyPix/AppDelegate.swift
20 5 1
func loadUserPosts()
in FriendlyPix/FPAccountViewController.swift
25 5 0
func loadPost()
in FriendlyPix/FPFeedViewController.swift
26 4 1
func updatePost()
in FriendlyPix/FPFeedViewController.swift
18 4 2
func toogleLike()
in FriendlyPix/FPFeedViewController.swift
18 4 2
func startHomeFeedLiveUpdaters()
in FriendlyPix/FPFeedViewController.swift
21 4 0
func takeNewPhoto()
in FriendlyPixUITests/FriendlyPixUITests.swift
20 4 0
func registerForPostsDeletion()
in FriendlyPix/FPHashTagViewController.swift
16 3 0
func loadFeed()
in FriendlyPix/FPHashTagViewController.swift
15 3 0
func resizeImage()
in FriendlyPix/UIImage+Circle.swift
27 3 1