Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.17ms] Passed 4 tests
Server-side resources used by Terms Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 41.02 ▼4.18 |
Dashboard /wp-admin | 3.43 ▲0.13 | 52.80 ▲1.64 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.25 ▼5.73 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 101.20 ▼12.40 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 44.20 ▲8.93 |
Server storage [IO: ▲8.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,967 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Terms Block: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.27 ▼0.07 | 2.31 ▲0.45 | 40.82 ▼4.42 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.11 | 94.77 ▼3.38 | 41.70 ▼1.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.01 | 42.69 ▲6.71 | 39.18 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,689 ▲163 | 22.01 ▼0.87 | 619.04 ▼79.07 | 27.68 ▼26.74 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.07 | 103.66 ▼15.58 | 48.76 ▼0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/terms-block/vendor/hamworks/wp-dynamic-block/tests/bootstrap.php
- > /wp-content/plugins/terms-block/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
- > /wp-content/plugins/terms-block/src/terms-block/template.php
- 839× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Standards\\PSR2\\Sniffs\\Classes\\ClassDeclarationSniff' not found in wp-content/plugins/terms-block/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPCSUtils\\AbstractSniffs\\AbstractArrayDeclarationSniff' not found in wp-content/plugins/terms-block/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/DuplicateArrayKeySniff.php:30
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/terms-block/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/terms-block/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/UndoNamespacedNameSingleTokenTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\Sniff' not found in wp-content/plugins/terms-block/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/FunctionDeclarations/NewNullableTypesSniff.php:29
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/terms-block/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Sniffs\\AbstractVariableSniff' not found in wp-content/plugins/terms-block/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\Sniffs\\InitialValue\ewConstantScalarExpressionsSniff' not found in wp-content/plugins/terms-block/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/InitialValue/NewHeredocSniff.php:37
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/terms-block/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopWithTestFunctionCallSniff.php:33
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/terms-block/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Lists/DisallowLongListSyntaxSniff.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: gutenberg, block, term
terms-block/terms-block.php 92% from 13 tests
Analyzing the main PHP file in "Terms Block" version 2.1.0
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected165,499 lines of code in 1,567 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,062 | 25,181 | 54,794 | 110,417 |
JSON | 20 | 0 | 0 | 31,587 |
XML | 238 | 607 | 1,018 | 8,459 |
Pascal | 130 | 3,231 | 7,118 | 6,576 |
Markdown | 16 | 1,502 | 0 | 5,273 |
JavaScript | 65 | 783 | 898 | 2,360 |
CSS | 33 | 189 | 92 | 665 |
XSD | 1 | 6 | 0 | 130 |
Bourne Shell | 2 | 8 | 0 | 32 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 478)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 724.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 478.00 |
Code structure | ||
---|---|---|
Namespaces | 219 | |
Interfaces | 3 | |
Traits | 6 | |
Classes | 894 | |
▷ Abstract classes | 22 | 2.46% |
▷ Concrete classes | 872 | 97.54% |
▷ Final classes | 154 | 17.66% |
Methods | 2,850 | |
▷ Static methods | 281 | 9.86% |
▷ Public methods | 2,375 | 83.33% |
▷ Protected methods | 350 | 12.28% |
▷ Private methods | 125 | 4.39% |
Functions | 31 | |
▷ Named functions | 2 | 6.45% |
▷ Anonymous functions | 29 | 93.55% |
Constants | 213 | |
▷ Global constants | 118 | 55.40% |
▷ Class constants | 95 | 44.60% |
▷ Public constants | 95 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin