Metrics are measurements of software source code that helps us to characterize quality. Each metric has a predefined threshold. To keep the source code base healthy, we should keep metrics within thresholds.


Language-wise Metrics table

The below table illustrates the languages and metrics supported by BrowserStack Code Quality.

Metrics Language Supported
1. Lines of Code (LOC)
2. Executable Lines Of Code (ELOC)
3. Lines Of Code Comments (LOC Comments)
4. Comment Ratio (CR)
5. Number of Methods (NOM)
6. Number of Attributes (NOA)
7. Lack of Cohesion Of Methods (LCOM)
8. Number of Public Attributes (NOPA)
9. Cyclomatic Complexity (CC)
10. Coupling Between Objects (CBO)
11. Depth of Inheritance Hierarchy (DOIH)
12. Response for Class (RFC)
13. Foreign Data Providers (FDP)
14. Locality of Attribute Accesses (LAA)
15. Number of Accessed Variables (NOAV)
16. Access To Foreign Data (ATFD)
17. Max Nesting (MN)
18. Number of Parameters (NOP)
19. Number of Public Methods (NOPM)
1. Java
2. C
3. C++
4. C#
5. Objective-C
6. TypeScript
7. JavaScript
1. Lines of Code (LOC)
2. Executable Lines Of Code (ELOC)
3. Lines Of Code Comments (LOC Comments)
1. Phyton
2. PHP
3. Go
4. Kotlin
5. Solidity
6. SQL