How to Measure KPIs for Developers?
Latest posts by Jamie Maguire (see all)
- How to Create AI Software? - 28 Jun, 2022
- 5 Ways AI in the automotive industry is making an impact - 28 Jun, 2022
- How to Make a Digital Marketing Dashboard Template? - 26 Jun, 2022
Wondering how to measure KPIs for developers’ productivity?
You’ve come to the right place.
In this blog post, we are going to run through some topics that fall under the umbrella of measuring productivity through KPIs (key performance indicators) for developers.
Whether you‘re a CTO, technical lead or senior developer tasked with looking after team productivity, we‘re sure you‘ll find some valuable individual productivity and team management productivity metrics that will put you in complete control of the development process.
Before exploring the software development KPIs for developers’ productivity, it‘s important to get a clear definition of the word productivity within the context of software development.
How can you measure something if you don‘t define it? At the most fundamental level, productivity is to do with products. It could then be said that a productive individual is a person who regularly ships products.
If you‘re from a technical background you will (quite rightly) think that both these statements alone simply aren‘t enough to gauge or define productivity and may be thinking of some of the following points:
- What about the number of defects?
- What about the complexity of the class library?
- What about the number of integration points?
- What about the dependencies on external systems or other software development teams?
- I just inherited a brownfield app, I need time to get up to speed.
Software development isn‘t a simple production line whereby code drops of faultlessly from a developer‘s laptop and is copied and pasted onto a customer‘s environment. It, therefore, requires you to abandon this traditional industrial-age thinking.
Teams that consist of software developers often involve individuals from other disciplines such as business analysis or front-end graphic designers.
Due to this multi-disciplinary skillset, diverse teams must be led with modern practices, they must be open to change and adapt to real-time situations.
Because of this dynamic, it can be difficult to universally define one software development KPI or single metric for developers that signifies productivity. What we can say, however, is that the customer, whether they be internal or external, will define what success is.
Success in a software project generally revolves around the delivery of a product that ultimately gets signed off by a customer or user.
It can be said, therefore, that a productive team can is one that can:
- Identify progress and understand where they are at any given time in a project.
- Delivers functionality in line with an expected result for a user or a customer.
With these points in mind, we can now start to explore what this means in terms of KPIs for developers’ productivity, whether it can be measured and what can affect this.
Which activities you can measure as KPIs for developers?
Whether you‘re implementing a waterfall model or agile development model, the software development lifecycle consists of many phases. Each phase consists of tasks or activities and it‘s important to be aware of these prior to capturing any data on KPIs for developers associated with their productivity.
From a software developer productivity perspective, you can separate these activities into two components to analyze KPIs for developers effectively:
These can be defined as activities that constitute the build process of the required functionality. Successful completion of these activities results in “sign-off” by the customer. The speed at which these types of tasks are completed forms one part of the “productivity equation”.
Examples of these types of tasks include, but are not limited to, are:
- software design
- writing code
- code integration
- testing functionality
- daily stand up to discuss impediments
These activities can be defined as tasks that get in the way of building the required functionality. They still must be undertaken, but aren‘t truly part of the building the required functionality. These types of tasks form the second part of the “productivity equation”.
Some examples of these types of tasks include:
- testing and debugging code to understand how it works (when a developer encounters new code in a system)
- configuring and setting up an environment
- implementing a tool or software development process that is only understood by a select few
- writing unit tests that aren‘t representative of functional areas
- ranting at the water cooler about some legacy code
It‘s clear that non-value-add activities are obstructions to the developer and affect his or her productivity.
Activities that fall into the value-add camp, are the ones that should be measured as KPIs for developers – but only after the total time taken on non-value-add activities has been deducted! Taking this a step further, it could be said that:
Productivity = (total time spent on work – total time spent on non-value-add activities)
Based on this reasoning, it can be said that the goal is to reduce the number of non-value-add activities in the software developer‘s day.
Fewer non-value-add activities result in more frequent product shipping, which results in increased revenue, and therefore, profits for the company, and profit is a strong indicator of productivity.
Challenges of measuring productivity through KPIs for Developers
We don‘t live in an ideal world and software projects frequently encounter challenges that can ultimately affect developer productivity.
Let‘s explore some of these challenges before moving on to discussing tools and processes for measuring software engineers’ productivity.
Possibly every developer‘s nightmare. The programmers receive a substandard specification which results in far too many questions to let them commence the design and build phase.
Depending on the level of experience a developer has, they may take the initiative and wear their business analyst hat and work to refine the requirements.
If this happens, the overall build phase of the project could appear to take longer than anticipated, and therefore, skew the total time taken for a given task the developer is working on.
In projects where the developer is tasked with building interfaces that exchange information between multiple environments, access must often be granted, firewalls must be configured and credentials supplied.
These setup activities affect the developer‘s productivity as they‘re unable to hit the ground running and must wait until environments have been configured and so on. Again, this has an impact on overall developer productivity.
International development teams
It‘s not uncommon for a software development team to be spread across multiple continents, the internet and online collaboration tools have made it easy to have a business model that offshores or near-shores software development activities.
There are certainly benefits to implementing this business model but if you are able to maintain an accurate measure of productivity.
This and overall project management becomes much harder when you have a software development team spread across the globe that operates in different time zones, not to mention working on discrete user stories with varying complexity.
Writing code that displays “Hello World” is clearly much simpler than writing middleware that performs sentiment analysis and runs natural language processing algorithms against incoming streams of text. You can‘t apply the same measuring stick to either developer in this sort of scenario.
A developer may have implemented the required functionality as per a customer‘s requirement, it may work in their development environment and have been tested successfully but now must be integrated with another developer’s class library or functionality.
On an enterprise implementation, this can be painful. Especially if the developer is in another time zone, cue conference calls, emails, and instant messaging sessions to clear any ambiguity and/or advice on the parameters that each developer expects to be passed to the functionality they have built.
Can you really measure productivity via KPIs for developers?
So far, we‘ve covered the following:
- a definition of productivity
- types of activity to monitor
- challenges you‘ll encounter when trying to measure productivity through KPIs for developers
It should be apparent from some of the challenges that you can‘t simply rely on one metric to identify developer productivity.
Developers have strengths and weaknesses, some may work on more complex areas of a software application than others, some may have better “soft skills”, and others may “wear more than one hat”.
It‘s not uncommon for more senior developers to act as business analysts or perform consultancy-type activities on a client site.
In the world of sports, there isn‘t one single measurement to determine how good a football or baseball hitter is. Pace, strength, batting average, home runs, and other factors are all considered.
Considering all of this, what kinds of KPIs for developers can and should you capture when trying to measure developer productivity?
You need to forget about the idea of having one single measurement or KPI for a developer that will allow you to accurately gauge the productivity of each of your developers, there are just too many variables to consider.
Hire expert developers for your next project
1,200 top developers
us since 2016
Development team managers and leaders often know who their “A Players” are and who to entrust with the high-risk components of a software project.
That said, there are certain software development metrics that can act as a rough gauge so let‘s explore them.
What kinds of KPIs for developers can or should you capture?
In most software projects, developers are building features requested by clients. One metric to record is the number of features each developer successfully completes.
Understandably, some features are simpler to implement than others – and I‘ve covered some of the challenges you might expect but it still stands that tracking how many features a developer ship is an important metric to record.
If your software project adopts Agile / Scrum practices, another measurement you can track is the velocity. This measurement will tell you the amount of work your team (usually measured in lines of code) can complete during a given amount of time or a single sprint.
Providing each developer is supplying estimates for Stories and Tasks in the form of Points for the Product Backlog, the velocity can be calculated.
When your team has completed several sprints, you can also use the velocity to forecast how much of your product backlog can be finished in future sprints.
A developer may ship quickly but it‘s not good if the code is bug-ridden. There are two sides to measuring bugs in the codebase of a software application:
1) The Severity of the bug (Low, Medium, High)
2) The number of bugs introduced in the application
You can set a threshold in terms of the number of “acceptable” bugs in your application and measuring the number of bugs that ship with each iteration is one metric you can record per software engineering team or developer.
Naturally, you‘d prefer that your product ships – defect-free, but in the real world, this often isn‘t the case. The preference is to have little to no bugs that have been tagged with a Severity of Medium or High.
By setting a threshold you can run reports in your defect tracking software and in conjunction with your source control software, you can identify who introduced the bug.
Code Analysis and Quality
Code quality is a trickier metric to measure. Coding standards and practices should be in place prior to attempting to measure the quality of code. These standards should be enforced by the engineering manager and adhered to by all team members.
Visual Studio ships with Code Analysis Tools out of the box. With your team, you can decide on a common set of standards and practices and create them as Rules.
As a development manager or senior developer, you can then run these rules over your application’s source code and record areas of the code that don‘t adhere to your team’s coding standards.
Most software applications being built today live on the internet. Applications on the internet must be built with performance in mind and as such, performance is an important metric to measure.
With the advent of rich client-side web applications, the traditional “page load” metric (how long a page takes to load) whilst still important, isn‘t as relevant as it once used to be.
A better approach is to measure how long key specific use cases take to execute on the front end for users.
From an API perspective, Visual Studio contains a Diagnostics Tools Window that allows each developer to identify how long a class library or method is taking to execute. These timings can be recorded and measured.
You can then measure how timings stack up against service level agreements (SLAs) that form part of the contract between you and your customer.
Tools that can help measure KPIs for developers
Now that you have an idea of key software metrics that you can track, what follows are some products and tools that can help you measure them.
AppDynamics is a product that can be connected to your application that gives you real-time performance monitoring.
With AppDynamics, you can monitor every click, swipe, and tap in your application. It allows you to understand your customer journey through your digital ecosystem which is all viewable through rich visual flow maps.
Every check-in to your Github source code repository has the potential to reduce or improve the quality of your source code. Code Climate helps protect you against this. This tool automates numerous processes to allow you to measure test coverage, quality, and maintainability of your product’s source code.
In much less time than a human developer, it will check for code duplication and code complexity, thereby allowing you to identify problem areas within the source of your product code to help ensure it is high-quality.
Visual Studio Team Services
Visual Studio Team Services (VSTS) is an integrated toolset that speeds up the development and delivery of your software projects. VSTS allows you to track everything you need to, all in place.
It‘s quick and easy to set up an account and if your team is small enough, you can start for free by signing up here.
Once logged in, you can add accounts and team administrators who can then begin to add your application source code which gets stored safely in the Microsoft cloud. Alternatively, if your data must stay within your own network, you can opt for an on-premise TFS implementation.
VSTS features Agile tools and frameworks that allow you to track, maintain and measure:
- User Stories
With rich visualizations in the form of Kanban and configurable Dashboards, VSTS is hard to beat and integrates easily with most source control repositories and development IDEs of your choice.
Do the tools provide a fair and accurate picture of KPIs for developers?
Whilst the tools aren‘t a “silver bullet” by any means, they at least give you a starting point in terms of capturing and managing data related to developer productivity.
You need to be mindful of the various constraints and scenarios that developers often find themselves in, however, they often work in teams that have dependencies on business analysts, project managers, clients, and third-party organizations.
Developers can fall behind on the delivery of product features or defect fixes due to poor functional specifications, or missing or unknown requirements. These factors should be considered when generating metrics connected to developer productivity.
How to measure developer productivity
In order to measure developer productivity, you should know that it goes beyond assigning acceptable thresholds for the number of bugs found or features delivered in each sprint. Of course, these are important metrics to measure but they don‘t provide the full picture.
Certain developer attributes aren‘t measurable and can‘t be assigned a number. Consider the following:
- Is the developer committed to their craft, or are they passionate?
- Are they committed to delivering software on time?
- Is the developer dedicated to the company‘s vision?
- Is the developer constantly learning or improving their skills?
- Does the developer take pride in their code?
I mention these as they are not just important but completely subjective and simply can‘t be tracked using products or tools.
Regardless of this, the first step in determining software developer performance metrics or productivity is to have a few methods of measurement.
What follows are some points to think about and approaches you can apply to help you gauge developer productivity. Whilst they shouldn‘t be used as a golden set of rules, at the very least, they will allow you to initiate discussions regarding productivity!
Which stage is your company at?
- If you‘re an early-stage startup with little to no runway, you‘ll probably want to track speed and how quickly your developers turn around features.
- If you ship mission-critical software, code quality and test coverage will most likely be the key metric.
- Is the developer providing initial estimates and hitting release dates when building functionality in the backlog?
- How many features has the developer implemented in the backlog?
- How often did the developer overrun in terms of their original estimate?
- How many bugs are found during development?
- How many bugs are found after the product has shipped?
- How many bugs have been found during a round of system testing?
- How many bugs has the developer resolved in a sprint?
- How quickly is the developer turning around bugs?
Code Performance / Quality
- How many times did your code analysis software show a developer didn‘t adhere to coding standards?
- How often does a developer‘s code execution time fall out with the contractual SLA?
Capturing these metrics will help you identify problematic areas of a software project and with enough historical data, you‘ll be able to make more accurate forecasts for future sprints.
It‘s important to look beyond the numbers however for the reasons we‘ve discussed in earlier sections of this blog post.
Finals thoughts on measuring KPIs for developers
In this post, we‘ve looked at developer productivity and discussed if it‘s possible to measure this accurately through KPIs for software development.
We‘ve seen there are far too many variables to consider when attempting to arrive at this and that each measurement will be dependent entirely on which stage your business or organization is in.
We‘ve differentiated between value-add activities and non-value activities and identified key metrics that you can start to record in an attempt to measure developer productivity. We‘ve also explored some tools and frameworks that you can employ to make this job easier to manage.
Last but not least, if you find yourself lacking the expertise or human resources to build your next software solution then why not take a moment to get in touch with DevTeam.Space to see how our experienced DevOps and developers can help you.
We have years of experience building top software applications and use a unique agile software development approach to ensure that all of our developers maintain optimum productivity.
You can get in touch with us by filling out our project specification form.
Frequently Asked Questions on measuring KPIs for developers
Ensuring that each member of your team is pulling their weight is essential if you are to keep your project on time and on budget. To do this, you need to monitor productivity.
The main focus points to measure KPIs for developers are:
• Tickets completed;
• Code reviews completed;
• Deadlines met;
• Code Quality;
• Response times.
Each developer has their own strengths and weaknesses. By working to a developer’s strengths and trying to ensure they avoid such things as distractions and overwork, and that they use the best tools for the job, a developer can boost their production considerably.