Created at 2025-11-27 16:00:38 , with PHPMetrics v2.9.1 (Jean-François Lépine).
Violations
7
Information
1
Warnings
3
Errors
3
Criticals
0

Class Violations

Class Violations
Drupal\admin_toolbar_search\SearchLinks
Too complex method code error
This class looks really complex.

* Algorithms are complex (Max cyclomatic complexity of class methods is 34)

Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 1.21 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\admin_toolbar_tools\Plugin\Derivative\ExtraLinks
Too complex class code error
This class looks really complex.

* Algorithms are complex (Total cyclomatic complexity of class is 70)
* Component uses 381 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 68)

Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 4.75 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 296 logical lines of code
* Class has 400 lines of code

Maybe your class should not exceed 200 lines of logical code
Too complex class code Too complex method code Probably bugged Too long
Drupal\admin_toolbar\Form\AdminToolbarSettingsForm
Probably bugged warning
This component contains in theory 0.41 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

Package Violations

Package Violations