Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▼4.96ms] Passed 4 tests
Server-side resources used by Shipping Label PDF Generator With UPS For Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 37.20 ▼0.88 |
Dashboard /wp-admin | 3.87 ▲0.52 | 47.81 ▼7.78 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 51.75 ▲6.50 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 83.49 ▼17.53 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 38.08 ▲6.36 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 365 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Shipping Label PDF Generator With UPS For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.31 ▼1.09 | 5.03 ▲3.35 | 41.73 ▲1.81 |
Dashboard /wp-admin | 2,219 ▲34 | 5.80 ▲0.86 | 101.94 ▼10.30 | 43.45 ▲2.40 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▼0.02 | 37.15 ▲0.75 | 31.18 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 17.47 ▼5.65 | 703.22 ▲79.30 | 59.94 ▲6.21 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.16 ▼0.06 | 94.13 ▼4.83 | 42.38 ▼0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 134× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Ups\odeInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/gabrielbull/ups-api/src/Entity/Pickup.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/guzzlehttp/psr7/src/HttpFactory.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Ups\odeInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/gabrielbull/ups-api/src/Entity/ShipmentServiceOptions.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/guzzlehttp/promises/src/AggregateException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Ups\odeInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/gabrielbull/ups-api/src/Entity/LabelMethod.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Ups\odeInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/gabrielbull/ups-api/src/Entity/Tradeability/QueryRequest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Trait 'Ups\\Entity\\ServiceSummaryTrait' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/gabrielbull/ups-api/src/Entity/ServiceSummary.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/shipping-label-generator-with-ups/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Add API\'s info to the settings field. Note: (Screenshots in the /assets/screenshot-1.png directory)), #2 (Add shipper information to the settings field. Note: (Screenshots in the /assets/screenshot-2.png directory)), #3 (You can find the pdf shipping label at orders list page. Note: (Screenshots in the /assets/screenshot-3.png directory))
shipping-label-generator-with-ups/shipping-label-generator-ups.php 85% from 13 tests
The main PHP script in "Shipping Label PDF Generator With UPS For Woocommerce" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("shipping-label-generator-with-ups.php" instead of "shipping-label-generator-ups.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected26,854 lines of code in 342 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 302 | 5,028 | 12,010 | 21,963 |
Markdown | 14 | 1,173 | 0 | 3,537 |
JSON | 13 | 0 | 0 | 1,026 |
XSD | 6 | 0 | 0 | 277 |
YAML | 2 | 5 | 0 | 38 |
make | 1 | 4 | 0 | 9 |
XML | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 342.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 31 | |
Traits | 7 | |
Classes | 237 | |
▷ Abstract classes | 3 | 1.27% |
▷ Concrete classes | 234 | 98.73% |
▷ Final classes | 35 | 14.96% |
Methods | 1,954 | |
▷ Static methods | 143 | 7.32% |
▷ Public methods | 1,763 | 90.23% |
▷ Protected methods | 50 | 2.56% |
▷ Private methods | 141 | 7.22% |
Functions | 126 | |
▷ Named functions | 34 | 26.98% |
▷ Anonymous functions | 92 | 73.02% |
Constants | 423 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 423 | 100.00% |
▷ Public constants | 412 | 97.40% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.42MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 12.43KB | 5.12KB | ▼ 58.79% |
assets/banner-772x250.png | 62.43KB | 23.32KB | ▼ 62.64% |
(invalid) assets/banner-1544x500.png | 80.98KB | 0.00KB | ▼ 100.00% |
assets/icon-128x128.png | 6.65KB | 2.75KB | ▼ 58.67% |
assets/Screenshot-1.png | 58.84KB | 17.19KB | ▼ 70.79% |