Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/braft-woo-shipping-packer/braft-woo-shipping-packer.php+27
copy(wp-content/languages/plugins/braft-woo-shipping-packer-pl_PL.mo): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.15ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Shipping Packer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.75 ▼4.08 |
Dashboard /wp-admin | 3.49 ▲0.19 | 50.00 ▲1.32 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 46.41 ▼3.53 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.73 ▼10.31 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 36.85 ▲2.15 |
Server storage [IO: ▲6.62MB] [DB: ▲0.05MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 140 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Shipping Packer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,533 ▲798 | 13.29 ▼1.39 | 1.10 ▼0.76 | 47.80 ▲5.94 |
Dashboard /wp-admin | 2,947 ▲762 | 4.92 ▼0.17 | 115.17 ▲4.22 | 42.14 ▼0.60 |
Posts /wp-admin/edit.php | 2,812 ▲720 | 2.14 ▲0.14 | 40.26 ▼0.28 | 33.58 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 17.76 ▼5.45 | 659.17 ▼18.75 | 57.19 ▲3.89 |
Media Library /wp-admin/upload.php | 2,129 ▲747 | 4.30 ▲0.16 | 98.87 ▲3.80 | 42.00 ▲0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DVDoug\\BoxPacker\\Test\\TestBox' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/Test/LimitedSupplyTestBox.php:13
- > PHP Fatal error
Uncaught Error: Interface 'DVDoug\\BoxPacker\\Box' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/Test/TestBox.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/PackedBoxListTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/VolumePackerTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/PackedLayerTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/src/OrientatedItemFactory.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/ItemListTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/PackerTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/tests/PackedItemTest.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: packer, shipping costs, accurate shipping, shipping, woocommerce...
braft-woo-shipping-packer/braft-woo-shipping-packer.php Passed 13 tests
The main PHP file in "WooCommerce Shipping Packer" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
Woocommerce addon to calculate shipping container and costs.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/braft-woo-shipping-packer/vendor/dvdoug/boxpacker/docs/build.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 1,079 | 2,172 | 5,224 |
Markdown | 3 | 110 | 0 | 515 |
JavaScript | 3 | 60 | 31 | 507 |
HTML | 1 | 31 | 0 | 234 |
YAML | 5 | 48 | 3 | 211 |
reStructuredText | 9 | 151 | 287 | 201 |
JSON | 5 | 0 | 0 | 186 |
Cucumber | 3 | 22 | 0 | 165 |
PO File | 1 | 47 | 49 | 136 |
SVG | 2 | 0 | 0 | 118 |
CSS | 1 | 2 | 0 | 109 |
Python | 1 | 39 | 92 | 40 |
XML | 1 | 5 | 1 | 26 |
make | 1 | 4 | 6 | 10 |
Dockerfile | 1 | 1 | 0 | 2 |
PowerShell | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 5.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 7 | |
Traits | 2 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 370 | |
▷ Static methods | 14 | 3.78% |
▷ Public methods | 342 | 92.43% |
▷ Protected methods | 7 | 1.89% |
▷ Private methods | 21 | 5.68% |
Functions | 29 | |
▷ Named functions | 12 | 41.38% |
▷ Anonymous functions | 17 | 58.62% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin