Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.00ms] Passed 4 tests
An overview of server-side resources used by Bliskapaczka.pl: integracja z WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.46 ▼2.35 |
Dashboard /wp-admin | 3.44 ▲0.09 | 52.55 ▼16.47 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 51.58 ▲0.11 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 99.22 ▼6.09 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.47 ▼3.09 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 237 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Bliskapaczka.pl: integracja z WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.24 ▲0.26 | 1.89 ▲0.15 | 41.74 ▼1.91 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.05 | 91.35 ▼5.92 | 39.53 ▼7.49 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 41.06 ▲0.08 | 35.58 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.14 ▼0.07 | 647.40 ▼36.05 | 58.74 ▼4.48 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.04 | 97.53 ▼17.50 | 44.49 ▼3.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bliskapaczka-pl/vendor/globalcitizen/php-iban/utils/convert-registry.php
- > /wp-content/plugins/bliskapaczka-pl/vendor/globalcitizen/php-iban/utils/ootest.php
- > /wp-content/plugins/bliskapaczka-pl/vendor/globalcitizen/php-iban/utils/other-tests.php
- > /wp-content/plugins/bliskapaczka-pl/vendor/globalcitizen/php-iban/utils/dump.php
- > /wp-content/plugins/bliskapaczka-pl/vendor/globalcitizen/php-iban/utils/validate-list.php
- > /wp-content/plugins/bliskapaczka-pl/vendor/globalcitizen/php-iban/utils/test.php
- 80× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/tests/unit/Bliskapaczka/ApiClient/Bliskapaczka/Todoor/AdviceTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Bliskapaczka\\ApiClient\\ShopVersion\\ShopVersionInterface' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/src/Bliskapaczka/ApiClient/ShopVersion/Woocommerce.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/tests/unit/Bliskapaczka/ApiClient/Bliskapaczka/ReportTest.php:8
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/index.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Bliskapaczka\\ApiClient\\Bliskapaczka\\Order' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/src/Bliskapaczka/ApiClient/Bliskapaczka/Todoor.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/tests/intergation/Bliskapaczka/ApiClinet/OrderValidationTest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Bliskapaczka\\ApiClient\\ShopVersion\\ShopVersionInterface' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/src/Bliskapaczka/ApiClient/ShopVersion/Magento1.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/tests/unit/Bliskapaczka/ApiClient/Bliskapaczka/Order/WaybillTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/tests/unit/Bliskapaczka/ApiClient/Validator/Order/AdviceTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bliskapaczka-pl/vendor/bliskapaczkapl/bliskapaczka-api-client/tests/pact/Bliskapaczka/ApiClient/Bliskapaczka/Pos/GetTest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: mapa, bliskapaczka, sendit, paczkomaty, dostawa...
bliskapaczka-pl/class-bliskapaczka-shipping-method.php 92% from 13 tests
The primary PHP file in "Bliskapaczka.pl: integracja z WooCommerce" version 1.5.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bliskapaczka-pl.php" instead of "class-bliskapaczka-shipping-method.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin11,804 lines of code in 143 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 2,189 | 3,426 | 9,738 |
Markdown | 6 | 344 | 0 | 1,273 |
JSON | 4 | 1 | 0 | 199 |
PO File | 1 | 5,052 | 12,261 | 199 |
JavaScript | 3 | 56 | 32 | 198 |
CSS | 2 | 13 | 5 | 108 |
YAML | 2 | 5 | 0 | 43 |
Bourne Again Shell | 1 | 4 | 8 | 25 |
Dockerfile | 1 | 6 | 7 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 100 | |
▷ Abstract classes | 5 | 5.00% |
▷ Concrete classes | 95 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 583 | |
▷ Static methods | 42 | 7.20% |
▷ Public methods | 465 | 79.76% |
▷ Protected methods | 100 | 17.15% |
▷ Private methods | 18 | 3.09% |
Functions | 127 | |
▷ Named functions | 122 | 96.06% |
▷ Anonymous functions | 5 | 3.94% |
Constants | 65 | |
▷ Global constants | 2 | 3.08% |
▷ Class constants | 63 | 96.92% |
▷ Public constants | 63 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/operators/XPRESS.png | 13.33KB | 4.85KB | ▼ 63.60% |
assets/img/operators/INPOST.png | 9.64KB | 4.54KB | ▼ 52.89% |
assets/img/operators/POCZTA.png | 15.07KB | 6.39KB | ▼ 57.57% |
assets/img/operators/DHL.png | 44.73KB | 17.19KB | ▼ 61.57% |
assets/img/operators/DPD.png | 29.37KB | 12.60KB | ▼ 57.08% |