microsoft / Office365APIEditor
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 1,171 units with 24,125 lines of code in units (64.8% of code).
    • 2 very complex units (582 lines of code)
    • 2 complex units (269 lines of code)
    • 31 medium complex units (2,434 lines of code)
    • 74 simple units (2,785 lines of code)
    • 1,062 very simple units (18,055 lines of code)
2% | 1% | 10% | 11% | 74%
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
cs2% | 1% | 10% | 11% | 74%
js0% | 0% | 0% | 80% | 20%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Office365APIEditor/UI2% | 0% | 11% | 10% | 75%
Office365APIEditor/External3% | 4% | 5% | 11% | 74%
Office365APIEditor0% | 0% | 33% | 12% | 53%
Office365APIEditor/ViewerHelper0% | 0% | 0% | 18% | 81%
Office365APIEditor/AccessTokenUtil0% | 0% | 0% | 31% | 68%
PublishSite/Preview0% | 0% | 0% | 80% | 20%
Office365APIEditor/Settings0% | 0% | 0% | 0% | 100%
PublishSite0% | 0% | 0% | 0% | 100%
PublishSite/Controllers0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static unsafe void CopyRtf()
in Office365APIEditor/External/ScintillaNET/Helpers.cs
248 65 3
private void button_Next_Click()
in Office365APIEditor/UI/AccessTokenWizard.cs
334 61 2
private static unsafe void CopyHtml()
in Office365APIEditor/External/ScintillaNET/Helpers.cs
189 38 3
private void WmReflectNotify()
in Office365APIEditor/External/ScintillaNET/Scintilla.cs
80 28 1
private void RequestForm_Load()
in Office365APIEditor/UI/RequestForm.cs
196 25 2
private async void SendMailForm_LoadAsync()
in Office365APIEditor/UI/SendMailForm.cs
174 24 2
private async void FolderViewerForm_Load()
in Office365APIEditor/UI/FolderViewerForm.cs
90 22 2
private static JsonType GetJsonType()
in Office365APIEditor/External/DynamicJson.cs
31 21 1
public RegexOptions GetRegexOptions()
in Office365APIEditor/External/ScintillaNET FindReplaceDialog/FindReplace/FindReplaceDialog.cs
47 20 0
private async void downloadToolStripMenuItem_Click()
in Office365APIEditor/UI/AttachmentViewerForm.cs
123 19 2
private async void CreateEventForm_LoadAsync()
in Office365APIEditor/UI/CreateEventForm.cs
126 19 2
private void ShowMessages()
in Office365APIEditor/UI/FolderViewerForm.cs
63 18 1
private void ShowRunHistoryInMainPanel()
in Office365APIEditor/UI/RequestForm.cs
117 18 1
public static void Copy()
in Office365APIEditor/External/ScintillaNET/Helpers.cs
69 17 6
private void UpdateRecurringSetting()
in Office365APIEditor/UI/CreateEventForm.cs
103 17 1
private async void treeView_Mailbox_AfterSelect()
in Office365APIEditor/UI/MailboxViewerForm.cs
60 17 2
private void PrepareDataGridView()
in Office365APIEditor/UI/DetailedTokenViewer.cs
76 16 2
private CharacterRange FindNextR()
in Office365APIEditor/External/ScintillaNET FindReplaceDialog/FindReplace/FindReplaceDialog.cs
59 15 2
static void Main()
in Office365APIEditor/Program.cs
129 15 1
private bool ResourceOrScopeMatch()
in Office365APIEditor/UI/RequestForm.cs
35 15 1