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.01MB] [CPU: ▼5.82ms] Passed 4 tests
An overview of server-side resources used by Packlink PRO shipping module
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.41 ▼4.34 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.81 ▼18.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.49 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.54 ▲0.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.23 ▼0.31 |
Server storage [IO: ▲3.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 802 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
PACKLINK_VERSION |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Packlink PRO shipping module
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.36 ▲0.05 | 1.57 ▼0.29 | 38.43 ▼5.66 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.02 | 93.24 ▼3.75 | 42.40 ▼1.62 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▲0.01 | 38.83 ▲2.25 | 37.41 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 25.01 ▲1.78 | 611.65 ▼13.68 | 67.63 ▲18.48 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▲0.02 | 95.28 ▼10.08 | 41.66 ▼6.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- PACKLINK_VERSION
- widget_theysaidso_widget
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 207× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/vendor/leafo/scssphp/scss.inc.php' (include_path='.:/usr/share/php') in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/cssCompile.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Logeecom\\Infrastructure\\Data\\DataTransferObject' not found in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/BusinessLogic/Http/DTO/Draft/AdditionalData.php:11
- > PHP Fatal error
Uncaught Error: Class 'Packlink\\WooCommerce\\Components\\Utility\\Database' not found in wp-content/plugins/packlink-pro-shipping/upgrade/upgrade-2.2.0.php:26
- > PHP Fatal error
Uncaught Error: Class 'Logeecom\\Infrastructure\\Http\\HttpClient' not found in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/Infrastructure/Http/CurlHttpClient.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/packlink-pro-shipping/resources/views/success-message.php:8
- > PHP Fatal error
Uncaught Error: Class 'Logeecom\\Infrastructure\\Http\\Exceptions\\HttpBaseException' not found in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/Infrastructure/Http/Exceptions/HttpBatchSizeTooBigException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Packlink\\BusinessLogic\\DTO\\FrontDto' not found in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/BusinessLogic/Registration/RegistrationLegalPolicy.php:14
- > PHP Fatal error
Uncaught Error: Class 'Logeecom\\Infrastructure\\Data\\DataTransferObject' not found in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/BusinessLogic/Http/DTO/Package.php:12
- > PHP Fatal error
Uncaught Error: Class 'Packlink\\BusinessLogic\\Country\\CountryService' not found in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/BusinessLogic/Country/WarehouseCountryService.php:13
- > PHP Fatal error
Uncaught Error: Class 'Logeecom\\Infrastructure\\Utility\\Events\\Event' not found in wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/Infrastructure/TaskExecution/Events/QueueStatusChangedEvent.php:13
- > 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)
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
4 plugin tags: shipping, woocommerce, packlink, shipment
packlink-pro-shipping/packlink-pro-shipping.php 92% from 13 tests
The main PHP script in "Packlink PRO shipping module" version 3.3.4 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")
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
Success! There were no dangerous files found in this plugin46,293 lines of code in 533 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 371 | 5,174 | 17,508 | 24,344 |
PO File | 17 | 3,026 | 3,316 | 7,046 |
JSON | 36 | 0 | 0 | 3,859 |
JavaScript | 39 | 843 | 1,464 | 3,753 |
CSS | 10 | 351 | 13 | 3,262 |
HTML | 26 | 52 | 5 | 1,666 |
Sass | 7 | 287 | 12 | 1,357 |
Markdown | 8 | 154 | 0 | 588 |
SVG | 15 | 0 | 13 | 319 |
YAML | 1 | 1 | 0 | 60 |
XML | 1 | 0 | 0 | 20 |
Bourne Shell | 2 | 11 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 98 | |
Interfaces | 18 | |
Traits | 0 | |
Classes | 306 | |
▷ Abstract classes | 14 | 4.58% |
▷ Concrete classes | 292 | 95.42% |
▷ Final classes | 0 | 0.00% |
Methods | 1,871 | |
▷ Static methods | 226 | 12.08% |
▷ Public methods | 1,369 | 73.17% |
▷ Protected methods | 317 | 16.94% |
▷ Private methods | 185 | 9.89% |
Functions | 107 | |
▷ Named functions | 35 | 32.71% |
▷ Anonymous functions | 72 | 67.29% |
Constants | 252 | |
▷ Global constants | 5 | 1.98% |
▷ Class constants | 247 | 98.02% |
▷ Public constants | 247 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
113 PNG files occupy 0.43MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/carriers/chronopost.png | 2.49KB | 1.70KB | ▼ 31.65% |
resources/images/carriers/brt.png | 4.13KB | 2.57KB | ▼ 37.90% |
vendor/packlink/integration-core/src/BusinessLogic/Resources/images/carriers/ups.png | 1.94KB | 1.65KB | ▼ 15.02% |
resources/packlink/images/carriers/dpd-pt.png | 2.15KB | 0.63KB | ▼ 70.47% |
resources/packlink/images/carriers/sda.png | 5.93KB | 3.22KB | ▼ 45.62% |