Code Complexity Measuring Tool



Copy & Paste Your Code:




Weight Related To The Size Factor
Program Component Weight
Keyword
Identifier
Operator
Numerical Value
String Iiteral

Weight Related To The Variable Factor
Program Component Weight
Global Variable
Local Variable
Primitive Data Type Variable
Composite Data Type Variable

Weight Related To The Method Factor
Program Component Weight
Method with a primitive return type
Method with a composite return type
Primitive data type parameter
Composite data type parameter

Weight Related To The Control Structure Factor
Control Structure Type Weight
A conditional control structure such as an 'if' or 'else-if' condition
An iterative control structure such as an 'for' , 'while' , or 'do-while' loop
The 'switch' statement in a 'switch-case' control structure
Each 'case' statement in a 'switch-case' control structure

Weight Related To The Inheritance Factor
Inherited Pattern Weight
A class with no Inheritance(direct or indirect)
A class inheriting(direct or indirect) from one user-defined class
A class inheriting(direct or indirect) from two user-defined classes
A class inheriting(direct or indirect) from three user-defined classes
A class inheriting(direct or indirect) from more than three user-defined classes

Weight Related To The Coupling Factor
Coupling Type Weight
A recursive call
A regular method calling another regular method in the same file
A regular method calling another regular method in a different file
A regular method calling a recursive method in the same file
A regular method calling a recursive method in a different file
A recursive method calling another recursive method in the same file
A recursive method calling another recursive method in a different file
A recursive method calling a regular method in the same file
A recursive method calling a regular method in a different file
A regular method referencing a global variable in the same file
A regular method referencing a global variable in a different file
A recursive method referencing a global variable in the same file
A recursive method referencing a global variable in a different file