Understanding php static code analysis results -


i need advice. cant found information static code analysis results. example, use phploc, , generate report. it's results or bad dont know. understand utility wouldn't have enjoyed report must same. after seeing results, can solve bad code or not.

where can see info lines in results?

thanks help!

all found is: maximum method complexity must not greater 10. cyclomaticcomplexity - 1-4 low - 5-7 indicates moderate complexity - 8-10 high complexity - 11+ high complexity.

directories                                          1 files                                                3  size   lines of code (loc)                              296   comment lines of code (cloc)                     116 (39.19%)   non-comment lines of code (ncloc)                180 (60.81%)   logical lines of code (lloc)                      50 (16.89%)     classes                                         43 (86.00%)       average class length                          14         minimum class length                         0         maximum class length                        43       average method length                          3         minimum method length                        1         maximum method length                        7     functions                                        0 (0.00%)       average function length                        0     not in classes or functions                      7 (14.00%)  cyclomatic complexity   average complexity per lloc                     0.22   average complexity per class                    4.67     minimum class complexity                      1.00     maximum class complexity                     12.00   average complexity per method                   2.00     minimum method complexity                     1.00     maximum method complexity                     4.00  dependencies   global accesses                                    0     global constants                                 0 (0.00%)     global variables                                 0 (0.00%)     super-global variables                           0 (0.00%)   attribute accesses                                16     non-static                                      16 (100.00%)     static                                           0 (0.00%)   method calls                                      22     non-static                                      22 (100.00%)     static                                           0 (0.00%)  structure   namespaces                                         2   interfaces                                         0   traits                                             0   classes                                            3     abstract classes                                 0 (0.00%)     concrete classes                                 3 (100.00%)   methods                                           11     scope       non-static methods                            11 (100.00%)       static methods                                 0 (0.00%)     visibility       public methods                                10 (90.91%)       non-public methods                             1 (9.09%)   functions                                          0     named functions                                  0 (0.00%)     anonymous functions                              0 (0.00%)   constants                                          1     global constants                                 0 (0.00%)     class constants                                  1 (100.00%) 

here more sources / links metrics , results , info in old similar question. if want more info mistakes , code smells recommand intro: php_codesniffer , php_depend


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -