JacksonHoggard / voodoo2d

👹 2D Java Game Engine built in OpenGL
MIT License
131 stars 50 forks source link

Metrics results for the project #23

Open mpildiris opened 3 years ago

mpildiris commented 3 years ago

I run some metrics to your project by Metrics Reloaded(Jet Brains) in contex of an academic project.

Some of the most important results :

1)Method measurement v(G) = 1.53%(in cyclomatic complexity) -> Generally, 1-4% is low complexity, 5-7% show moderate complexity, 8-10% have high complexity and 11+% are very high complexity.So the results are in good terms.

image

2)WMC Average = 10,35. WMC->number of methods defined in class. The study suggests "optimal" use for WMC, but does not say what the optimal range is. In general it is good to range from 20-50 depending on the number of methods in a class.

image

3)CF Average = 17,66%. CF = Coupling Factor.

CF = Actual couplings / Maximum possible couplings The coupling factor (CF alias COF) measures the actual connections between classes in relation to the maximum number of possible links. It has been suggested that the CF should not exceed 12%, but we can not comment on whether this is a viable ceiling for all systems. In this project i found that the coupling factor is slightly increased based on the measurements.

image