Fork me on GitHub

JavaNCSS Metric Results

[ package ] [ object ] [ method ] [ explanation ]

The following document contains the results of a JavaNCSS metric analysis, using JavaNCSS version 33.54.
JavaNCSS web site.

Packages

Packages

[ package ] [ object ] [ method ] [ explanation ]

Packages sorted by NCSS.

Package Classes Methods NCSS Javadocs Javadoc lines Single lines comment Multi lines comment
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web 5 83 1834 86 446 59 168
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business 16 201 1026 217 1049 36 540
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service 11 120 714 131 548 31 363
fr.paris.lutece.plugins.mylutece.modules.directory.authentication 2 23 192 23 81 12 66
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.key 4 20 92 24 103 0 132
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.parameter 3 12 78 15 71 1 99
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.parameter 2 13 64 15 55 1 66
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.workflow 2 6 58 8 28 2 66
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.key 2 14 54 16 66 6 66
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.security 2 4 21 6 30 0 66
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
49 496 4133 541 2477 148 1632

Objects

Objects

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean 711 29 0 30
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp 650 31 0 30
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryService 297 40 0 41
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserDAO 291 27 0 28
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryJspBean 246 14 0 15
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryDAO 156 19 0 20
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.BaseAuthentication 142 22 0 21
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserHome 117 32 0 33
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryHome 90 22 0 23
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryAccountLifeTimeService 78 15 0 16
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.AttributeMappingDAO 55 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUser 52 18 0 19
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.key.MyluteceDirectoryUserKeyDAO 49 5 0 6
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.parameter.MyluteceDirectoryParameterService 48 10 0 11
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryAnonymizationService 41 3 0 4
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.IMyluteceDirectoryService 38 37 0 38
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.parameter.MyluteceDirectoryParameterDAO 35 3 0 4
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.key.MyluteceDirectoryUserKeyService 35 7 0 8
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.IMyluteceDirectoryUserDAO 28 27 0 28
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserFieldListener 27 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.FormErrors 24 8 0 9
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.parameter.MyluteceDirectoryParameterHome 24 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.IMyluteceDirectoryDAO 20 19 0 20
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryResourceIdService 19 3 0 4
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.AttributeMappingHome 15 7 0 8
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.key.MyluteceDirectoryUserKeyHome 15 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.AttributeMappingService 14 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.workflow.TaskEnableMyluteceDirectoryAccount 13 3 0 4
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.workflow.TaskDisableMyluteceDirectoryAccount 13 3 0 4
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryPlugin 13 1 0 2

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryService 297 40 0 41
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.IMyluteceDirectoryService 38 37 0 38
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserHome 117 32 0 33
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp 650 31 0 30
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean 711 29 0 30
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.IMyluteceDirectoryUserDAO 28 27 0 28
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserDAO 291 27 0 28
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.BaseAuthentication 142 22 0 21
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryHome 90 22 0 23
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.IMyluteceDirectoryDAO 20 19 0 20
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryDAO 156 19 0 20
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUser 52 18 0 19
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryAccountLifeTimeService 78 15 0 16
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryJspBean 246 14 0 15
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.parameter.MyluteceDirectoryParameterService 48 10 0 11
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.FormErrors 24 8 0 9
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.AttributeMappingHome 15 7 0 8
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.key.IMyluteceDirectoryUserKeyService 8 7 0 8
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.key.MyluteceDirectoryUserKeyService 35 7 0 8
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.AttributeMappingDAO 55 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserFieldListener 27 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.parameter.MyluteceDirectoryParameterHome 24 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.key.MyluteceDirectoryUserKeyHome 15 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.IAttributeMappingDAO 7 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.IAttributeMappingService 7 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.AttributeMappingService 14 6 0 7
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.key.MyluteceDirectoryUserKeyDAO 49 5 0 6
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.key.IMyluteceDirectoryUserKeyDAO 6 5 0 6
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.AttributeMapping 11 4 0 5
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.key.MyluteceDirectoryUserKey 11 4 0 5

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
71.51 4,133.00 0.00 10.12 11.04

Methods

Methods

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.getModifyAccountLifeTimeEmails(HttpServletRequest) 85 14 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.doCreateAccount(HttpServletRequest) 80 24 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.getManageRecords(HttpServletRequest) 73 15 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.doModifyAccountLifeTimeEmails(HttpServletRequest) 63 12 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.doModifyAccount(HttpServletRequest) 58 20 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.doModifyUser(HttpServletRequest) 56 28 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.BaseAuthentication.login(String,String,HttpServletRequest) 51 28 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.doSendPassword(HttpServletRequest) 48 20 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryJspBean.getManageMappings(HttpServletRequest) 45 14 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.getCreateAccountPage(XPage,FormErrors) 41 12 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.doSendLogin(HttpServletRequest) 39 15 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.getPage(HttpServletRequest,int,Plugin) 38 16 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryAnonymizationService.anonymizeUser(Integer,Locale) 32 10 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.getReinitPasswordPage(XPage,HttpServletRequest) 31 9 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.getModifyUser(HttpServletRequest) 31 8 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryJspBean.getCreateMappings(HttpServletRequest) 31 12 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.getModifyAccountPage(XPage,HttpServletRequest) 30 3 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.doCreateUser(HttpServletRequest) 30 15 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryHome.findLuteceUserByLogin(String,Plugin,LuteceAuthentication) 29 8 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryService.getFilteredUsersInterface(Integer,HttpServletRequest,Object,UrlItem) 29 8 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.doReinitPassword(HttpServletRequest) 26 10 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryJspBean.getManageDirectory(HttpServletRequest) 25 3 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.MyluteceDirectoryService.changeUserPasswordAndNotify(String,Plugin,Locale) 23 7 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.getCreateUser(HttpServletRequest) 22 6 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyLuteceDirectoryApp.updateAccount(HttpServletRequest) 21 12 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserHome.getEmails(int,Plugin,Locale) 21 9 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.getManageRolesUser(HttpServletRequest) 20 6 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.doModifyPasswordEncryption(HttpServletRequest) 20 6 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.web.MyluteceDirectoryUserJspBean.doChangeFieldAnonymizeUsers(HttpServletRequest) 20 8 1
fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryHome.findDirectoryUsersList(Plugin,LuteceAuthentication) 20 4 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
4,133.00 5.87 2.23 0.99

Explanations

Explanations

[ package ] [ object ] [ method ] [ explanation ]

Non Commenting Source Statements (NCSS)

Statements for JavaNCSS are not statements as specified in the Java Language Specification but include all kinds of declarations too. Roughly spoken, NCSS is approximately equivalent to counting ';' and '{' characters in Java source files.

Not counted are empty statements, empty blocks or semicolons after closing brackets. Of course, comments don't get counted too. Closing brackets also never get counted, the same applies to blocks in general.

Examples
Package declaration package java.lang;
Import declaration import java.awt.*;
Class declaration
  • public class Foo {
  • public class Foo extends Bla {
Interface declaration public interface Able ; {
Field declaration
  • int a;
  • int a, b, c = 5, d = 6;
Method declaration
  • public void cry();
  • public void gib() throws DeadException {
Constructor declaration public Foo() {
Constructor invocation
  • this();
  • super();
Statement declaration
  • i = 0;
  • if (ok)
  • if (exit) {
  • if (3 == 4);
  • if (4 == 4) { ;
  • } else {
Label declaration fine :

In some cases consecutive semicolons are illegal according to the JLS but JavaNCSS still tolerates them (thought JavaNCSS is still more strict as 'javac'). Nevertheless they are never counted as two statements.

Cyclomatic Complexity Number (CCN)

CCN is also know as McCabe Metric. There exists a much hyped theory behind it based on graph theory, but it all comes down to simply counting 'if', 'for', 'while' statements etc. in a method. Whenever the control flow of a method splits, the "CCN counter" gets incremented by one.

Each method has a minimum value of 1 per default. For each of the following Java keywords/statements this value gets incremented by one:

  • if
  • for
  • while
  • case
  • catch

Also if the control flow of a method returns abortively the CCNvalue will be incremented by one:

  • if
  • for

An ordinary return at the end of method will not be counted.

Note that 'else', 'default', and 'finally' don't increment the CCN value any further. On the other hand, a simple method with a 'switch' statement and a huge block of 'case' statements can have a surprisingly high CCN value (still it has the same value when converting a 'switch' block to an equivalent sequence of 'if' statements).