Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/woo-jtl-connector/includes/JtlConnectorAdmin.php+39
Trying to get property 'version' of non-object
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.61ms] Passed 4 tests
An overview of server-side resources used by WooCommerce JTL-Connector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.00 ▼7.24 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.64 ▼23.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.01 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.86 ▼12.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 32.74 ▲1.22 |
Server storage [IO: ▲38.70MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Total filesystem usage must be limited to 25MB (currently using 38.70MB)
Filesystem: 4,420 new files
Database: 10 new tables, 6 new options
New tables |
---|
wp_jtl_connector_link_currency |
wp_jtl_connector_link_crossselling_group |
wp_jtl_connector_category_level |
wp_jtl_connector_link_language |
jtl_connector_link_image |
jtl_connector_link_customer |
wp_jtl_connector_link_manufacturer |
wp_jtl_connector_link_crossselling |
jtl_connector_link_customer_group |
wp_jtl_connector_link_category |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce JTL-Connector
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲39 | 14.27 ▲0.03 | 1.65 ▲0.03 | 41.06 ▼5.27 |
Dashboard /wp-admin | 2,195 ▲17 | 5.62 ▼0.05 | 93.00 ▼22.42 | 42.20 ▼3.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.02 | 38.31 ▲3.79 | 34.69 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.37 ▲0.29 | 673.73 ▲61.80 | 52.75 ▼5.39 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.21 ▲0.04 | 97.64 ▲2.20 | 42.97 ▼0.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_jtl_connector_link_manufacturer
- jtl_connector_link_image
- wp_jtl_connector_link_currency
- wp_jtl_connector_link_language
- wp_jtl_connector_link_crossselling_group
- jtl_connector_link_customer
- jtl_connector_link_customer_group
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-jtl-connector/vendor/jms/serializer/tests/benchmark.php
- > /wp-content/plugins/woo-jtl-connector/vendor/jms/parser-lib/tests/bootstrap.php
- > /wp-content/plugins/woo-jtl-connector/vendor/phpcollection/phpcollection/tests/bootstrap.php
- 1964× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBagInterface' not found in wp-content/plugins/woo-jtl-connector/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php:19
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/woo-jtl-connector/vendor/fakerphp/faker/src/Faker/Provider/it_CH/Company.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-jtl-connector/vendor/jms/metadata/tests/Metadata/Tests/Driver/FileLocatorTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Faker\\Extension\\Extension' not found in wp-content/plugins/woo-jtl-connector/vendor/fakerphp/faker/src/Faker/Extension/NumberExtension.php:8
- > PHP Fatal error
Uncaught Error: Class 'JtlWooCommerceConnector\\Controllers\\AbstractBaseController' not found in wp-content/plugins/woo-jtl-connector/src/Controllers/Order/CustomerOrderAddressController.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/woo-jtl-connector/vendor/php-di/invoker/src/ParameterResolver/Container/TypeHintContainerResolver.php:13
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/woo-jtl-connector/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/woo-jtl-connector/vendor/fakerphp/faker/src/Faker/Provider/es_PE/PhoneNumber.php:5
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Contracts\\EventDispatcher\\Event' not found in wp-content/plugins/woo-jtl-connector/vendor/jtl/connector/src/Event/Manufacturer/ManufacturerAfterStatisticEvent.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Noodlehaus\\Parser\\ParserInterface' not found in wp-content/plugins/woo-jtl-connector/vendor/hassankhan/config/src/Parser/Php.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: warenwirtschaft, erp, woocommerce, jtl, wms...
woo-jtl-connector/woo-jtl-connector.php Passed 13 tests
The entry point to "WooCommerce JTL-Connector" version 1.41.1 is a PHP file that has certain tags in its header comment area
95 characters long description:
Connect your woocommerce-shop with JTL-Wawi, the free multichannel-erp for mail order business.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/woo-jtl-connector/vendor/twbs/bootstrap/nuget/MyGet.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,714 | 53,853 | 71,227 | 242,450 |
HTML | 602 | 60,897 | 21 | 211,373 |
JSON | 144 | 11 | 0 | 32,487 |
JavaScript | 72 | 5,918 | 2,410 | 26,543 |
Markdown | 164 | 4,900 | 0 | 18,871 |
CSS | 29 | 1,691 | 138 | 14,066 |
Sass | 111 | 1,574 | 1,253 | 6,843 |
XML | 164 | 64 | 20 | 5,783 |
YAML | 178 | 402 | 102 | 5,610 |
reStructuredText | 33 | 1,082 | 1,769 | 1,565 |
SVG | 16 | 0 | 0 | 268 |
Ant | 1 | 12 | 0 | 119 |
Twig | 3 | 7 | 0 | 55 |
Bourne Shell | 1 | 10 | 14 | 31 |
make | 1 | 8 | 0 | 18 |
Python | 1 | 13 | 16 | 12 |
PowerShell | 1 | 5 | 5 | 9 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 163)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 356.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 163.00 |
Code structure | ||
---|---|---|
Namespaces | 404 | |
Interfaces | 220 | |
Traits | 42 | |
Classes | 2,426 | |
▷ Abstract classes | 110 | 4.53% |
▷ Concrete classes | 2,316 | 95.47% |
▷ Final classes | 222 | 9.59% |
Methods | 11,766 | |
▷ Static methods | 1,756 | 14.92% |
▷ Public methods | 9,753 | 82.89% |
▷ Protected methods | 1,186 | 10.08% |
▷ Private methods | 827 | 7.03% |
Functions | 636 | |
▷ Named functions | 138 | 21.70% |
▷ Anonymous functions | 498 | 78.30% |
Constants | 1,023 | |
▷ Global constants | 22 | 2.15% |
▷ Class constants | 1,001 | 97.85% |
▷ Public constants | 922 | 92.11% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
61 PNG files occupy 1.92MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/twbs/bootstrap/nuget/bootstrap.png | 1.64KB | 1.70KB | 0.00% |
vendor/jms/serializer/doc/logo-small.png | 6.32KB | 3.96KB | ▼ 37.29% |
vendor/twbs/bootstrap/site/static/docs/4.6/assets/img/favicons/android-chrome-512x512.png | 4.17KB | 4.76KB | 0.00% |
vendor/twbs/bootstrap/site/static/docs/4.6/assets/img/examples/carousel@2x.png | 30.73KB | 32.87KB | 0.00% |
vendor/twbs/bootstrap/site/static/docs/4.6/assets/img/examples/album.png | 21.23KB | 11.12KB | ▼ 47.63% |