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.crmclient.service 2 35 205 11 39 4 66
fr.paris.lutece.plugins.crmclient.business.demand 15 13 143 28 112 2 495
fr.paris.lutece.plugins.crmclient.business 2 8 127 10 36 0 66
fr.paris.lutece.plugins.crmclient.util.http 3 3 71 5 43 0 104
fr.paris.lutece.plugins.crmclient.business.user 5 4 55 9 37 1 165
fr.paris.lutece.plugins.crmclient.service.processor 2 8 47 10 54 2 66
fr.paris.lutece.plugins.crmclient.service.daemon 1 1 34 2 8 1 33
fr.paris.lutece.plugins.crmclient.service.authenticator 1 4 21 4 18 0 33
fr.paris.lutece.plugins.crmclient.business.notification 2 2 16 4 16 2 66
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
33 78 719 83 363 12 1094

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.crmclient.service.CRMClientService 188 34 0 9
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO 96 7 0 8
fr.paris.lutece.plugins.crmclient.util.http.WebServiceCaller 48 2 0 3
fr.paris.lutece.plugins.crmclient.service.processor.CRMClientWSProcessor 26 6 0 7
fr.paris.lutece.plugins.crmclient.service.daemon.CRMClientSenderDaemon 25 1 0 2
fr.paris.lutece.plugins.crmclient.service.authenticator.AuthenticatorService 16 4 0 4
fr.paris.lutece.plugins.crmclient.business.CRMItemFactory 14 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemGuidByIdCRMUser 12 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttribute 12 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemUserGuid 12 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttributesJson 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttributesXml 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemCreateByUserGuidV2 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemCreateByIdCRMUser 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemUpdate 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemCreateByUserGuid 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDelete 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemUpdateV2 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDeleteV2 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandXmlV2 7 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandJsonV2 7 1 0 2
fr.paris.lutece.plugins.crmclient.business.notification.NotificationItemV2 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.notification.NotificationItem 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandXml 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandJson 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandTypes 5 1 0 2
fr.paris.lutece.plugins.crmclient.service.CRMClientPlugin 4 1 0 2
fr.paris.lutece.plugins.crmclient.service.processor.ICRMClientProcessor 4 2 0 3
fr.paris.lutece.plugins.crmclient.business.user.UserItem 3 0 0 1
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemV2 3 0 0 1

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.crmclient.service.CRMClientService 188 34 0 9
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO 96 7 0 8
fr.paris.lutece.plugins.crmclient.service.processor.CRMClientWSProcessor 26 6 0 7
fr.paris.lutece.plugins.crmclient.service.authenticator.AuthenticatorService 16 4 0 4
fr.paris.lutece.plugins.crmclient.service.processor.ICRMClientProcessor 4 2 0 3
fr.paris.lutece.plugins.crmclient.util.http.WebServiceCaller 48 2 0 3
fr.paris.lutece.plugins.crmclient.business.notification.NotificationItemV2 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.notification.NotificationItem 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemGuidByIdCRMUser 12 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttribute 12 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttributesJson 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttributesXml 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandXml 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemUserGuid 12 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemCreateByUserGuidV2 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandJson 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemCreateByIdCRMUser 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemUpdate 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandXmlV2 7 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemCreateByUserGuid 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDelete 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandTypes 5 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemUpdateV2 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDeleteV2 9 1 0 2
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemDemandJsonV2 7 1 0 2
fr.paris.lutece.plugins.crmclient.business.CRMItemFactory 14 1 0 2
fr.paris.lutece.plugins.crmclient.service.CRMClientPlugin 4 1 0 2
fr.paris.lutece.plugins.crmclient.service.daemon.CRMClientSenderDaemon 25 1 0 2
fr.paris.lutece.plugins.crmclient.util.http.IWebServiceCaller 2 1 0 2
fr.paris.lutece.plugins.crmclient.business.user.UserItem 3 0 0 1

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
17.85 719.00 0.00 2.36 2.52

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.crmclient.util.http.WebServiceCaller.trace(String,String,RequestAuthenticator,String) 33 6 1
fr.paris.lutece.plugins.crmclient.service.daemon.CRMClientSenderDaemon.run() 24 8 1
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO.insert(CRMItemQueue) 23 3 1
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO.load(int) 22 4 1
fr.paris.lutece.plugins.crmclient.util.http.WebServiceCaller.callWebService(String,String,RequestAuthenticator,String,HttpMethodEnum) 14 5 1
fr.paris.lutece.plugins.crmclient.business.CRMItemFactory.newCRMItem(String) 13 7 1
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO.delete(int) 12 2 1
fr.paris.lutece.plugins.crmclient.service.CRMClientService.sendUpdateDemandV2(String,String,String,String,String,String) 12 7 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.sendUpdateDemand(String,String,String,String,String) 11 6 1
fr.paris.lutece.plugins.crmclient.service.CRMClientService.sendCreateDemandByUserGuidV2(String,String,String,String,String,String,String) 11 8 0
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttribute.getUrlForWS() 10 1 1
fr.paris.lutece.plugins.crmclient.service.CRMClientService.sendCreateDemandByUserGuid(String,String,String,String,String,String) 10 7 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.sendCreateDemandByIdCRMUser(String,String,String,String,String,String) 10 7 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.notifyV2(String,String,String,String,String,String) 10 7 0
fr.paris.lutece.plugins.crmclient.business.user.UserItemGuidByIdCRMUser.getUrlForWS() 9 1 1
fr.paris.lutece.plugins.crmclient.business.demand.DemandItemUserGuid.getUrlForWS() 9 1 1
fr.paris.lutece.plugins.crmclient.service.CRMClientService.notify(String,String,String,String,String) 9 6 1
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO.newPrimaryKey() 8 2 1
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO.nextCRMItemQueueId() 8 2 1
fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO.getCountCRMItem() 8 2 1
fr.paris.lutece.plugins.crmclient.service.CRMClientService.getDemandJsonV2(String,String,String) 8 4 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.getDemandXmlV2(String,String,String) 8 4 0
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttributesJson.getUrlForWS() 7 1 1
fr.paris.lutece.plugins.crmclient.business.user.UserItemAttributesXml.getUrlForWS() 7 1 1
fr.paris.lutece.plugins.crmclient.service.CRMClientService.getDemandXml(String,String) 7 3 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.getDemandJson(String,String) 7 3 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.getCRMUserAttribute(String,String,String) 7 4 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.getCRMUserAttributesXml(String,String) 7 3 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.getCRMUserAttributesJson(String,String) 7 3 0
fr.paris.lutece.plugins.crmclient.service.CRMClientService.sendDeleteDemandV2(String,String,String) 7 4 0

Averages.

Program NCSS NCSS average CCN average Javadocs average
719.00 6.32 2.42 0.67

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).