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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.93ms] Passed 4 tests
Server-side resources used by Print Label and Tracking Code for GLS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.87 ▼3.54 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.15 ▲2.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.98 ▲0.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.54 ▼2.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.70 ▲1.82 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 116 new files
Database: no new tables, 7 new options
New WordPress options |
---|
activate_admin |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Print Label and Tracking Code for GLS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.23 ▲0.10 | 1.84 ▲0.15 | 44.30 ▲1.45 |
Dashboard /wp-admin | 2,195 ▲21 | 5.55 ▼0.05 | 86.76 ▼15.20 | 39.40 ▼2.48 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.02 | 40.84 ▲3.24 | 36.90 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.86 ▼0.43 | 662.74 ▼26.92 | 64.63 ▼6.04 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▲0.05 | 99.69 ▲3.79 | 43.35 ▲1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- activate_admin
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-gls-print-label-and-tracking-code/admin/template/gopremium.php
- 69× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php:10
- > PHP Warning
require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/markosirec/gls-italy-sdk/samples/ListParcels.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_YearField.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/markosirec/gls-italy-sdk/tests/GlsItaly/Tests/Parcel/BaseAdapterTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/classes/WP_CLI/Migration_Command.php:22
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-gls-print-label-and-tracking-code/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gls, package tracking, print label, delivery plugin, shipping
woo-gls-print-label-and-tracking-code/wp-gls-print-label.php 85% from 13 tests
This is the main PHP file of "Print Label and Tracking Code for GLS" version 4.12.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-gls-print-label-and-tracking-code.php" instead of "wp-gls-print-label.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
No dangerous file extensions were detected23,408 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 2,564 | 6,897 | 20,545 |
PO File | 7 | 470 | 454 | 1,130 |
CSS | 15 | 218 | 199 | 980 |
JavaScript | 2 | 60 | 20 | 321 |
Markdown | 3 | 90 | 0 | 201 |
JSON | 3 | 0 | 0 | 135 |
HTML | 1 | 34 | 11 | 92 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 381.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 104 | |
▷ Abstract classes | 16 | 15.38% |
▷ Concrete classes | 88 | 84.62% |
▷ Final classes | 12 | 13.64% |
Methods | 872 | |
▷ Static methods | 139 | 15.94% |
▷ Public methods | 703 | 80.62% |
▷ Protected methods | 139 | 15.94% |
▷ Private methods | 30 | 3.44% |
Functions | 36 | |
▷ Named functions | 26 | 72.22% |
▷ Anonymous functions | 10 | 27.78% |
Constants | 41 | |
▷ Global constants | 5 | 12.20% |
▷ Class constants | 36 | 87.80% |
▷ Public constants | 36 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 0.23MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) _help/__MACOSX/assets/blueprint-css/plugins/link-icons/icons/._external.png | 0.23KB | 0.00KB | ▼ 100.00% |
_help/assets/blueprint-css/plugins/link-icons/icons/doc.png | 0.76KB | 0.92KB | 0.00% |
(invalid) _help/__MACOSX/assets/blueprint-css/plugins/buttons/icons/._tick.png | 0.23KB | 0.00KB | ▼ 100.00% |
(invalid) _help/__MACOSX/assets/blueprint-css/plugins/link-icons/icons/._pdf.png | 0.23KB | 0.00KB | ▼ 100.00% |
_help/assets/blueprint-css/plugins/link-icons/icons/external.png | 45.75KB | 0.11KB | ▼ 99.77% |