freertos / coreHTTP
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 33 units with 1,409 lines of code in units (75.1% of code).
    • 0 very long units (0 lines of code)
    • 12 long units (823 lines of code)
    • 15 medium size units (508 lines of code)
    • 4 small units (58 lines of code)
    • 2 very small units (20 lines of code)
0% | 58% | 36% | 4% | 1%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 58% | 36% | 4% | 1%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source0% | 58% | 36% | 4% | 1%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static HTTPStatus_t sendHttpData()
in source/core_http_client.c
89 1 4
HTTPStatus_t HTTPClient_Send()
in source/core_http_client.c
89 17 6
static HTTPStatus_t findHeaderInResponse()
in source/core_http_client.c
81 8 6
80 13 2
70 14 1
69 12 3
static HTTPStatus_t addHeader()
in source/core_http_client.c
66 8 5
HTTPStatus_t HTTPClient_AddRangeHeader()
in source/core_http_client.c
60 10 3
HTTPStatus_t HTTPClient_ReadHeader()
in source/core_http_client.c
58 9 5
static HTTPStatus_t writeRequestLine()
in source/core_http_client.c
55 7 5
static HTTPStatus_t sendHttpData()
in source/core_http_client.c
54 7 4
HTTPStatus_t HTTPClient_AddHeader()
in source/core_http_client.c
52 9 5
static HTTPStatus_t parseHttpResponse()
in source/core_http_client.c
49 2 3
46 6 1
static HTTPStatus_t addRangeHeader()
in source/core_http_client.c
39 3 3
39 5 3
static int findHeaderValueParserCallback()
in source/core_http_client.c
38 3 3
34 3 3
static int httpParserOnBodyCallback()
in source/core_http_client.c
34 3 3
static HTTPStatus_t sendHttpRequest()
in source/core_http_client.c
34 5 6