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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.97ms] Passed 4 tests
A check of server-side resources used by Local Shipping Labels for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.44 ▼7.29 |
Dashboard /wp-admin | 3.46 ▲0.15 | 45.91 ▼3.00 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.73 ▲0.62 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 92.12 ▼13.55 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.80 ▼0.03 |
Local Shipping Labels /wp-admin/options-general.php?page=local-shipping-labels-for-woocommerce | 3.35 | 30.81 |
Server storage [IO: ▲9.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 346 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Local Shipping Labels for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.25 ▼1.13 | 1.89 ▲0.15 | 43.53 ▼3.58 |
Dashboard /wp-admin | 2,210 ▲22 | 5.82 ▲0.94 | 97.10 ▼8.95 | 40.50 ▼5.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.02 | 39.13 ▼3.00 | 34.33 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 22.99 ▼0.27 | 674.88 ▲44.42 | 51.43 ▼6.20 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.01 | 100.66 ▼0.22 | 45.41 ▼1.86 |
Local Shipping Labels /wp-admin/options-general.php?page=local-shipping-labels-for-woocommerce | 819 | 1.70 | 25.63 | 52.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=local-shipping-labels-for-woocommerce
- > Notice in wp-content/plugins/local-shipping-labels-for-woocommerce/admin/Settings.php+83
Undefined index: items
- > GET request to /wp-admin/options-general.php?page=local-shipping-labels-for-woocommerce
- > Notice in wp-content/plugins/local-shipping-labels-for-woocommerce/admin/Settings.php+88
Undefined index: billing_2
- > GET request to /wp-admin/options-general.php?page=local-shipping-labels-for-woocommerce
- > Notice in wp-content/plugins/local-shipping-labels-for-woocommerce/admin/Settings.php+93
Undefined index: country
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
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/sabberworm/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/local-shipping-labels-for-woocommerce/admin/partials/admin-submenu-page.php
- > /wp-content/plugins/local-shipping-labels-for-woocommerce/admin/partials/admin-tab-support.php
- 132× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/phenx/php-svg-lib/tests/Svg/StyleTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/dompdf/dompdf/src/Positioner/Absolute.php:16
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/NullFrameDecorator.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/Table/Type/glyf.php:21
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\PrimitiveValue' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Size.php:5
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Tag/Polyline.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/dompdf/dompdf/src/FrameReflower/Image.php:20
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/dompdf/dompdf/src/Positioner/TableCell.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/Text.php:22
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/local-shipping-labels-for-woocommerce/vendor/dompdf/dompdf/src/FrameReflower/Table.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("woofx.kaizenflow.xyz")
local-shipping-labels-for-woocommerce/local-shipping-labels-for-woocommerce.php Passed 13 tests
"Local Shipping Labels for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Print shipping labels for local deliveries. Print multiple labels in a single page.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected36,863 lines of code in 262 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 208 | 8,555 | 15,936 | 34,701 |
Markdown | 6 | 255 | 0 | 909 |
CSS | 31 | 134 | 60 | 650 |
JSON | 7 | 0 | 0 | 347 |
XML | 5 | 3 | 2 | 186 |
YAML | 3 | 12 | 2 | 45 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 34.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 765.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 187 | |
▷ Abstract classes | 12 | 6.42% |
▷ Concrete classes | 175 | 93.58% |
▷ Final classes | 0 | 0.00% |
Methods | 2,017 | |
▷ Static methods | 86 | 4.26% |
▷ Public methods | 1,724 | 85.47% |
▷ Protected methods | 192 | 9.52% |
▷ Private methods | 101 | 5.01% |
Functions | 18 | |
▷ Named functions | 3 | 16.67% |
▷ Anonymous functions | 15 | 83.33% |
Constants | 158 | |
▷ Global constants | 3 | 1.90% |
▷ Class constants | 155 | 98.10% |
▷ Public constants | 155 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |