Code metrics are used to measure properties of software like size, complexity, and coupling. Applying design patterns can change these metrics. The document discusses limitations of metrics and provides examples of metric changes after refactoring code to use design patterns like Mediator, Bridge, and Visitor. It also lists tools for calculating metrics and references on the topic.