Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.49ms] Passed 4 tests
This is a short check of server-side resources used by InPost PL
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.55 ▲0.59 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.72 ▼6.91 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.48 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.49 ▼8.58 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.63 ▼3.06 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 240 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by InPost PL
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.69 ▲0.36 | 1.78 ▲0.07 | 43.26 ▼2.11 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.08 | 89.31 ▼14.70 | 40.75 ▼5.58 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.07 | 39.96 ▼0.99 | 35.86 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.37 ▲0.40 | 659.89 ▼46.29 | 57.76 ▼0.97 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.01 | 94.70 ▼22.65 | 42.65 ▼6.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/inpost-for-woocommerce/src/InspireLabs/WoocommerceInpost/shipping/views/html-order-metabox-courier.php
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/inpost-for-woocommerce/lib/FPDI/src/PdfParser/Filter/LzwException.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/inpost-for-woocommerce/lib/FPDI/src/PdfParser/Type/PdfString.php:18
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/inpost-for-woocommerce/lib/FPDI/src/PdfParser/PdfParserException.php:18
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/inpost-for-woocommerce/lib/FPDI/src/PdfParser/Type/PdfName.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function InspireLabs\\WoocommerceInpost\\shipping\\add_action() in wp-content/plugins/inpost-for-woocommerce/src/InspireLabs/WoocommerceInpost/shipping/Easypack_checkout_validator.php:17
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/inpost-for-woocommerce/lib/FPDI/src/PdfParser/Type/PdfIndirectObject.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inpost-for-woocommerce/resources/templates/checkout/easypack-review-order-after-shipping.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/inpost-for-woocommerce/src/InspireLabs/WoocommerceInpost/shipping/views/html-field-commercial-product-identifier.php:13
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/inpost-for-woocommerce/lib/FPDI/src/PdfParser/CrossReference/LineReader.php:22
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/inpost-for-woocommerce/lib/FPDI/src/FpdfTpl.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: etykiety, inpost, przesyki, paczkomaty
inpost-for-woocommerce/woocommerce-inpost.php 77% from 13 tests
The primary PHP file in "InPost PL" version 1.2.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 174 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("inpost-for-woocommerce.php" instead of "woocommerce-inpost.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected27,848 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 174 | 5,669 | 6,118 | 25,829 |
PO File | 1 | 375 | 624 | 767 |
JavaScript | 11 | 170 | 23 | 745 |
CSS | 6 | 80 | 10 | 329 |
Markdown | 2 | 28 | 0 | 108 |
JSON | 4 | 0 | 0 | 70 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 339.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 118 | |
▷ Abstract classes | 3 | 2.54% |
▷ Concrete classes | 115 | 97.46% |
▷ Final classes | 0 | 0.00% |
Methods | 1,143 | |
▷ Static methods | 179 | 15.66% |
▷ Public methods | 1,018 | 89.06% |
▷ Protected methods | 79 | 6.91% |
▷ Private methods | 46 | 4.02% |
Functions | 37 | |
▷ Named functions | 22 | 59.46% |
▷ Anonymous functions | 15 | 40.54% |
Constants | 198 | |
▷ Global constants | 3 | 1.52% |
▷ Class constants | 195 | 98.48% |
▷ Public constants | 195 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/assets/images/logo/inpost-paczkomat-logo.png | 15.25KB | 6.58KB | ▼ 56.83% |
resources/assets/images/logo/inpost-paczka-w-weekend.png | 2.40KB | 1.10KB | ▼ 54.21% |
resources/assets/images/logo/small/black.png | 24.63KB | 6.61KB | ▼ 73.18% |
resources/assets/images/logo/small/white.png | 14.51KB | 4.07KB | ▼ 71.99% |
resources/assets/images/logo/small/yellow.png | 21.64KB | 6.34KB | ▼ 70.68% |