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.directory.modules.pdfproducerarchive.business.zipbasket 8 74 360 82 367 1 264
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service 4 38 303 42 239 5 132
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web 1 11 250 11 58 13 33
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon 4 9 192 8 34 16 66
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils 2 13 119 11 60 0 84
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.action 2 10 98 12 38 10 66
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.queue 1 10 28 11 43 0 0
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.listener 1 2 8 3 10 0 33
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
23 167 1358 180 849 45 678

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean 209 11 0 11
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO 166 12 0 13
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryManageZipBasketService 109 22 0 23
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.FilesUtils 80 10 0 11
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.AddZipToBasketDaemon 75 4 0 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.ZipService 55 8 0 9
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasket 51 20 0 21
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.AsyncAddZipBasketService 46 3 0 3
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryPDFProducerArchivePlugin 40 5 0 6
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketAction 38 15 0 16
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryPDFProducerArchiveResourceIdService 32 3 0 4
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.action.MassExportZipAction 31 5 0 6
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.action.ZipBasketAction 27 5 0 6
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.queue.ZipItem 26 10 0 11
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketHome 25 12 0 13
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketActionDAO 18 1 0 2
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.ZipCleanerDaemon 17 1 0 2
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.IZipBasketDAO 12 11 0 12
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.StatusZipEnum 8 3 0 0
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.ZipBasketCheckStatusDaemon 8 1 0 2
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketActionHome 6 2 0 3
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.listener.DirectoryPDFProducerRemovalListener 5 2 0 3
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.IZipBasketActionDAO 2 1 0 2

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryManageZipBasketService 109 22 0 23
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasket 51 20 0 21
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketAction 38 15 0 16
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO 166 12 0 13
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketHome 25 12 0 13
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.IZipBasketDAO 12 11 0 12
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean 209 11 0 11
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.queue.ZipItem 26 10 0 11
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.FilesUtils 80 10 0 11
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.ZipService 55 8 0 9
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryPDFProducerArchivePlugin 40 5 0 6
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.action.MassExportZipAction 31 5 0 6
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.action.ZipBasketAction 27 5 0 6
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.AddZipToBasketDaemon 75 4 0 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.StatusZipEnum 8 3 0 0
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryPDFProducerArchiveResourceIdService 32 3 0 4
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.AsyncAddZipBasketService 46 3 0 3
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.listener.DirectoryPDFProducerRemovalListener 5 2 0 3
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketActionHome 6 2 0 3
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketActionDAO 18 1 0 2
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.IZipBasketActionDAO 2 1 0 2
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.ZipCleanerDaemon 17 1 0 2
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.ZipBasketCheckStatusDaemon 8 1 0 2

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
47.22 1,358.00 0.00 7.26 7.83

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.AddZipToBasketDaemon.run() 47 16 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.AsyncAddZipBasketService.run() 29 13 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.getLabelTimeBeforeNextDaemonPassage(String,String,HttpServletRequest,String) 29 9 0
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryManageZipBasketService.updateZipBasketStatus(StringBuilder) 26 8 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.exportAllZipBasket(HttpServletRequest) 24 11 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.getManageZipToBasket(HttpServletRequest) 23 9 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.getConfirmAddZipBasket(HttpServletRequest) 23 15 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.ZipService.doGeneratePDFAndZip(AdminUser,Locale,String,int,int,Integer,int) 22 5 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO.loadAllZipBasketByAdminUser(Plugin,int,int) 21 3 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO.loadAllZipBasketByAdminUserOrder(Plugin,int,int) 21 3 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryPDFProducerArchiveResourceIdService.register() 21 2 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO.loadZipBasketByDate(Plugin,Date) 20 2 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.FilesUtils.getAllFilesRecorded(AdminUser,String,Integer,int) 20 13 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO.loadAllZipBasket(Plugin) 19 3 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO.loadZipBasket(Plugin,int) 19 3 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketActionDAO.selectActionsByZipBasketState(int,Plugin) 16 2 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.addZipToBasket(HttpServletRequest) 16 7 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.removeZipToBasket(HttpServletRequest) 16 8 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.AddZipToBasketDaemon.addItemToQueue(ZipItem) 15 9 0
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.action.MassExportZipAction.process(HttpServletRequest,HttpServletResponse,AdminUser,DirectoryAdminSearchFields) 15 6 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.FilesUtils.doExtracFile(Plugin,RecordField,String) 14 6 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.DirectoryManageZipBasketService.deleteZipBasket(Plugin,int,String,StringBuilder) 14 3 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.FilesUtils.cleanTemporyZipDirectory(String) 13 6 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.daemon.ZipCleanerDaemon.run() 13 4 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.service.ZipService.doDeleteZip(String,int,int,int,String) 13 6 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.removeAllZip(HttpServletRequest) 13 7 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO.addZipBasket(String,int,Plugin,int,int,int) 12 1 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.utils.FilesUtils.doExtractFiles(String,Plugin,int,IEntry,IEntry) 11 6 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.web.ZipBasketJspBean.getConfirmRemoveZipBasket(HttpServletRequest) 11 3 1
fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO.existsZipBasket(int,Plugin,int,int) 9 1 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,358.00 5.57 2.12 0.96

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