code is the number of linearly independent paths within it. 4 If the source code contained no control flow statements (conditionals or decision points), the complexity would be 1. 4 One IF statement = two paths through the code, complexity would be 2. 4 Two nested single-condition IFs, or one IF with two conditions, would produce a complexity of 3. https://en.wikipedia.org/wiki/Cyclomatic_complexity
reflect the implementation or expression of algorithms in different languages, but be independent of their execution on a specific platform. https://en.wikipedia.org/wiki/ Halstead_complexity_measures http://www.verifysoft.com/en_halstead_metrics.html
metrics, LOC and Cyclomatic complexity number. General scores: 4 <64: low maintainability. The project has probably technical debt. 4 65-84: medium maintainability. The project has problems, but nothing really serious. 4 >85: high maintainability. The project is probably good.