| Class | Violations |
|---|---|
|
Drupal\paragraphs_library\Form\LibraryItemRevisionRevertForm
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (8, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=3) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects. |
Blob / God object |
|
Drupal\paragraphs_library\Form\LibraryItemRevisionDeleteForm
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (8, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=3) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects. |
Blob / God object |
|
Drupal\paragraphs_library\Entity\LibraryItem
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (11, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=8) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects.
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 12) Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 0.53 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class. |
Blob / God object Too complex method code Probably bugged |
|
Drupal\paragraphs_library\Plugin\Validation\Constraint\ParagraphsLibraryItemHasAllowedParagraphsTypeConstraintValidator
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 12) Maybe you should delegate some code to other objects or split complex method. |
Too complex method code |
|
Drupal\paragraphs_library\Controller\LibraryItemController
Probably bugged warning
This component contains in theory 0.43 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class. |
Probably bugged |
|
Drupal\paragraphs\ParagraphsBehaviorBase
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (16, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=13) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects. |
Blob / God object |
|
Drupal\paragraphs\Form\ParagraphsTypeForm
Probably bugged warning
This component contains in theory 0.82 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class. |
Probably bugged |
|
Drupal\paragraphs\Entity\Paragraph
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (27, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=9) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects.
Too complex class code error
This class looks really complex.
* Algorithms are complex (Total cyclomatic complexity of class is 82) * Component uses 210 operators Maybe you should delegate some code to other objects.
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 26) Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 1.99 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class.
Too long information
This class looks really long.
* Class has 364 logical lines of code * Class has 627 lines of code Maybe your class should not exceed 200 lines of logical code |
Blob / God object Too complex class code Too complex method code Probably bugged Too long |
|
Drupal\paragraphs\Entity\ParagraphsType
Probably bugged warning
This component contains in theory 0.57 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class. |
Probably bugged |
|
Drupal\paragraphs\ParagraphsConversionBase
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (12, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=10) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects. |
Blob / God object |
|
Drupal\paragraphs\Plugin\EntityReferenceSelection\ParagraphSelection
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 12) Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 1.03 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class. |
Too complex method code Probably bugged |
|
Drupal\paragraphs\Plugin\Field\FieldWidget\InlineParagraphsWidget
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (18, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=10) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects.
Too complex class code error
This class looks really complex.
* Algorithms are complex (Total cyclomatic complexity of class is 173) * Component uses 526 operators Maybe you should delegate some code to other objects.
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 74) Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 7.54 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class.
Too long information
This class looks really long.
* Class has 709 logical lines of code * Class has 994 lines of code Maybe your class should not exceed 200 lines of logical code |
Blob / God object Too complex class code Too complex method code Probably bugged Too long |
|
Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.
* object has lot of public methods (36, excluding getters and setters) * object has a high Lack of cohesion of methods (LCOM=26) * object knows everything (and use lot of external classes) Maybe you should reducing the number of methods splitting this object in many sub objects.
Too complex class code error
This class looks really complex.
* Algorithms are complex (Total cyclomatic complexity of class is 356) * Component uses 1093 operators Maybe you should delegate some code to other objects.
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 99) Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 16.98 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class.
Too long information
This class looks really long.
* Class has 1475 logical lines of code * Class has 2237 lines of code Maybe your class should not exceed 200 lines of logical code
Too dependent information
This class looks use really high number of components.
* Efferent coupling is 23, so this class uses 23 different external components. Maybe you should check why this class has lot of dependencies. |
Blob / God object Too complex class code Too complex method code Probably bugged Too long Too dependent |
|
Drupal\paragraphs\Plugin\migrate\field\Paragraphs
Probably bugged warning
This component contains in theory 0.4 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class. |
Probably bugged |
|
Drupal\paragraphs\Plugin\migrate\process\ParagraphsLookup
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 21) Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 0.5 bugs.
* Calculation is based on number of operators, operands, cyclomatic complexity * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures * testsuites has dependency to this class. Maybe you should check your unit tests for this class. |
Too complex method code Probably bugged |
|
Drupal\paragraphs\Hook\EntityHooks
Too complex method code error
This class looks really complex.
* Algorithms are complex (Max cyclomatic complexity of class methods is 11) Maybe you should delegate some code to other objects or split complex method. |
Too complex method code |
| Package | Violations |
|---|---|
|
Drupal\paragraphs_library
Stable Dependencies Principle warning
Packages should depend in the direction of stability.
This package is more stable (0.786) than 1 package(s) that it depends on. The packages that are more stable are * Drupal\paragraphs (0.855) |
Stable Dependencies Principle |
|
Drupal\paragraphs\Entity
Stable Dependencies Principle warning
Packages should depend in the direction of stability.
This package is more stable (0.75) than 1 package(s) that it depends on. The packages that are more stable are * Drupal\paragraphs (0.855) |
Stable Dependencies Principle |
|
Drupal\paragraphs\Plugin\migrate\source
Stable Abstractions Principle warning
Packages should be either abstract and stable or concrete and instable.
This package is instable and abstract. |
Stable Abstractions Principle |