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




Weekend Keynote Speakers

Kevin Bridges


CxO Keynote Speakers

Michel van Velde

One Shoe, CEO

Nick Rhind

CTI Digital, CEO

Greg Harvey

Code Enigma, Director

Rachel Lawson


Carrie Lacina


Drupal apprentices

The best people to train new developers are developers

The Drupal Apprenticeship Scheme will be running a London intake in March. If you are interested in hiring an apprentice or know someone who would benefit from the scheme please get in touch via the link below.

  • Created and run by experienced developers
  • Teaches core skills and best practice
  • Extensive support for businesses and teams

We are also really keen to hear from people who might be interested in mentoring, training and helping us to develop and review training materials to make sure they stay absolutely current and relevant.

Find out more

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