Maintainability
Maintainability is how easily a component can be understood, changed, tested and reused. ISO/IEC 25010 defines five sub-characteristics. The checker estimates each of them from properties of the source code, the way the published maintainability model does, adds an aspect for the tests, and shows the size of the code without rating it.
Which tools measure each property, and where the checker deviates from the SIG/TÜV NORD model, is on Tools and models.
Code properties and star limits
Star limits per code property. The 4-star limits are published in the maintainability guidance. The 5, 3 and 2-star limits are derived by the checker. Anything worse than 2 stars is 1 star.
| Property | What is measured | 5 stars (derived) | 4 stars (published) | 3 stars (derived) | 2 stars (derived) |
|---|---|---|---|---|---|
| Duplication | Share of code lines in a block of 6 or more lines that occurs more than once | 3.5% | 5.8% | 11.6% | 23% |
| Unit size | Share of code in units (functions and methods) of more than 15, 30 and 60 lines | 36.0% / 17.0% / 5.5% | 48.0% / 24.2% / 9.1% | 63.0% / 34.7% / 15.4% | 84.7% / 49.0% / 25.3% |
| Unit complexity | Share of code in units with a McCabe complexity over 5, 10 and 25 | 15.8% / 4.4% / 0.5% | 20.7% / 7.5% / 1.1% | 27.7% / 10.6% / 1.7% | 34.6% / 13.2% / 2.7% |
| Unit interfacing | Share of code in units with 3 or more, 5 or more and 7 or more parameters | 12.5% / 2.5% / 0.6% | 15.4% / 3.4% / 0.9% | 18.3% / 4.8% / 1.4% | 26.0% / 7.2% / 2.1% |
| Module coupling | Share of code in modules (files) used by more than 10, 20 and 50 other modules (fan-in) | 7.4% / 3.3% / 1.2% | 9.7% / 5.3% / 1.8% | 10.7% / 5.9% / 2.3% | 13.0% / 8.0% / 3.8% |
| Component independence | Share of code that is not called from outside its own component | at least 97.3% | at least 94.5% | no level | no level |
| Component entanglement | Degree to which dependencies between components break the intended structure | at most 0.0375 | at most 0.075 | no level | no level |
Analysability
What it means
How easily a developer can find out what the code does, find the cause of a fault or see where a change is needed.
How the checker measures it
- Maintainability (ISO 25010), measured with lizard 1.24.3 and jscpd 4.0.5, through a vendored analysis script.
Measured through these code properties, with their 4-star limits:
- Duplication: 5.8%
- Unit size: 48.0% / 24.2% / 9.1%
The Maintainability (ISO 25010) check measures each code property on the source code in PHP, JavaScript, TypeScript, Vue and Python. Test code, vendored code and build output are left out. Module coupling and the component properties are measured for PHP and Python only.
Each property gets a rating from 0.5 to 5.5. A share between two star limits gets a rating between them, on a straight line, so a share exactly at the 4-star limit rates 3.5. When a property has several bounds, its rating is the lowest of them.
The sub-characteristic rating is the plain mean of the ratings of its properties. Rounded, that gives the stars.
Sources
- ISO/IEC 25010 product quality model
- SIG quality models
- Evaluation criteria Trusted Product Maintainability (PDF)
- Trusted Product Maintainability, guidance for producers (PDF)
- Heitlager, Kuipers and Visser (2007), A practical model for measuring maintainability
- A practical model for measuring maintainability, full text (PDF)
- How the benchmark works (5%, 30%, 30%, 30%, 5%)
- Maintainability bands used by the checker
Modifiability
What it means
How easily the code can be changed without introducing faults or making it worse.
How the checker measures it
- Maintainability (ISO 25010), measured with lizard 1.24.3 and jscpd 4.0.5, through a vendored analysis script.
Measured through these code properties, with their 4-star limits:
- Duplication: 5.8%
- Unit complexity: 20.7% / 7.5% / 1.1%
- Module coupling: 9.7% / 5.3% / 1.8%
The Maintainability (ISO 25010) check measures each code property on the source code in PHP, JavaScript, TypeScript, Vue and Python. Test code, vendored code and build output are left out. Module coupling and the component properties are measured for PHP and Python only.
Each property gets a rating from 0.5 to 5.5. A share between two star limits gets a rating between them, on a straight line, so a share exactly at the 4-star limit rates 3.5. When a property has several bounds, its rating is the lowest of them.
The sub-characteristic rating is the plain mean of the ratings of its properties. Rounded, that gives the stars.
Sources
- ISO/IEC 25010 product quality model
- SIG quality models
- Evaluation criteria Trusted Product Maintainability (PDF)
- Trusted Product Maintainability, guidance for producers (PDF)
- Heitlager, Kuipers and Visser (2007), A practical model for measuring maintainability
- A practical model for measuring maintainability, full text (PDF)
- How the benchmark works (5%, 30%, 30%, 30%, 5%)
- Maintainability bands used by the checker
Testability
What it means
How easily tests can be written for the code and how well they can show that it works.
How the checker measures it
- Maintainability (ISO 25010), measured with lizard 1.24.3 and jscpd 4.0.5, through a vendored analysis script.
Measured through these code properties, with their 4-star limits:
- Unit complexity: 20.7% / 7.5% / 1.1%
- Component independence: at least 94.5%
The Maintainability (ISO 25010) check measures each code property on the source code in PHP, JavaScript, TypeScript, Vue and Python. Test code, vendored code and build output are left out. Module coupling and the component properties are measured for PHP and Python only.
Each property gets a rating from 0.5 to 5.5. A share between two star limits gets a rating between them, on a straight line, so a share exactly at the 4-star limit rates 3.5. When a property has several bounds, its rating is the lowest of them.
The sub-characteristic rating is the plain mean of the ratings of its properties. Rounded, that gives the stars.
Sources
- ISO/IEC 25010 product quality model
- SIG quality models
- Evaluation criteria Trusted Product Maintainability (PDF)
- Trusted Product Maintainability, guidance for producers (PDF)
- Heitlager, Kuipers and Visser (2007), A practical model for measuring maintainability
- A practical model for measuring maintainability, full text (PDF)
- How the benchmark works (5%, 30%, 30%, 30%, 5%)
- Maintainability bands used by the checker
Modularity
What it means
How well the code is split into parts that can be changed without affecting the other parts.
How the checker measures it
- Maintainability (ISO 25010), measured with lizard 1.24.3 and jscpd 4.0.5, through a vendored analysis script.
Measured through these code properties, with their 4-star limits:
- Module coupling: 9.7% / 5.3% / 1.8%
- Component independence: at least 94.5%
- Component entanglement: at most 0.075
The Maintainability (ISO 25010) check measures each code property on the source code in PHP, JavaScript, TypeScript, Vue and Python. Test code, vendored code and build output are left out. Module coupling and the component properties are measured for PHP and Python only.
Each property gets a rating from 0.5 to 5.5. A share between two star limits gets a rating between them, on a straight line, so a share exactly at the 4-star limit rates 3.5. When a property has several bounds, its rating is the lowest of them.
The sub-characteristic rating is the plain mean of the ratings of its properties. Rounded, that gives the stars.
Sources
- ISO/IEC 25010 product quality model
- SIG quality models
- Evaluation criteria Trusted Product Maintainability (PDF)
- Trusted Product Maintainability, guidance for producers (PDF)
- Heitlager, Kuipers and Visser (2007), A practical model for measuring maintainability
- A practical model for measuring maintainability, full text (PDF)
- How the benchmark works (5%, 30%, 30%, 30%, 5%)
- Maintainability bands used by the checker
Reusability
What it means
How easily parts of the code can be used again, in this system or in another one.
How the checker measures it
- Maintainability (ISO 25010), measured with lizard 1.24.3 and jscpd 4.0.5, through a vendored analysis script.
Measured through these code properties, with their 4-star limits:
- Unit size: 48.0% / 24.2% / 9.1%
- Unit interfacing: 15.4% / 3.4% / 0.9%
The Maintainability (ISO 25010) check measures each code property on the source code in PHP, JavaScript, TypeScript, Vue and Python. Test code, vendored code and build output are left out. Module coupling and the component properties are measured for PHP and Python only.
Each property gets a rating from 0.5 to 5.5. A share between two star limits gets a rating between them, on a straight line, so a share exactly at the 4-star limit rates 3.5. When a property has several bounds, its rating is the lowest of them.
The sub-characteristic rating is the plain mean of the ratings of its properties. Rounded, that gives the stars.
Sources
- ISO/IEC 25010 product quality model
- SIG quality models
- Evaluation criteria Trusted Product Maintainability (PDF)
- Trusted Product Maintainability, guidance for producers (PDF)
- Heitlager, Kuipers and Visser (2007), A practical model for measuring maintainability
- A practical model for measuring maintainability, full text (PDF)
- How the benchmark works (5%, 30%, 30%, 30%, 5%)
- Maintainability bands used by the checker
Testing
What it means
Whether the component has automated tests and how much of the code they cover. Tests make it safe to change the code.
How the checker measures it
- Test suite, measured with a search for test files and test configuration.
- Code coverage, measured with a coverage report or coverage figure in the repository.
- Test code ratio, measured with a line count of test code against production code in the cloned repository.
The test suite criterion passes when test files or test configuration are present. Code coverage passes at 80% line coverage or more. Both rate 5.5 for a pass, 3 for a warning and 0.5 for a fail.
The test code ratio is test code lines as a percentage of production code lines. A ratio of 100% corresponds roughly to 80% coverage. 120% or more is 5 stars, 100% is 4, 75% is 3, 25% is 2, and less is 1.
The aspect rating is the weighted mean of the three criteria.
Sources
Size
Shown in the report, but not counted in the rating.
What it means
How much production code the component has, and roughly how much work it would take to build it again. A larger system costs more to maintain and to take over. Size is shown for context: it is not better or worse in itself.
How the checker measures it
- Size, measured with scc 4.1.0 on the production scope of the cloned repository.
scc counts lines of code: lines that are neither blank nor a comment. It counts the same production scope as the maintainability estimate: the tracked files, minus test code, minus generated, vendored and third-party code and database migrations (Sigrid's default excludes), minus the Nextcloud build output js/ and l10n/, and minus the exclude patterns of a sigrid.yaml at the repository root when there is one. Files scc recognises as minified or generated are left out as well. Besides PHP, JavaScript, TypeScript, Vue and Python, the size includes HTML and templates, style sheets and SQL.
Rebuild effort, the open estimate, by backfiring: function points = the sum over the languages of lines ÷ lines per function point (QSM v5.0). Hours = the sum of function points × the median hours per function point (ISBSG). Person-years = hours ÷ 1,824, which is COCOMO II's 152 hours per person-month times 12. QSM has rows for JavaScript, HTML and SQL only, so PHP, Python, TypeScript and Vue use the JavaScript row and CSS uses the HTML row. ISBSG gives 7.6 hours for scripting languages, 13.7 for HTML, also used for CSS, and 11.4 for SQL. For a scripting language that works out to about 11,280 lines per person-year.
SIG-style volume, the estimate track: person-years = the sum over the languages of lines ÷ lines per person-year from the SIG/TÜV NORD guidance for producers v17.0, which lists the lines of code in 3.9 person-years: JavaScript 36,300, TypeScript 31,600 and Python 25,000. SIG published no factor for PHP, Vue, HTML, CSS or SQL. They use the JavaScript factor, and the report labels them as a proxy. With the Python factor instead, PHP lines would weigh 45% more.
Neither figure is rated. SIG removed volume from the maintainability model in v18.0 (March 2026), and Sigrid still shows the person-years as context. The checker does the same: Size has weight 0 and no stars, and the SIG-style figure is labelled as context, not part of the 2026 rating. Under v17.0, 4 stars required 3.9 person-years or less. The SIG-style figure is a reproduction, not calibrated against SIG audits: SIG counts lines with its own parser and may detect languages differently. Backfiring usually lands 10 to 35% below it. COCOMO is not used, because it models a new project with its overhead and comes out 2.5 to 4 times higher.
| Language | Lines per function point (QSM v5.0) | Hours per function point (ISBSG) | Lines per person-year (SIG v17.0) |
|---|---|---|---|
| PHP | 47 (JavaScript proxy) | 7.6 | 9,308 (JavaScript proxy) |
| Python | 47 (JavaScript proxy) | 7.6 | 6,410 |
| JavaScript | 47 | 7.6 | 9,308 |
| TypeScript | 47 (JavaScript proxy) | 7.6 | 8,103 |
| Vue | 47 (JavaScript proxy) | 7.6 | 9,308 (JavaScript proxy) |
| HTML | 34 | 13.7 | 9,308 (JavaScript proxy) |
| CSS | 34 (HTML proxy) | 13.7 (HTML proxy) | 9,308 (JavaScript proxy) |
| SQL | 21 | 11.4 | 9,308 (JavaScript proxy) |
Sources
- scc, Sloc Cloc and Code, version 4.1.0
- Sigrid default excludes
- QSM Function Point Languages Table, version 5.0
- ISBSG (2010), the impact of team size and software size on project delivery rate (PDF)
- Trusted Product Maintainability, guidance for producers v17.0 (PDF, web archive)
- Sigrid 2026 model changes: volume no longer counts towards the maintainability rating
- Heitlager, Kuipers and Visser (2007), A practical model for measuring maintainability