13-15 March 2020

City, University London

Understanding Code Complexity and using Static Analysis to measure it


Basic programming knowledge

Session details

Experienced programmers can often look at a piece of code and know what’s wrong, or feel what’s wrong. But people are known to miss things or overestimate the impact of any piece of code. Fortunately, mathematics comes to our rescue.

Engineers and mathematicians have tried to measure code complexity based on various factors and give a metric. These metrics help in understanding if the code in question is maintainable or has a lot of dependencies or even if it is too complex to test efficiently. This formal approach to understanding code complexity helps us in removing subjectivity and also allows us to automate using CI.

In this session, we will learn:

  • Some of the more common code complexity metrics.

  • Tools like phpmd and others which helps us in measuring code complexity.

  • Customise phpmd and other wrapper tools to check for precisely the metrics we care about.

  • Integrating these tools in your CI environment with a Docker image built for this purpose.

Skill Level
Session Track





Acquia - Experience digital freedom
Agiledrop - Trusted Drupal teammates

Weekend Keynote Speakers

Kevin Bridges


Michel van Velde

One Shoe, CEO

Nick Veenhof

Dropsolid, CTO

CxO Keynote Speakers

Kevin Bridges


Michel van Velde

One Shoe, CEO

Greg Harvey

Code Enigma, Director

Rachel Lawson

Drupal Association, Community Liaison

Carrie Lacina

Drupal Association, Fund Development Director

Jeffrey A. “jam” McGuire

Open Strategy Partners, Partner

Tracy Evans

Open Strategy Partners, Partner

Join the Drupal Association

The Drupal Association unites a global open source community to build and promote Drupal.

The Association is a not-for-profit organization that relies on individuals and businesses to fund everything they do for Drupal — from drupal.org to DrupalCon and community programs.

Connect with us and support our mission-driven work.

Support the Drupal Association

Hosting provided by