Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.88ms] Passed 4 tests
A check of server-side resources used by InPost for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.11 ▲1.64 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.39 ▼3.75 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.61 ▼7.48 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 100.62 ▼3.21 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.07 ▼1.06 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 146 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
woo_inpost_show_popup_once |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for InPost for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.55 ▼0.66 | 5.64 ▲3.91 | 43.34 ▼3.90 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.77 | 109.51 ▲4.68 | 43.40 ▼0.57 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.97 ▼0.02 | 36.71 ▼2.06 | 38.53 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 22.98 ▲5.32 | 666.77 ▼8.65 | 62.14 ▲4.76 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.23 ▲0.04 | 106.10 ▲2.11 | 42.32 ▼4.91 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- woo_inpost_show_popup_once
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-inpost/templates/checkout/crossborder-review-order-after-shipping.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-inpost/themes/Avada/woocommerce/checkout/easypack-review-order-after-shipping.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-inpost/classes/shipping/class-easypack-checkout-validator-service.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-inpost/templates/myaccount/before-my-account.php:11
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/woo-inpost/lib/code128.php:41
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/woo-inpost/lib/fpdi/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/woo-inpost/lib/fpdi/fpdi2tcpdf_bridge.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-inpost/templates/checkout/easypack-review-order-after-shipping.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-inpost/templates/emails/after-order-table.php:12
- > PHP Notice
Undefined variable: returns_page in wp-content/plugins/woo-inpost/templates/myaccount/after-my-account.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Main settings.), #2 (Generate parcel.)
woo-inpost/woo-inpost.php 85% from 13 tests
Analyzing the main PHP file in "InPost for WooCommerce" version 1.4.0
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)
- Domain Path: The domain path folder was not found ("/lang/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected15,307 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,843 | 2,059 | 12,182 |
PO File | 5 | 1,175 | 2,036 | 2,814 |
JavaScript | 4 | 25 | 10 | 144 |
CSS | 2 | 26 | 1 | 133 |
JSON | 1 | 0 | 0 | 30 |
INI | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 43.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 460 | |
▷ Static methods | 45 | 9.78% |
▷ Public methods | 388 | 84.35% |
▷ Protected methods | 71 | 15.43% |
▷ Private methods | 1 | 0.22% |
Functions | 31 | |
▷ Named functions | 30 | 96.77% |
▷ Anonymous functions | 1 | 3.23% |
Constants | 23 | |
▷ Global constants | 1 | 4.35% |
▷ Class constants | 22 | 95.65% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo/small/black.png | 24.63KB | 6.61KB | ▼ 73.18% |
assets/images/logo/small/yellow.png | 21.64KB | 6.34KB | ▼ 70.68% |
assets/images/logo/small/white.png | 14.51KB | 4.07KB | ▼ 71.99% |