Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼4.40ms] Passed 4 tests
This is a short check of server-side resources used by Shipment Tracker for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 37.88 ▼5.19 |
Dashboard /wp-admin | 3.59 ▲0.24 | 51.74 ▼12.46 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 48.58 ▲0.45 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 90.47 ▼0.41 |
Media Library /wp-admin/upload.php | 3.52 ▲0.28 | 40.89 ▲7.48 |
Server storage [IO: ▲9.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 574 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shipment Tracker for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.28 ▲0.06 | 1.83 ▼0.37 | 42.90 ▼1.71 |
Dashboard /wp-admin | 2,198 ▲24 | 5.55 ▼0.09 | 89.84 ▼6.50 | 38.80 ▼5.21 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.00 | 34.93 ▼1.14 | 32.54 ▼4.04 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.30 ▲0.56 | 653.78 ▲12.53 | 57.38 ▲6.26 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.06 | 98.37 ▼2.93 | 41.49 ▲0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/shipment-tracker-for-woocommerce/admin/partials/bt-sync-shipment-tracking-admin-display.php
- > /wp-content/plugins/shipment-tracker-for-woocommerce/admin/partials/bt-st-buy-premium-feature-tab.php
- > /wp-content/plugins/shipment-tracker-for-woocommerce/includes/licenser/partials/premium_conformation_login_form.php
- > /wp-content/plugins/shipment-tracker-for-woocommerce/admin/partials/order_shipment_details.php
- > /wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/shipment-tracker-for-woocommerce/admin/partials/bt-shipment-deactivation-popup.php
- 176× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpUnitsOfMeasureTest\\PhysicalQuantity\\AbstractPhysicalQuantityTestCase' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/php-units-of-measure/php-units-of-measure/tests/PhysicalQuantity/MassTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/core/Service/Revisions_Service.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Equality_Comparer.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Contain_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/File_Field.php:12
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/shipment-tracker-for-woocommerce/admin/partials/bt-manual-tracking-fields.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/Radio_Image_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpUnitsOfMeasure\\AbstractPhysicalQuantity' not found in wp-content/plugins/shipment-tracker-for-woocommerce/vendor/php-units-of-measure/php-units-of-measure/source/PhysicalQuantity/Time.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shipment tracking, shiprocket, shyplite, order tracking, nimbuspost
shipment-tracker-for-woocommerce/bt-sync-shipment-tracking.php 85% from 13 tests
The main file in "Shipment Tracker for Woocommerce" v. 1.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("shipment-tracker-for-woocommerce.php" instead of "bt-sync-shipment-tracking.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected39,494 lines of code in 507 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 233 | 4,022 | 8,475 | 18,028 |
JavaScript | 174 | 5,250 | 8,541 | 13,431 |
CSS | 11 | 595 | 1,159 | 2,976 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 48 | 339 | 0 | 1,769 |
JSON | 5 | 10 | 0 | 473 |
Markdown | 5 | 122 | 0 | 367 |
HTML | 1 | 72 | 0 | 186 |
XML | 2 | 8 | 0 | 29 |
YAML | 1 | 5 | 0 | 20 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 7 | |
Traits | 1 | |
Classes | 185 | |
▷ Abstract classes | 14 | 7.57% |
▷ Concrete classes | 171 | 92.43% |
▷ Final classes | 1 | 0.58% |
Methods | 1,225 | |
▷ Static methods | 138 | 11.27% |
▷ Public methods | 1,002 | 81.80% |
▷ Protected methods | 203 | 16.57% |
▷ Private methods | 20 | 1.63% |
Functions | 152 | |
▷ Named functions | 30 | 19.74% |
▷ Anonymous functions | 122 | 80.26% |
Constants | 56 | |
▷ Global constants | 11 | 19.64% |
▷ Class constants | 45 | 80.36% |
▷ Public constants | 28 | 62.22% |
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
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 |
public/images/searchicon.png | 0.84KB | 0.46KB | ▼ 45.23% |