---
name: "Analizo::Metric::NumberOfPublicMethods"
section: "3pm"
platform: "linux"
package: "analizo"
version: "1.25.5-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Analizo::Metric::NumberOfPublicMethods"
---

# Analizo::Metric::NumberOfPublicMethods(3pm)

Number of Public Methods (NPM) metric

## NAME

Analizo::Metric::NumerOfPublicMethods - Number of Public Methods (NPM) metric

## DESCRIPTION

The metric calculation is based on the following article and calculates the number of public methods of a class.

Article: *Monitoring of source code metrics in open source projects* by Paulo Roberto Miranda Meirelles.

See the adaptation of the paragraph about Number of Public Methods in the article:

Represents the size of the "interface" of the class. Methods are directly related to the operations provided in the respective class. High values for this metric indicate that a class has many methods and probably many responsibilities, which conflicts with good programming practices (Beck, 1997).
