Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > User error in wp-content/plugins/link-products-to-sendinblue/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.66ms] Passed 4 tests
This is a short check of server-side resources used by Link Products To Sendinblue Lists From Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.34 ▼4.62 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.05 ▼12.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.09 ▲2.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.56 ▲5.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.78 ▲0.44 |
Server storage [IO: ▲4.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,159 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Link Products To Sendinblue Lists From Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.20 ▼1.18 | 2.13 ▲0.08 | 44.81 ▼3.48 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.02 | 113.33 ▼4.30 | 40.36 ▼2.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 39.27 ▼1.58 | 36.34 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,519 ▲2 | 23.26 ▲5.66 | 653.15 ▼3.49 | 55.25 ▼3.78 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▲0.01 | 97.03 ▲1.03 | 41.95 ▼2.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/link-products-to-sendinblue/templates/admin/options/partials/form-fields.php
- > /wp-content/plugins/link-products-to-sendinblue/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 631× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Scalar\\MagicConst' not found in wp-content/plugins/link-products-to-sendinblue/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Runner\\Filter\\GroupFilterIterator' not found in wp-content/plugins/link-products-to-sendinblue/vendor/phpunit/phpunit/src/Runner/Filter/IncludeGroupFilterIterator.php:17
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\Cast' not found in wp-content/plugins/link-products-to-sendinblue/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php:7
- > PHP Fatal error
Uncaught Error: Interface 'SebastianBergmann\\CodeCoverage\\Exception' not found in wp-content/plugins/link-products-to-sendinblue/vendor/phpunit/php-code-coverage/src/Exception/ReflectionException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Framework\\MockObject\\Stub\\Stub' not found in wp-content/plugins/link-products-to-sendinblue/vendor/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnSelf.php:18
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Exception' not found in wp-content/plugins/link-products-to-sendinblue/vendor/phpunit/phpunit/src/Util/InvalidDataSetException.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Util\\Printer' not found in wp-content/plugins/link-products-to-sendinblue/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php:29
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/link-products-to-sendinblue/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php:9
- > PHP Fatal error
Uncaught Error: Interface 'PhpParser\\Parser' not found in wp-content/plugins/link-products-to-sendinblue/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:30
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/link-products-to-sendinblue/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: sendinblue, woocommerce
link-products-to-sendinblue/link-products-to-sendinblue.php Passed 13 tests
The primary PHP file in "Link Products To Sendinblue Lists From Woocommerce" version 1.1.5 is used by WordPress to initiate all plugin functionality
99 characters long description:
Link WooCommerce products to a specific Brevo (ex Sendinblue) list to add the customer to that list
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
Good job! No executable or dangerous file extensions detected73,434 lines of code in 1,076 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 949 | 13,415 | 23,782 | 63,893 |
JSON | 32 | 7 | 0 | 3,225 |
Markdown | 57 | 1,604 | 0 | 2,671 |
yacc | 3 | 336 | 12 | 2,050 |
XSD | 3 | 0 | 0 | 964 |
XML | 11 | 1 | 0 | 153 |
CSS | 6 | 36 | 12 | 147 |
PO File | 1 | 36 | 40 | 121 |
YAML | 2 | 23 | 1 | 89 |
JavaScript | 8 | 17 | 27 | 88 |
reStructuredText | 2 | 23 | 18 | 31 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 142)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 142.00 |
Code structure | ||
---|---|---|
Namespaces | 100 | |
Interfaces | 72 | |
Traits | 4 | |
Classes | 847 | |
▷ Abstract classes | 43 | 5.08% |
▷ Concrete classes | 804 | 94.92% |
▷ Final classes | 443 | 55.10% |
Methods | 4,455 | |
▷ Static methods | 415 | 9.32% |
▷ Public methods | 3,442 | 77.26% |
▷ Protected methods | 499 | 11.20% |
▷ Private methods | 514 | 11.54% |
Functions | 1,485 | |
▷ Named functions | 231 | 15.56% |
▷ Anonymous functions | 1,254 | 84.44% |
Constants | 544 | |
▷ Global constants | 9 | 1.65% |
▷ Class constants | 535 | 98.35% |
▷ Public constants | 488 | 91.21% |
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
No PNG files were detected