I've taken a shot at listing the kind of stats that could be reported. It's not fully mature but let's take it as a starting point:
Suppressions:
Total number of suppressions:
Grouping by rule category and within that rule name
Violations:
Total number of violations
Grouping by severity
Grouping by category and within that rule name
Files:
Total number of files
Grouping by package name + file name listing number of errors
drill down to severities in each file
Rules:
Total number of rules violated
Grouping by rule name and count of each rule violation
Rule categories:
Total number of categories violated
Grouping by rule category name and count of violations in each group
Drill down to rules in each group and count for each rule
Total number of lines of code scanned (NCSSCount)
Maximum file size scanned with largest file name provided.
Median number of lines of code in a file.
Total number of classes in code base
Maximum size of class
Minimum size of class
Median size of class
Maximum number of methods in class
Median number of methods in a class
Maximum number of fields in a class
Median number of fields in a class
Maximum size of methods in classes
Median size of methods in classes
Summary stats for packages, classes, interfaces.
How many interfaces defined?
How many interfaces implemented?
How many abstract classes?
How many stand-alone classes i.e., not extending or implementing any?
How many final classes?
How many main classes?
How many utility classes?
How many unit test classes?
How many unit test suites?
How many classes use logggers?
How many data classes? Include direct access structures and unsuppressed Data Class types as identified by PMD.
How many lambdas?
How many switch statements?
How many try-with-resource statements?
How many anonymous classes?
How many inner classes?
How many nested classes?
How many library classes used i.e., non-JDK classes? How many packages referenced?
How many classes are Serializable?
List of annotations used.
List of annotations defined.
Stats for EJBs:
Number of session, entity and message beans.
More?
(You might want to weigh in about Unit tests).
You could similarly draw up stats for Java metrics. Similarly for Apex and JSP.
https://pmd.github.io/pmd-6.20.0/pmd_java_metrics_index.html
The report can be broken up into two versions: an abbreviated format and a long or full listing.
PMD can also consider incorporating CKJM metrics as well. ckjm-ext, however, functions at the byte code level.
http://gromit.iiar.pwr.wroc.pl/p_inf/ckjm/metric.html
SonarSource has ckjm integrated. I'm unaware if that's the basic or extended version since I haven't been exposed to it.
https://www.spinellis.gr/sw/ckjm/
http://sonarqube-archive.15.x6.nabble.com/sonar-dev-Sonar-2-0-CKJM-td4528938.html
Probably not any longer.