microsoft / PowerPlatformConnectors
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 130 units with 2,813 lines of code in units (85.1% of code).
    • 1 very long units (237 lines of code)
    • 11 long units (784 lines of code)
    • 35 medium size units (1,049 lines of code)
    • 32 small units (439 lines of code)
    • 51 very small units (304 lines of code)
8% | 27% | 37% | 15% | 10%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py22% | 12% | 25% | 19% | 19%
csx0% | 37% | 44% | 12% | 5%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
tools/paconn-cli22% | 12% | 25% | 19% | 19%
certified-connectors/DocuSignDemo0% | 45% | 37% | 9% | 7%
certified-connectors/DocuSign0% | 47% | 34% | 14% | 4%
custom-connectors/Snowflake0% | 89% | 0% | 10% | 0%
certified-connectors/Spring Global0% | 39% | 53% | 0% | 6%
certified-connectors/SurveyMonkey0% | 25% | 60% | 14% | 0%
certified-connectors/Airmeet0% | 0% | 85% | 0% | 14%
certified-connectors/Blackbaud Raiser's Edge NXT Fundraising0% | 0% | 67% | 32% | 0%
certified-connectors/Blackbaud Raiser's Edge NXT Constituents0% | 0% | 71% | 28% | 0%
certified-connectors/Blackbaud Raiser's Edge NXT Gifts0% | 0% | 71% | 28% | 0%
certified-connectors/Blackbaud Raiser's Edge NXT Interactions0% | 0% | 71% | 28% | 0%
certified-connectors/Blackbaud Raiser's Edge NXT Prospects0% | 0% | 71% | 28% | 0%
certified-connectors/Data80% | 0% | 100% | 0% | 0%
independent-publisher-connectors/OpenCage Geocoding0% | 0% | 0% | 48% | 51%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def load_arguments()
in tools/paconn-cli/paconn/commands/params.py
237 1 2
csx
private async Task ParseandProcessString()
in custom-connectors/Snowflake/script.csx
94 13 0
csx
private async Task UpdateResponse()
in certified-connectors/DocuSign/script.csx
83 13 1
csx
private async Task UpdateResponse()
in certified-connectors/DocuSignDemo/script.csx
83 13 1
csx
private async Task UpdateRequest()
in certified-connectors/DocuSignDemo/script.csx
80 13 0
csx
private async Task UpdateRequest()
in certified-connectors/DocuSign/script.csx
76 12 0
def download()
in tools/paconn-cli/paconn/operations/download.py
66 4 4
def upsert()
in tools/paconn-cli/paconn/operations/upsert.py
66 21 5
csx
public string GetSurveySchema()
in certified-connectors/Spring Global/script.csx
62 8 1
csx
private static string TransformWebhookNotificationBody()
in certified-connectors/DocuSign/script.csx
61 21 1
csx
private static string TransformWebhookNotificationBody()
in certified-connectors/DocuSignDemo/script.csx
61 21 1
csx
private async Task UpdateRequest()
in certified-connectors/SurveyMonkey/script.csx
52 11 0
csx
public string GetSurveyData()
in certified-connectors/Spring Global/script.csx
47 8 1
csx
private async Task UpdateApiEndpoint()
in certified-connectors/DocuSign/script.csx
40 6 0
csx
private async Task UpdateApiEndpoint()
in certified-connectors/DocuSignDemo/script.csx
40 6 0
csx
private async Task UpdateResponse()
in certified-connectors/SurveyMonkey/script.csx
39 10 1
csx
public override async Task ExecuteAsync()
in certified-connectors/Spring Global/script.csx
37 5 0
csx
private JObject CreateEnvelopeFromTemplateBodyTransformation()
in certified-connectors/DocuSign/script.csx
36 5 1
csx
private JObject CreateEnvelopeFromTemplateBodyTransformation()
in certified-connectors/DocuSignDemo/script.csx
36 5 1
csx
private async Task UpdateNameRequest()
in certified-connectors/Airmeet/script.csx
35 8 0