Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼13.49ms] Passed 4 tests
Analyzing server-side resources used by ECPay Logistics for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 39.22 ▼1.45 |
Dashboard /wp-admin | 3.61 ▲0.26 | 33.53 ▼30.89 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 41.74 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.85 ▼0.04 | 69.43 ▼19.86 |
Media Library /wp-admin/upload.php | 3.62 ▲0.38 | 30.48 ▼1.75 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 135 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for ECPay Logistics for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.40 ▼0.97 | 1.61 ▼0.24 | 43.93 ▼7.21 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▼0.05 | 103.98 ▼10.93 | 40.52 ▼4.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.04 | 41.24 ▲5.53 | 36.26 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 23.37 ▲5.09 | 637.92 ▼21.13 | 43.15 ▼16.09 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.04 | 98.05 ▲0.88 | 43.30 ▼3.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- 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
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 25× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/CreateWebAtmOrder.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/GetCheckoutResponse.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/DownloadCreditReconcileCsv.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/DownloadReconcileCsv.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Logistics/CrossBorder/CreateUnimartCvsOrder.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/CreateInstallmentOrder.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/Capture.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Logistics/CrossBorder/Print.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/QueryCreditTrade.php
- > /wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/example/Payment/CreateAtmOrder.php
- 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Ecpay\\Sdk\\Interfaces\\Response\\ResponseInterface' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src.copy/Abstracts/AbstractResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ecpay\\Sdk\\Abstracts\\AbstractResponse' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src.copy/Response/EncodedStrResponse.php:6
- > PHP Warning
Use of undefined constant ECPAY_PLUGIN_PATH - assumed 'ECPAY_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ecpay-logistics-for-woocommerce/ECPayLogisticsHelper.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'Ecpay\\Sdk\\Interfaces\\Services\\HttpClientInterface' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src/Services/CurlService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Ecpay\\Sdk\\Abstracts\\AbstractVerifiedResponse' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src/Response/VerifiedEncodedStrResponse.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src/TestCase/SingleServiceTestCase.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Ecpay\\Sdk\\Interfaces\\Request\\RequestInterface' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src.copy/Request/AesRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ecpay\\Sdk\\Abstracts\\AbstractVerifiedResponse' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src/Response/VerifiedArrayResponse.php:6
- > PHP Fatal error
Trait 'Ecpay\\Sdk\\Traits\\HashInfo' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src/Services/AesService.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Ecpay\\Sdk\\Abstracts\\AbstractResponse' not found in wp-content/plugins/ecpay-logistics-for-woocommerce/vendor/ecpay/sdk/src.copy/Response/ArrayResponse.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #1 in ecpay-logistics-for-woocommerce/assets to your readme.txt
- Requires php: Version not formatted correctly
ecpay-logistics-for-woocommerce/ECPay-shipping-integration.php 85% from 13 tests
The main file in "ECPay Logistics for WooCommerce" v. 2.0.2107060 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "3.1")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ecpay-logistics-for-woocommerce.php" instead of "ECPay-shipping-integration.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin6,335 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 1,292 | 2,633 | 5,976 |
JavaScript | 3 | 75 | 32 | 230 |
JSON | 2 | 0 | 0 | 63 |
CSS | 1 | 1 | 0 | 42 |
Markdown | 1 | 4 | 0 | 24 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 10 | |
Traits | 4 | |
Classes | 95 | |
▷ Abstract classes | 28 | 29.47% |
▷ Concrete classes | 67 | 70.53% |
▷ Final classes | 3 | 4.48% |
Methods | 412 | |
▷ Static methods | 41 | 9.95% |
▷ Public methods | 379 | 91.99% |
▷ Protected methods | 14 | 3.40% |
▷ Private methods | 19 | 4.61% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
Constants | 130 | |
▷ Global constants | 6 | 4.62% |
▷ Class constants | 124 | 95.38% |
▷ Public constants | 124 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin