From Surf Wiki (app.surf) — the open knowledge base
Software metric
Measure of the degree to which software possesses some property
Measure of the degree to which software possesses some property
In software engineering and development, a software metric is a standard of measure of a degree to which a software system or process possesses some property. Even if a metric is not a measurement (metrics are functions, while measurements are the numbers obtained by the application of metrics), often the two terms are used as synonyms. Since quantitative measurements are essential in all sciences, there is a continuous effort by computer science practitioners and theoreticians to bring similar approaches to software development. The goal is obtaining objective, reproducible and quantifiable measurements, which may have numerous valuable applications in schedule and budget planning, cost estimation, quality assurance, testing, software debugging, software performance optimization, and optimal personnel task assignments.
Common software measurements
Common software measurements include:
- ABC Software Metric
- Balanced scorecard
- Bugs per line of code
- Code coverage
- Cohesion
- Comment density
- Connascent software components
- Constructive Cost Model
- Coupling
- Cyclomatic complexity (McCabe's complexity)
- Cyclomatic complexity density
- Defect density - defects found in a component
- Defect potential - expected number of defects in a particular component
- Defect removal rate
- DSQI (design structure quality index)
- Function Points and Automated Function Points, an Object Management Group standard
- Halstead Complexity
- Instruction path length
- Maintainability index
- Source lines of code - number of lines of code
- Program execution time
- Program load time
- Program size (binary)
- WEAVE score
- Weighted Micro Function Points
- Cycle time (software)
- First pass yield
- Corrective Commit Probability
Limitations
As software development is a complex process, with high variance on both methodologies and objectives, it is difficult to define or measure software qualities and quantities and to determine a valid and concurrent measurement metric, especially when making such a prediction prior to the detail design. Another source of difficulty and debate is in determining which metrics matter, and what they mean. The practical utility of software measurements has therefore been limited to the following domains:
- Scheduling
- Software sizing
- Programming complexity
- Software development effort estimation
- Software quality
A specific measurement may target one or more of the above aspects, or the balance between them, for example as an indicator of team motivation or project performance. Additionally metrics vary between static and dynamic program code, as well as for object oriented software (systems).
Acceptance and public opinion
Some software development practitioners point out that simplistic measurements can cause more harm than good. Others have noted that metrics have become an integral part of the software development process. Impact of measurement on programmer psychology have raised concerns for harmful effects to performance due to stress, performance anxiety, and attempts to cheat the metrics, while others find it to have positive impact on developers value towards their own work, and prevent them being undervalued. Some argue that the definition of many measurement methodologies are imprecise, and consequently it is often unclear how tools for computing them arrive at a particular result, while others argue that imperfect quantification is better than none (“You can’t control what you can't measure.”). Evidence shows that software metrics are being widely used by government agencies, the US military, NASA, IT consultants, academic institutions, and commercial and academic development estimation software.
References
References
- Fenton, Norman E.. (2014). "Software metrics : a rigorous and practical approach".
- "Software Metrics: A Survey".
- "Descriptive Information (DI) Metric Thresholds". Land Software Engineering Centre.
- (December 1991). "Cyclomatic complexity density and software maintenance productivity". IEEE Transactions on Software Engineering.
- "maintainability - Does it make sense to compute cyclomatic complexity/lines of code ratio?".
- (2013-01-17). "OMG Adopts Automated Function Point Specification". Omg.org.
- (2020-07-21). "The Corrective Commit Probability Code Quality Metric".
- Kolawa, Adam. (7 August 2008). "When, Why, and How: Code Analysis". The Code Project.
- "Essential Metrics for Effective Incident Response Strategies".
- (2015). "Information Systems Design and Intelligent Applications". Springer India.
- "Dynamic Metrics for Polymorphism in Object Oriented Systems".
- Kaner, Dr. Cem. (2004). "Software Engineer Metrics: What do they measure and how do we know?".
- Binstock, Andrew. (March 2010). "Integration Watch: Using metrics effectively". BZ Media.
- (2008). "Comparing software metrics tools". International Symposium on Software Testing and Analysis 2008.
- DeMarco, Tom. (1982). "Controlling Software Projects: Management, Measurement and Estimation". Yourdon Press.
- "NASA Metrics Planning and Reporting Working Group (MPARWG)". Earthdata.nasa.gov.
- "USC Center for Systems and Software Engineering". Sunset.usc.edu.
- Savola, Reijo M.. (2013-09-01). "Quality of security metrics and measurements". Computers & Security.
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Software metric — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report