microsoft / WinAppDriver
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 452 units with 5,650 lines of code in units (41.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (131 lines of code)
    • 11 medium complex units (680 lines of code)
    • 50 simple units (1,545 lines of code)
    • 390 very simple units (3,294 lines of code)
0% | 2% | 12% | 27% | 58%
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
cs0% | 2% | 7% | 27% | 62%
cpp0% | 0% | 49% | 27% | 23%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Tools/UIRecorder/UIRecorder0% | 6% | 17% | 32% | 43%
Tools/UIRecorder/UIXPathLib0% | 0% | 49% | 27% | 23%
ApplicationUnderTests/AppUIBasics/Common0% | 0% | 4% | 15% | 80%
ApplicationUnderTests/AppUIBasics/ControlPages0% | 0% | 0% | 28% | 71%
ApplicationUnderTests/AppUIBasics0% | 0% | 0% | 19% | 80%
ApplicationUnderTests/AppUIBasics/DataModel0% | 0% | 0% | 53% | 47%
ApplicationUnderTests/Input0% | 0% | 0% | 22% | 77%
ApplicationUnderTests/AppUIBasics/Navigation0% | 0% | 0% | 0% | 100%
Tools/UIRecorder/UIRecorderTemplate0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static string GenerateXPathToUiElement()
in Tools/UIRecorder/UIRecorder/GenerateXPath.cs
131 37 3
static Dictionary GetTagAttributes()
in Tools/UIRecorder/UIRecorder/GenerateXPath.cs
84 21 1
HRESULT UiTreeWalk::AppendUiAttributes()
in Tools/UIRecorder/UIXPathLib/UiTreeWalk.cpp
110 20 5
HRESULT UiTreeWalk::ElementContainingPoint()
in Tools/UIRecorder/UIXPathLib/UiTreeWalk.cpp
72 20 4
private void CoreDispatcher_AcceleratorKeyActivated()
in ApplicationUnderTests/AppUIBasics/Common/NavigationHelper.cs
28 19 2
public static void HandleUiEvent()
in Tools/UIRecorder/UIRecorder/XmlNodePathRecorder.cs
61 19 4
private void treeUiPath_SelectedItemChanged()
in Tools/UIRecorder/UIRecorder/MainWindow.xaml.cs
68 15 2
HRESULT UiTreeWalk::PathFromRootToTarget()
in Tools/UIRecorder/UIXPathLib/UiTreeWalk.cpp
79 15 2
private void comboBoxRecordedUi_SelectionChanged()
in Tools/UIRecorder/UIRecorder/MainWindow.xaml.cs
54 14 2
private string UpdateNodeXPath()
in Tools/UIRecorder/UIRecorder/WindowEditNodeAttribute.xaml.cs
37 13 0
public static IntPtr MouseHookProc()
in Tools/UIRecorder/UIRecorder/MouseKeyboardHook.cs
39 11 3
bool XmlEncode()
in Tools/UIRecorder/UIXPathLib/UiTreeWalk.cpp
48 11 2
protected override Size ArrangeOverride()
in ApplicationUnderTests/AppUIBasics/Common/WrapPanel.cs
48 10 1
public static IntPtr RunOnUiThread()
in Tools/UIRecorder/UIRecorder/MainWindow.xaml.cs
52 10 5
private RecordedUiTask GetExpandedLeafNode()
in Tools/UIRecorder/UIRecorder/MainWindow.xaml.cs
34 10 3
private void EditAttribute_Click()
in Tools/UIRecorder/UIRecorder/MainWindow.xaml.cs
42 10 2
private static void RecorderThread()
in Tools/UIRecorder/UIRecorder/MouseKeyboardEventHandler.cs
45 10 0
public static void AddToUiTree()
in Tools/UIRecorder/UIRecorder/UiTreeNode.cs
42 10 1
public static void RemoveUiTreeNode()
in Tools/UIRecorder/UIRecorder/UiTreeNode.cs
40 10 1
private void UpdateUiTreeNodeValue()
in Tools/UIRecorder/UIRecorder/WindowEditNodeAttribute.xaml.cs
43 10 0