microsoft / azure-app-service-plugin
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 170 units with 1,403 lines of code in units (64.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (15 lines of code)
    • 10 simple units (319 lines of code)
    • 159 very simple units (1,069 lines of code)
0% | 0% | 1% | 22% | 76%
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
java0% | 0% | 1% | 23% | 75%
js0% | 0% | 0% | 14% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
java/com/microsoft/jenkins/appservice/util0% | 0% | 20% | 0% | 80%
java/com/microsoft/jenkins/appservice/commands0% | 0% | 0% | 22% | 77%
java/com/microsoft/jenkins/appservice0% | 0% | 0% | 26% | 73%
java/com/microsoft/jenkins/services0% | 0% | 0% | 92% | 7%
webapp/scripts0% | 0% | 0% | 14% | 85%
java/com/microsoft/jenkins/exceptions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static TokenCache getInstance()
in src/main/java/com/microsoft/jenkins/appservice/util/TokenCache.java
15 13 1
public Void call()
in src/main/java/com/microsoft/jenkins/appservice/commands/FTPDeployCommand.java
38 9 0
public static boolean executeCommands()
in src/main/java/com/microsoft/jenkins/services/CommandService.java
25 9 1
public void perform()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
39 8 4
private DockerBuildInfo validateDockerBuildInfo()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
22 8 3
private void removeFtpDirectory()
in src/main/java/com/microsoft/jenkins/appservice/commands/FTPDeployCommand.java
25 8 2
var triggerClick = function()
in src/main/webapp/scripts/webapp.js
17 8 1
public void configure()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentCommandContext.java
33 7 4
public String call()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerBuildCommand.java
41 7 0
public void execute()
in src/main/java/com/microsoft/jenkins/appservice/commands/FTPDeployCommand.java
33 6 1
public void execute()
in src/main/java/com/microsoft/jenkins/appservice/commands/GitDeployCommand.java
46 6 1
public ListBoxModel doFillAppNameItems()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
16 5 2
public FormValidation doVerifyConfiguration()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
23 5 3
public boolean isWebAppOnLinux()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
11 5 3
private FilePath findDockerFile()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerBuildCommand.java
17 5 2
protected String getFullImageName()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerCommand.java
25 5 1
public void execute()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerDeployCommand.java
50 5 1
public static String getUserAgent()
in src/main/java/com/microsoft/jenkins/appservice/util/TokenCache.java
19 5 0
app.onclick = app.onchange = function()
in src/main/webapp/scripts/webapp.js
22 5 0
private static AuthConfig getAuthConfig()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
17 4 2