Skip to content

Built-in profiles

Updated on 28 November 2026

Stau Metro comes with eleven profiles. Each one answers a question, and the profile lists of the plugin show that question first and the name of the profile after it. They appear in this order, from the general view to the specialised sets.

Question Profile
How healthy is my code overall? Quick health check
Which code is hardest to understand and test? Complexity metrics
How big is the code, and where is it too large? Lines of code metrics
Which classes depend on too much or form cycles? Dependency metrics
Where are tests missing? JUnit testing metrics
How well is the code documented? Javadoc coverage metrics
Is the package architecture stable and well layered? Martin packaging metrics
Which classes stand out in the classic OO metrics (CK)? Chidamber-Kemerer metrics
How mature is the object-oriented design as a whole? MOOD metrics
What kinds of classes does the project have? Class count metrics
Which languages and file types make up the project? Number of files metrics

The first time you calculate, Quick health check is selected.

What each one is for

Quick health check

The essential metrics of every aspect in one run: size and complexity of methods, coupling and cohesion of classes, inheritance, documentation, tests and package design.

When to use it. A first look at a project you do not know, a periodic check-up, or before choosing which specialised profile to run next.

Complexity metrics

How hard the code is to follow and to test, method by method and class by class.

When to use it. Regular quality reviews, before a round of refactoring, when you take over code written by others.

Lines of code metrics

The size of the source code, with and without comments, at every level from the method to the project.

When to use it. Tracking how a project grows, estimating effort, finding the methods and classes that are too large.

Dependency metrics

How much each class, interface and package depends on the others, how far those dependencies reach and whether they form cycles.

When to use it. Finding the classes with too many dependencies, detecting cycles, judging the impact of a change to a class many others use.

JUnit testing metrics

How much JUnit test code there is and how it compares with the production code. It counts what is written; it does not measure which lines the tests execute.

When to use it. Reviewing the tests of a project, finding areas without tests, following how testing evolves.

Javadoc coverage metrics

How much of the code is documented with Javadoc, and how many comments there are.

When to use it. Documentation reviews, before publishing an API, when new people join the project.

Martin packaging metrics

Robert C. Martin's metrics on the stability and abstraction of packages.

When to use it. Architecture reviews, before extracting a module or a library.

Chidamber-Kemerer metrics

The Chidamber and Kemerer suite of class metrics, the set most often used in studies of object-oriented code.

When to use it. Comparing your project with published figures, finding the classes that stand out in several dimensions at once.

MOOD metrics

The MOOD set by Fernando Brito e Abreu: figures of the whole project, not of individual classes.

When to use it. Comparing versions or subsystems, architecture reviews at the level of the project.

Class count metrics

A census of the classes and interfaces of the project by kind, by place in the hierarchy and by origin, production or test.

When to use it. Inventories, comparing modules.

Number of files metrics

Counts of files by technology: Java, Kotlin, HTML, XML.

When to use it. Seeing what a project is made of, comparing modules.

See the metrics of a profile

Open Metrics Profiles..., choose the profile and look at the checked metrics of its tree. Selecting one shows its help (“Metrics profiles”). The dialog of Calculate Metrics... also shows the description of the chosen profile and when to use it.

What each metric means is not part of this help: see the help of the plugin for it, or the reference at “metrics.stau.me”, in Spanish.

Change a built-in profile

Built-in profiles cannot be edited or deleted. To add or remove metrics, or to use other thresholds, duplicate the profile and change the copy (“Metrics profiles”).

A copy is an ordinary profile of yours from then on. It keeps the name you give it and does not change with the language of the plugin.