The Software Maintainability Index (MI) is a single-value indicator for the maintainability of a software system. It was proposed by Oman and Hagemeister.
The Maintainability Index is computed by combining four traditional metrics.
It is a weighted composition of the average Halstead Volume per module, the Cyclomatic Complexity, the number of lines of code (LOC) and the comment ratio of the system
The maintainability index value measured between an index from 0 to 100. Higher values of this index indicates the better maintainability of code.
Formula for calculation:
Though Maintainability index is helpful but it alone cannot be used to improve the code. Across industry there are few concerns of using this index. Few of them are: