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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲2.36ms] Passed 4 tests
This is a short check of server-side resources used by Shipping Additional Days for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 48.84 ▲7.61 |
Dashboard /wp-admin | 3.38 ▲0.07 | 59.07 ▲6.95 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.16 ▼5.02 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 118.83 ▲21.13 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.50 ▼0.11 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Shipping Additional Days for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.08 | 2.16 ▲0.37 | 47.12 ▲0.65 |
Dashboard /wp-admin | 2,206 ▲21 | 5.89 ▲0.03 | 104.16 ▼5.21 | 40.26 ▼3.69 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.04 | 40.83 ▲2.16 | 35.83 ▲2.36 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.05 ▲5.55 | 683.65 ▼97.62 | 51.74 ▼7.10 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.25 ▲0.03 | 104.22 ▼8.75 | 41.25 ▼5.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-shipping-additional-days/modules/shipping-classes/includes/functions-shipping-classes.php
- > /wp-content/plugins/woo-shipping-additional-days/woo-shipping-additional-days.php
- > /wp-content/plugins/woo-shipping-additional-days/modules/shipping-classes/class-module-shipping-classes.php
- > /wp-content/plugins/woo-shipping-additional-days/modules/shipping/class-module-shipping.php
- > /wp-content/plugins/woo-shipping-additional-days/includes/functions-core.php
- > /wp-content/plugins/woo-shipping-additional-days/modules/shipping/includes/class-shipping-plugin.php
- > /wp-content/plugins/woo-shipping-additional-days/modules/products/class-module-products.php
- > /wp-content/plugins/woo-shipping-additional-days/modules/shipping/includes/class-woocommerce-local-pickup.php
- > /wp-content/plugins/woo-shipping-additional-days/modules/products/includes/functions-products.php
- > /wp-content/plugins/woo-shipping-additional-days/modules/shipping/includes/class-woocommerce-correios.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_products_additional_time() in wp-content/plugins/woo-shipping-additional-days/modules/products/includes/views/product-shipping-additional-time.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woo-shipping-additional-days/modules/shipping/includes/views/status-report-errors.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
8 plugin tags: shipping, shop, woo commerce, e-commerce, correios...
woo-shipping-additional-days/woo-shipping-additional-days.php 85% from 13 tests
Analyzing the main PHP file in "Shipping Additional Days for WooCommerce" version 1.3.0
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "4.1")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin370 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 111 | 410 | 370 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 57.89% |
▷ Protected methods | 4 | 10.53% |
▷ Private methods | 12 | 31.58% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin