Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [metrics]

Measurable characteristics/attributes related to software and software development process, and anything related to their measurement . For time and space complexity use tag big-O. For other more specific metric question use tag complexity, or cyclomlatic-complexity if appropriate.

2
votes
4answers
239 views

Is using KLOC just to normalize size of projects still bad? [closed]

I know many despise KLOC as some managers attempt to correlate that with productivity. But when we speak only comparing sizes of projects using the same languages and coding standards as well as the ...
1
vote
2answers
94 views

Can story points be used to describe size of several projects estimated by several teams?

KLOC has been - I think justly - criticized as too inaccurate to express size when comparing several projects. In only one source I found a calculation that uses Story Points and thus allow to compare ...
3
votes
3answers
167 views

Does Defect density measure QA or DEV effectiveness?

Most Defect density metrics are like this: Number of bugs / Size (KLOC, Story Points, Function points..) I have read that it measures the effectiveness of QA but I do not get it: I can have a ...
-3
votes
1answer
95 views

Non-functional requirements metric and measurement

Do all non-functional requirements need a specific metric and measurement? Would a NF maintainability requirement such as: "Upgrade to a new software version shall leave all database and personal ...
3
votes
0answers
72 views

Ripple Effect Analysis using coupling metrics

How can I observe ripple effect using coupling attributes alone? I first find the common coupling metrics for a set of deprecated classes in a project, like CBO(Coupling Between Objects), RFC(...
0
votes
4answers
255 views

How to prove business benefit in software refactoring? [duplicate]

By these days I work in a legacy code that uses JAVA. The project has a code tightly coupled and low cohesion. All my teammates suffer to make changes in the software, one reason is that we haven't ...
-2
votes
1answer
52 views

Architecture Design Approaches for Metric Collection

We want to pull application and business metrics from the source web application to track billing, usage and performance of the application. These metrics are to be stored in a different database (...
4
votes
1answer
106 views

Tight class cohesion metric, all or just public methods?

I am researching cohesion topic and found out that some claim TCC metric should only include public methods, some other sources claim all methods. Would it be wrong to use either approach? Why private ...
0
votes
1answer
64 views

Are there any actionable conclusions from the paper “On the correlation between size and metric validity”?

In the paper On the correlation between size and metric validity Gil and Lalouche conclude that all popular software metrics are only valid insofar as they are correlated with code size. They use ...
54
votes
7answers
8k views

Are there known valid uses of SLOC to measure productivity?

I had an unusual, brief conversation with a very senior architect about dynamic and static languages. He said that company data shows that there is evidence for higher productivity when static ...
0
votes
3answers
303 views

Automating checks for “good” unit tests

There's already a question about How to write good unit tests. Based on the answers provided there, the key properties of a good unit test - Short Readable and conveys intent instantly Independent ...
0
votes
1answer
115 views

What is this curve related to bugs and testing called?

What is the curve below called (if it has a name)? What can you generally infer from such a curve? The line with negative slope is the number of remaining test cases and the line with positive slope ...
2
votes
1answer
68 views

Definition of “Current Task Estimate”

In the book "Agile Project Management with Kanban," the author Eric Brechner defines "current task estimate" as the sum of pending, active, and done tasks. I do not understand why "done" tasks are ...
-7
votes
2answers
105 views

Source Code Character Count Metric / Acronym?

I see wikipedia entries for: https://en.wikipedia.org/wiki/Source_lines_of_code aka SLOC. Shouldn't there be some other kind of metric like SCC? (source character count).. or maybe there is and I ...
-1
votes
1answer
89 views

Is the following method to compare source codes or work effort reliable? [duplicate]

I want a feasible way to compare my project with my friend's project. I first thought it was enough to compare based on the number of code lines. But for some reason, people kept saying "LOC is not a ...
3
votes
1answer
50 views

Trying to get a better understanding of the definition of measurement

The book Software Metrics A Rigorous and Practical Approach defines measurement as ...the process by which numbers or symbols are assigned to attributes of entities in the real world in such a ...
3
votes
1answer
451 views

What is the meaning of a metric for 'year-over-year commits' for a given project?

I have read this in many project description - like here or here. Looking for an explanation of what this means, I simply get more pages that discuss a project's "Y-O-Y commits". What does thie metric ...
12
votes
6answers
4k views

Does Code Coverage improve code quality? [duplicate]

I am curious whether there are metrics on whether code coverage actually improves code quality? Any research studies? If so, at what percent does it become a case of diminishing returns? If not, why ...
1
vote
1answer
2k views

Defect metrics - open and close rate explanation

Probably I am missing some key aspect here, because I simply have no idea how this metric is supposed to tell me anything described by the authors: Defect Open and Close rate = (Defects found ...
1
vote
2answers
48 views

What is an appropriate metric for these variables?

For a test suite I have, each test has a failure rate (from 0 to 1), where 1 means it fails every time and 0 means it never fails, and a duration in ms (this is unbounded). I want a metric (I think ...
0
votes
2answers
88 views

How to interpret QA metrics when SW quality improves?

There are various metrics like "test case effectiveness", that is calculated as (Total number of bugs found / Total number of test cases executed). While this produces some numbers in the beginning, ...
18
votes
7answers
2k views

How do you know if software is good or bad based upon empirical metrics?

I'm currently being asked to look at a project that has finished core development five months ago, but still has a high level of defects. What transpires is for around every 10 defects fixed, we raise ...
1
vote
1answer
2k views

how to measure defects per KLOC

I have been reading on the internet about the metric "number of bugs per 1000 lines of code" and what would be a good number. However, I wonder how someone would compute such a metric? The reason a ...
2
votes
3answers
87 views

Calculating a score and a breakdown of the score in different places - should I use the same methods?

I am creating a plugin that uses a metric to determine a score on one page and allows the user to click through to see a more detailed breakdown of the score on a separate page. The trouble is: I can'...
2
votes
2answers
370 views

How to perform summary analytics on production databases?

I want to use production data to generate "user activity" metrics. My thought is to set up a cron job that regularly reads production databases to summarize user activity and then stores the results ...
9
votes
5answers
3k views

How to quantify the work perfomed by a developer/programmer? [duplicate]

I know the best four naive ways of achieving this. Commit count: In the code repository count the number of commits done by a user. However this is just what the name says, counting the commits. It ...
0
votes
1answer
119 views

Measuring new capabilities in a software project and comparing vs incremental capability improvement

Given two software projects X and Y relating to some Product A - Project X offers some new capabilities. Project Y offers incremental capabilities. Y's features can be measured: we know its uses, ...
4
votes
1answer
99 views

Summarizing time spent on UI tests

I was working with a team on a web-based software. We have written ~70-80 Selenium test for the product. Mainly happy-path tests with some regression ones for bugs reported by users. It was the first ...
3
votes
2answers
590 views

Why in cyclomatic complexity we add 1 for operators within a condition?

I know that basically, CC can be computed as number of decision + 1. In addition, every logical operator in the condition causes CC to increase by 1. But why? Having the code if(A || B || C) else... ...
0
votes
1answer
147 views

Does it make sense to express reliability as a ratio of number of tests and system failures? [closed]

I have seen a reliability of the system expressed like this: Rel=No of tests executed / Sum of crashes or other critical events Does it make sense and what actually is the output?
-1
votes
3answers
220 views

Is there a metric that can be equated to complexity in laymens terms? [closed]

Often times users cannot comprehend the complexity of software. They think that because a problem is easy to describe then it is easy to solve. I want to equate the complexity of a "simple program" ...
3
votes
1answer
287 views

How to measure team productivity over time using consistent story sizes?

How do I measure team productivity over time using consistent story sizes? To take a simple example, if I can do a story every two days, then I can do five stories in a two-week sprint. By definition ...
0
votes
4answers
468 views

Are there metrics, like in other professions, that can be used to measure whether a programmer is considered experienced? [closed]

Driving instructors (at leas in Germany) often mention 100.000 km driven as a reference point where a driver is considered experienced. Is there a similar number for programmers? For example, how ...
1
vote
1answer
2k views

Is it ethical or even legal to track user data/metrics using IP [closed]

This one is a bit tough. It is publicly available information, is it not? But it's can also be used maliciously. So is it legal/ethical to store and/or gather information on users based on IP? It's ...
12
votes
2answers
2k views

Cyclomatic complexity when calling same method multiple times

Thanks to a question over at Code Review I got into a little disagreement (which essentially is an opportunity to learn something) about what exactly the Cyclomatic Complexity is for the below code. ...
3
votes
3answers
862 views

Easily add metrics to measure java code usability

I'm trying to create a process for better understand what's happening in my code. I want to create metrics to automatically give my answers about simple or complex questions like: How many times a ...
5
votes
4answers
247 views

How can we track how well we're preventing and avoiding security vulnerabilities?

It's pretty easy to track when we fix security vulnerabilities in existing code. But to make sure the whole team is staying on their toes about writing secure code, I'd like to also track how well we ...
23
votes
2answers
20k views

Cyclomatic Complexity Ranges [closed]

What are the categories of cyclomatic complexity? For example: 1-5: easy to maintain 6-10: difficult 11-15: very difficult 20+: approaching impossible For years now, I've gone with the assumption ...
3
votes
1answer
863 views

Software failure due to maintenance oversights example/case study

I'm doing some investigation into the role of maintenance in software development and the use of metrics within the development cycle. What I am asking is for a point in the right direction or ...
11
votes
5answers
11k views

What is a good measure of testing/tester efficiency?

I am about to participate in a discussion with management regarding measuring our testing efficiency as a QA organization. The main reason behind this is that half of our team is contracted out and ...
36
votes
8answers
22k views

Is the average number of bugs per loc the same for different programming languages? [closed]

I have been told that the average number of bugs/defects per line of code is "constant" for different programming languages. 10 KLOC of Ruby would have the same number of bugs as 10 KLOC of c++. The ...
7
votes
1answer
728 views

Why is the cyclomatic complexity equal to two for a simple Hello World?

I would have two questions related to cyclomatic complexity: Can I use this metric for a whole app? I guess I cannot, as it would be incredibly large number, considering functions calling functions ...
2
votes
2answers
219 views

Saving all hits to a web app

Are there standard approaches to persisting data for every hit that a web app receives? This would be for analytics purposes (as a better alternative to log mining down the road). Seems like Redis ...
4
votes
1answer
115 views

Statistical Software Quality Control References

I'm looking for references about hypothesis testing in software management. For example, we might wonder whether "crunch time" leads to an increase in defect rate - this is a surprisingly difficult ...
8
votes
2answers
6k views

What is logical cohesion, and why is it bad or undesirable?

From the c2wiki page on coupling & cohesion: Cohesion (interdependency within module) strength/level names : (from worse to better, high cohesion is good) Coincidental Cohesion : (...
2
votes
3answers
2k views

Are CK Metrics still considered useful? Is there an open source tool to help?

Chidamber & Kemerer proposed several metrics for object oriented code. Among them, depth of inheritance tree, weighted number of methods, number of member functions, number of children, and ...
1
vote
2answers
265 views

Severity and relation to occurence - priority?

I have been browsing through some webpages related to testing and found one dealing with the metrics of testing. It says: The severity level of a defect indicates the potential business impact ...
5
votes
2answers
1k views

What kind of metrics, if any, can be collected from requirements development?

We elicit requirements from our product stakeholders by creating and refining user stories in monthly sprint planning meetings. This includes defining use cases, acceptance criteria, and identifying ...
15
votes
4answers
5k views

Data architecture for event log metrics?

My service has a large ongoing number of user events, and we would like to do things like "count occurrence of event type T since date D." We are trying to make two basic decisions: What to store? ...
25
votes
6answers
8k views

What is a normal “functional lines of code” to “test lines of code” ratio?

I'm pretty new to TDD approach and my first experiments say that writing 1 line of functional code means writing about 2-3 lines of testing code. So, in case I'm going to write 1000 LOC, the whole ...