Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▼1.22ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Shipping Details
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 43.91 ▲3.09 |
Dashboard /wp-admin | 3.99 ▲0.65 | 50.28 ▼9.02 |
Posts /wp-admin/edit.php | 4.10 ▲0.75 | 46.03 ▲1.27 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 85.25 ▼0.22 |
Media Library /wp-admin/upload.php | 3.91 ▲0.69 | 38.11 ▲4.65 |
Server storage [IO: ▲7.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 628 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Shipping Details
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.33 ▼0.26 | 1.82 ▲0.08 | 45.04 ▼2.50 |
Dashboard /wp-admin | 2,212 ▲37 | 5.69 ▲0.02 | 85.74 ▼22.89 | 40.80 ▼0.99 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.02 ▲0.04 | 34.55 ▼1.91 | 33.48 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.31 ▲0.16 | 680.39 ▲30.74 | 68.81 ▼3.68 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.13 ▼0.05 | 98.27 ▼1.49 | 46.10 ▲2.50 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-cdek/components/cdek-delivery/includes/Cdek/scripts/template.php
- 94× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DVDoug\\BoxPacker\\Box' not found in wp-content/plugins/woo-cdek/components/zaberi-tovar-delivery/vendor/dvdoug/boxpacker/tests/Test/TestBox.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-cdek/components/zaberi-tovar-delivery/vendor/dvdoug/boxpacker/tests/PackedBoxTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-cdek/components/zaberi-tovar-delivery/vendor/dvdoug/boxpacker/tests/PackedItemTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/woo-cdek/components/cdek-delivery/vendor/dvdoug/boxpacker/src/LayerStabiliser.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/woo-cdek/components/zaberi-tovar-delivery/vendor/dvdoug/boxpacker/src/VolumePacker.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-cdek/components/zaberi-tovar-delivery/vendor/dvdoug/boxpacker/tests/WeightRedistributorTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_Factory437_Plugin' not found in wp-content/plugins/woo-cdek/components/peshkariki-delivery/includes/class-plugin.php:9
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Delivery\\Base\\Delivery' not found in wp-content/plugins/woo-cdek/components/advanced-delivery/includes/advanced/includes/class.advanced-shipping-method.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/woo-cdek/components/zaberi-tovar-delivery/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\FactoryClearfy228\\Pages\\Step' not found in wp-content/plugins/woo-cdek/libs/factory/clearfy/pages/setup-parts/class-step-custom.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
4 plugin tags: delivery, shipping, woocommerce, woocommerce shipping
woo-cdek/woo-cdek.php 85% from 13 tests
The main PHP file in "Woocommerce Shipping Details" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "4.3")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected51,795 lines of code in 487 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 340 | 7,630 | 16,501 | 28,244 |
CSS | 47 | 1,489 | 391 | 8,841 |
JavaScript | 34 | 1,888 | 1,681 | 8,438 |
JSON | 10 | 0 | 0 | 2,260 |
PO File | 12 | 509 | 629 | 1,456 |
LESS | 5 | 275 | 61 | 1,356 |
HTML | 13 | 6 | 8 | 557 |
YAML | 5 | 13 | 2 | 150 |
Cucumber | 2 | 20 | 0 | 148 |
reStructuredText | 7 | 86 | 183 | 119 |
Markdown | 6 | 38 | 0 | 108 |
Python | 1 | 39 | 92 | 40 |
XML | 2 | 6 | 0 | 32 |
SVG | 1 | 0 | 0 | 26 |
make | 2 | 8 | 12 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 14 | |
Traits | 9 | |
Classes | 252 | |
▷ Abstract classes | 23 | 9.13% |
▷ Concrete classes | 229 | 90.87% |
▷ Final classes | 2 | 0.87% |
Methods | 1,920 | |
▷ Static methods | 195 | 10.16% |
▷ Public methods | 1,561 | 81.30% |
▷ Protected methods | 263 | 13.70% |
▷ Private methods | 96 | 5.00% |
Functions | 90 | |
▷ Named functions | 28 | 31.11% |
▷ Anonymous functions | 62 | 68.89% |
Constants | 225 | |
▷ Global constants | 127 | 56.44% |
▷ Class constants | 98 | 43.56% |
▷ Public constants | 98 | 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
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
components/cdek-delivery/includes/Cdek/scripts/images/sdekActive.png | 2.64KB | 1.79KB | ▼ 31.93% |
components/cdek-delivery/includes/Cdek/scripts/images/phone.png | 1.08KB | 0.32KB | ▼ 70.72% |
components/cdek-delivery/includes/Cdek/scripts/images/close.png | 1.50KB | 0.90KB | ▼ 39.67% |
components/cdek-delivery/includes/Cdek/scripts/images/sdekNActive.png | 2.73KB | 1.77KB | ▼ 35.14% |
components/cdek-delivery/includes/Cdek/scripts/images/chooze.png | 2.33KB | 0.96KB | ▼ 58.69% |