Reviewer > Provided PTC reviews > Style reviews > Class complexity (Reviewer Review)
Class complexity (Reviewer Review)
By reading the number of outcomes, iterations and selections on sequence diagrams for each operation in a class, the cyclomatic complexity of the class is calculated.
Classes that have a high level of cyclomatic complexity may benefit from being split.
Classes may have high levels of cyclomatic complexity if they have poor cohesion, this will affect reuse.
Complex classes will also be harder to maintain and test.
Identify if the class is not cohesive and if not split it into separate classes.
If the class is inherently complex ignore the review item.