Medidas de calidad del software
Volver a todos

¿Cómo se miden las métricas de calidad del software?

11 de noviembre de 2024
Temas
Datos impulsados por la agilidad
Valores empresariales
Empresas impulsadas por datos
Decisiones basadas en datos
Medidas de productividad del desarrollador
Director de Ingeniería
Compartir artículo

Descargue aquí el artículo completo

Cuando se trata de medir las métricas de calidad del software, el principal desafío para los equipos de ingeniería es que no existe una metodología única y adecuada para hacer las cosas. Como la experiencia nos ha demostrado, a menudo resulta imposible que los profesionales de la industria acuerden las métricas que utilizan, por lo que identificar los indicadores clave de rendimiento puede fácilmente convertirse en una tarea abrumadora que muchos evitan.

Sin embargo, llega un momento en el que simplemente es necesario llevar las cosas al siguiente nivel y hacer de la medición de la calidad del software una prioridad. Esto suele ocurrir cuando los objetivos de los proyectos, así como sus problemas, aumentan en complejidad. En tales contextos, si se quiere ser un gerente exitoso, hay que identificar los aspectos relevantes. Medidas de calidad del software, Calificar constantemente los datos, comparar los resultados y establecer objetivos cualitativos y cuantitativos en consecuencia. Solo al dominar los datos que tenemos a nuestro alcance podremos aumentar las posibilidades de que nuestro equipo sea eficiente y pueda obtener resultados. 

De hecho, en Waydev esta premisa es muy fuerte. Lo que hacemos es proporcionar información sobre cada equipo y proyecto, para que tomes decisiones operativas basadas en datos, hechos y cifras, en lugar de confiar en los instintos. Este enfoque supone una presión significativamente menor sobre los directivos y les permite tener una visión clara de lo que está sucediendo y de lo que viene después. No importa qué metodología de medición de la calidad del software elijas, Waydev te ofrece acceso a los datos subyacentes, lo que te permite aumentar tus posibilidades de ofrecer un trabajo excepcional. 

Para ofrecerle información detallada sobre cómo utilizar las métricas de calidad del desarrollo de software para la optimización operativa sin interrumpir los flujos de trabajo de sus equipos, le explicaremos el modelo de calidad del desarrollo de software desarrollado por el Consorcio para la Calidad de la Información y el Software (CISQ), que incluye elementos como la fiabilidad, el rendimiento, la seguridad, la facilidad de mantenimiento y la calidad del código, así como otros indicadores importantes, como la usabilidad, el rendimiento y la corrección.

¿Por qué son importantes las métricas de calidad del desarrollo de software?

Las métricas de calidad del software impactan a la empresa en su conjunto, pero, lo más importante, a los departamentos de ingeniería, que son los responsables de la calidad del software que proporcionan. Por eso, como gerente exitoso, debes prestar constante atención a los KPI y utilizarlos para comprender el rendimiento del software y planificar la labor. 

Software Quality Metrics to Analyze

A Estudio de 2017 citado por Deloitte La investigación señala que más de la mitad de los proyectos de desarrollo de software se presentan con retraso y requieren presupuestos adicionales, mientras que el 20% termina siendo cancelado. Además, CISQ muestra que, en 2020, solo en Estados Unidos, las empresas perdieron más de 2 billones de dólares debido a software de mala calidad. 

Quizás uno de los ejemplos más populares en este sentido sean los problemas técnicos de British Airways desde el verano de 2019. En ese momento, la aerolínea del Reino Unido sufrió un problema en su sistema informático que provocó que cientos de vuelos se retrasaran y docenas fueran cancelados. Esto afectó a todos, desde British Airways hasta los aeropuertos que tuvieron que hacer frente a la congestión y los fallos operativos generales, así como a los miles de pasajeros insatisfechos que perdieron la confianza en la marca. 

En este contexto, la optimización del desarrollo de software se traduce en equipos sólidos que funcionan basándose en estructuras operativas estandarizadas, lo que permite a los gerentes de ingeniería evaluar correctamente la calidad de su software y identificar oportunidades de mejora que impacten en la satisfacción del cliente y la eficiencia. 

¿Qué obtienes al monitorear las métricas de calidad del software en la ingeniería de software?

Como gerente de ingeniería, desea que su equipo entregue un trabajo excelente que beneficie a los clientes, sea rentable y contribuya al resultado final de la empresa. Para convertir estos objetivos en realidades cotidianas, es necesario monitorear Medidas de calidad del software de la software que entregues. Cuanto mejor lo hagas, mejor serán los resultados.

Aquí hay una lista de cosas que obtienes al monitorear la calidad del software de la manera correcta: 

Elementos de métricas de calidad de software

Según el modelo de calidad del software desarrollado por CISQ, las métricas de calidad del desarrollo de software pueden dividirse en los siguientes elementos:

  1. Fiabilidad 

que enfatiza la estabilidad del software y el riesgo de fallas en ciertas condiciones. Esto se mide en Lead Time to Changes (LTTC), Frecuencia de despliegue (DF), Tiempo medio de recuperación (MTTR), Tasa de cambio de fallo (CFR). 

  1. Rendimiento 

que muestra hasta qué punto el software cumple su propósito específico, teniendo en cuenta el nivel de eficiencia del código, la optimización de la infraestructura, la velocidad de carga de diferentes funciones y páginas, así como si el sistema es capaz de escalar. Esto se mide mediante pruebas de carga, pruebas de estrés o Monitorización del rendimiento de las aplicaciones (APM). 

  1. Seguridad 

que evalúa la probabilidad de que los atacantes vulneren sistemas, interrumpan la actividad o obtengan acceso a información confidencial, como los datos de los clientes. En el mundo complejo y inseguro de hoy, gobernado por las preocupaciones en materia de ciberseguridad, esto resulta particularmente importante, ya que se traduce en el número de vulnerabilidades, el número de incidentes de seguridad, así como su gravedad, el tiempo que tarda en solucionarlos, etc. 

  1. Mantenibilidad 

que se centra en la facilidad con la que los sistemas pueden ser depurados y solucionados de problemas, así como en la posibilidad de mantener las funcionalidades existentes y actualizarse a nuevas. Medidas de calidad en la ingeniería de software que permiten a los gerentes de ingeniería evaluar estos aspectos Tiempo de ciclo y la capacidad de adaptación en entornos cambiantes.

  1. Calidad del código  

que evalúa la calidad del código, centrándose en si está libre de errores y si es semánticamente correcto. Esto incluye métricas cuantitativas, como la complejidad del código y líneas de código (LoC), y los cualitativos – claridad del código, eficiencia, etc. 

Además, hay otros 3 aspectos que debe tener en cuenta como gerente de ingeniería:

  1. Usabilidad

que se centra en la experiencia de usuario (UX), en cómo intuitiva es la aplicación y en el grado de satisfacción de los usuarios finales con ella. 

  1. Correctitud 

que evalúa cómo funciona el sistema, si proporciona los resultados esperados y si satisface a los usuarios. 

  1. Integrity 

which identifies whether the software may be integrated safely, with other platforms and softwares, to develop its functionalities.

What Metrics to Measure to Improve Software Quality?

At this point, you surely agree that measuring Medidas de calidad del software is vital for improving a project’s chances for success and client satisfaction levels. Hence, the question that arises now is what metrics matter most for your work.

At Waydev, we understand the struggle. Measuring a team’s performance is extremely difficult, as you might feel like you are reducing its work to key stats and observations. Especially when professionals are working on complex aspects, some indicators like lines of code or bug rates don’t do justice to the whole picture and are certainly not relevant for how well or poorly your team is doing. 

Some engineering managers would go as far as to say that actually measuring software quality is impossible. Indeed, while that is quite fair, you can, however, monitor the aspects that impact performance. There is much value in this practice, as it is what turns projects into best practices examples. 

The important aspect here, though, is to take into account the particularities of each team and project, and filter them, to create the best approach for you. Starting from these variables, you may compile a list of software quality metrics that are specifically tailored for your work and which will help you take it to the next level, without creating spikes in resource allocation and costs. 

Types of Software Quality Metrics

1. Agile Software Quality Metrics

The Agile framework considers agile software quality metrics as part of a bigger strategy picture, considering three key principles that revolve around the team and its goals.

Firstly, they are not made to monitor, but to contribute to the team’s success. They are created so that the people who use them benefit from help in assessing their work. This means that they have to be self-enforced, or be the result of a conversation, where professionals share information about the actual process and what they are facing and decide accordingly what to measure. 

Moreover, when using software development quality metrics, Agile teams corroborate them to a certain premise and leads, so that they may investigate potential issues, instead of measuring for the sake of measuring. 

Agile software development quality metrics focus more on tangible results like the number of completed story points and customer satisfaction than on ambiguous criteria. 

Waydev is the new Agile Data-Driven method of tracking the output of engineering teams directly from your engineering toolstack, without requiring manual input. Extremely flexible, this approach benefits from real-time insights which ensure early issue detection, thus saving time and resources. 

By using our Agile Data-Driven methodology, you receive insights on how your teams work together, as well as automatic reports. This way, engineers may focus on their actual work, instead of doing administrative chores. 

2. Velocity

Velocity is perhaps the best-known and universally accepted Agile software quality metric. Its purpose is to show how much work a team may complete in a certain period of time.

Velocity is calculated by adding the story points that have been marked as Done, in a certain sprint – no matter when they were initiated. 

What is worth noting is that velocity is not a measure of performance or competency, but one which focuses on the volume of work which should be attributed to a team. It is more of a quantitative metric than a qualitative one, as it doesn’t reflect the value of the work delivered.

The best way to use velocity, according to many of the engineering managers with whom we have discussed, is to analyze a 3 sprint series and calculate the average velocity. 

By understanding insights in real time, Waydev enables you to achieve more than 2X Accelerated Velocity. 

3. Lead Time

Lead time is the time that passes from the moment the engineers start conceiving the software solution, until its deployment. This includes coming up with ideas, brainstorming, creative directions and design, as well as the actual launch on the market. 

Waydev accelerates lead time by 22%, thus contributing to streamlining operations, improving productivity, increasing output, and revenue.

4. Cycle Time

Cycle time is similar to lead time, this is why some professionals confuse the two. The term refers to the time spent since the engineers started developing the app, up until the actual software project has been completed. 

tiempo de ciclo
With Waydev, engineering managers benefit from cycle times which are faster by 28%. 

😍 También te puede interesar: Lead Time for Changes Vs Cycle Time 🔥

5. Recidivism

In Agile software development quality metrics, recidivism refers to the number of user stories that have been marked as completed, but which have been returned to the development team. This is often a result of them failing QA tests, but it may also be a sign that requirements changed, for example. 

As a percentage, recidivism is calculated as the number of stories in a sprint that entered development twice, split by the number of completed stories. The smaller the ratio, the more successful the project. 

Generally, when recidivism is of about 10-20% it may indicate that there are issues in the actual chain, such as in the quality of requirements, test quality etc. 

6. Story Point Completion Ratio

Story point completion ratio is the number of stories completed in a sprint compared to the number of stories that were estimated. 

This software development quality metric helps development units understand their forecasting capacity and ensure they estimate correctly their work, the size of the stories and what they deliver. 

The smaller the story point completion ratio, the more chances there are that teams are either taking on more than they can deliver or that the project is running into impediments. Before sharing this metric with the company, ensure that the overall situation has been assessed and that the reasons for under-delivering have been identified. 

Companies that use Waydev notice a 24% increase in features delivered. 

7. Production Metrics

Production Medidas de calidad del software are used to measure the level of work performed and to determine how efficient and fast the team is.

Active Days

Active days represent the time spent on the actual coding and it excludes other activities such as planning or administrative tasks. By measuring this, managers may assess their cost sources and create healthy operational models. 

Waydev helps increase average active coding days by 15% per week.

Failure and repair time

Fails and bugs are inevitable when developing software, especially when it comes to projects that are done from scratch. Managers measure failure and repair time to understand how much time it takes for engineers to solve the issues that arise. 

Task scopes

Task scopes refer to how much code a developer may produce every 12 months. This metric focuses completely on quantity and it is used to assess how many developers are needed for a project. 

Code churn

Code churn focuses on the number of lines of code that have been modified, added or deleted in a 21-days time frame after being initially written. 

Managers that use Waydev have reported a 28% decrease in code churn rates. 

Eficiencia 

While this is quite difficult to measure, it refers to the productive code software development teams deliver. The lower a teams’ churn, the higher the efficiency. 

Impacto

Impact is a metric that showcases to what extent added code affects the overall software development project. 

8. Security response metrics

Nowadays, each form of software you develop needs to be protected from maleficent actors and attacks. This is why it is crucial to ensure that the app, the website or the platform your team delivers recognizes and eliminates threats. Security response metrics do just that, they assess how secure your product is. When monitored constantly, these are extremely valuable. 

In order to understand security, engineering managers keep track of metrics like:

Endpoint incidents

which refers to the number of devices that have been infected by a virus, in a certain amount of time.

9. Mean Time to Repair (MTTR)

which, in this context, focuses on how long it takes to solve a thread, calculating the time from its discovery, to the moment when a remedy has been deployed. 

The Age of Dependencies

Managers often measure the age and status of dependencies, to ensure they work properly and that they don’t need to be updated. When dependencies are extremely old, they may compromise projects. 

10. Size-oriented metrics

Size-oriented software development quality metrics focus on the size of the software and are usually expressed per line of code. Here are some examples:

11. Function-oriented metrics

Function-oriented metrics are used to showcase the functionality offered by each software. Since the actual functionality is not measurable, per se, software managers focus on function points (FP). These are defined as units that quantify the business functionality of each product. An important benefit of function points is that they may be used to compare projects written in different languages.

12. Defect metrics

Maybe the most intuitive way of assessing software quality is by identifying the number of defects and focusing on: 

The stages in which they are identified (for example, before or after deploying the project);

Their density

the number of defects per LOC;

Their slippage ratio

the percentage of flaws that manual tests haven’t identified, before deploying the project;

Defect removal efficiency

Calculated through the following formula: DRE = E / (E+D), where

DRE = Defect Removal Efficiency

E = errors found before product delivery

and D = defects found by the end-user, after product delivery, 

the goal is to have DRE as close to 1 as possible. 

13. Quality assurance metrics

As software projects become more and more complex, the need for quality assurance testing increases. Nowadays, QA engineers are indispensable, as they are the ones that write and execute test cases, thus contributing to understanding the project’s progress. 

Examples of QA metrics include the following examples: total number of test cases, number of passed test cases, number of failed ones, number of identified bugs, number of test hours required etc. 

14. Pull request metrics

Measuring pull requests helps you better understand your projects and the way your team interacts. Our recommendation is to focus on the following indicators:

When assessing them, remember that complex software programs will have high-quality metrics in software engineering.

work log
Waydev’s PR Workflow analytics bundles up all the features you need to identify bottlenecks, long-running or unreviewed pull-requests, so you have a better understanding of PRs and improve your engineering teams’ performance.

15. Customer satisfaction 

Customer satisfaction is one of the most valuable aspects worth measuring, since, at the end of the day, happy customers are what keeps the industry going, as they generate business through their own projects, as well as through recommendations. 

Customer Satisfaction Score (CSAT) 

requires clients to rate the quality of the service. 

Customer Effort Score (CES)

enables companies to understand the overall client experience, as it asks questions like “how easy was it to solve your problem with the help of our team?”. 

Net Promoter Score (NPS)

ask clients to rate, on a scale from 1 to 10, how likely it is that they would recommend you. The ones that answer with 9 and 10 are considered potential brand promoters. 

😍 You May Also Like: Scaled Agile Framework: What Are the Safe Core Values🔥

Strategies for Improving Software Development Quality Metrics

“Ensuring high software quality metrics is essential for the success of any application or system. Poor quality can display bugs, security vulnerabilities, performance bottlenecks, and user frustration. As such, development teams must track and optimize key software development quality metrics across all phases of the software development lifecycle.

Employing a complete set of engineering practices focused on quality reinforcement, frequent verification, and continual improvement will naturally drive key metrics in the right direction over time.

Waydev Enables You to Get Full Visibility of What the Team Is Doing

Problem: In order to identify the level of progress made by developers, you need to firstly assess the performance of the whole team, as well as that of individual members. It is only so that you may have a clear image of what is happening. 

Solution: By tracking the output from your engineering toolstack, Waydev enables you to get complete visibility of what team members are doing. 

This means that you may:

Moreover, you may organize data according to your needs, sort it, filter it, search for certain projects or team members and download whatever is necessary. Waydev offers you complete control over the information you receive, empowering you to take the best measures, to benefit from excellent results: 

If you want to have a clear view of your software quality metrics, contact us and schedule a demo today!

Demo

Aplique este marco en su equipo de ingenieros

Review testing, maintainability, incident learning and review practices. Choose an improvement such as reducing recurring defects, then evaluate the result over a consistent reporting period. Explore the Software Quality Assessment en Laboratorio de Inteligencia Waydev. Para conectar este enfoque con los datos de ingeniería reales, Programar una demostración de Waydev.

¿Listo para desbloquear la productividad de tu SDLC?

Solicita una demo