firebase / friendlypix-ios
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 106 units with 1,233 lines of code in units (41.7% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (177 lines of code)
    • 14 medium size units (395 lines of code)
    • 19 small units (284 lines of code)
    • 71 very small units (377 lines of code)
0% | 14% | 32% | 23% | 30%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
swift0% | 14% | 32% | 23% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
FriendlyPix0% | 16% | 32% | 21% | 29%
FriendlyPixUITests0% | 0% | 26% | 34% | 39%
FriendlyPixTests0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func populateContent()
in FriendlyPix/FPCardCollectionViewCell.swift
98 12 3
func loadFeed()
in FriendlyPix/FPFeedViewController.swift
79 22 0
func listenPost()
in FriendlyPix/FPFeedViewController.swift
49 11 1
func updateHomeFeeds()
in FriendlyPix/FPFeedViewController.swift
38 5 0
func application()
in FriendlyPix/AppDelegate.swift
37 6 2
func signInWithGoogle()
in FriendlyPixUITests/FriendlyPixUITests.swift
34 7 0
func resizeImage()
in FriendlyPix/UIImage+Circle.swift
27 3 1
func loadPost()
in FriendlyPix/FPFeedViewController.swift
26 4 1
func loadUserPosts()
in FriendlyPix/FPHashTagViewController.swift
25 5 0
func loadUserPosts()
in FriendlyPix/FPAccountViewController.swift
25 5 0
func timeAgo()
in FriendlyPix/DateExtension.swift
25 11 0
func touchIndexInLabel()
in FriendlyPix/FPCardCollectionViewCell.swift
24 1 1
func detectLabelsInImage()
in FriendlyPix/FPUploadViewController.swift
22 1 0
func startHomeFeedLiveUpdaters()
in FriendlyPix/FPFeedViewController.swift
21 4 0
func toggleFollow()
in FriendlyPix/FPAccountViewController.swift
21 7 1
func deleteComment()
in FriendlyPix/FPCommentViewController.swift
21 1 1
func signed()
in FriendlyPix/AppDelegate.swift
20 5 1
func takeNewPhoto()
in FriendlyPixUITests/FriendlyPixUITests.swift
20 4 0
func updatePost()
in FriendlyPix/FPFeedViewController.swift
18 4 2
func toogleLike()
in FriendlyPix/FPFeedViewController.swift
18 4 2