Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.74MB] [CPU: ▼29.82ms] Passed 4 tests
Analyzing server-side resources used by Order Delivery Date Time & Pickup for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 43.20 ▲1.79 |
Dashboard /wp-admin | 3.20 ▼0.10 | 25.99 ▼29.86 |
Posts /wp-admin/edit.php | 3.20 ▼0.15 | 27.28 ▼19.30 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.68 | 30.60 ▼55.70 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 26.78 ▼14.42 |
Server storage [IO: ▲1.96MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Order Delivery Date Time & Pickup for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.25 ▲0.04 | 1.66 ▼0.10 | 43.41 ▼2.64 |
Dashboard /wp-admin | 2,214 ▲34 | 5.56 ▼0.13 | 93.64 ▼3.05 | 66.90 ▲24.50 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.99 ▼0.04 | 39.02 ▲1.31 | 33.48 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,697 ▲171 | 21.78 ▼1.44 | 763.30 ▲132.64 | 63.51 ▲16.27 |
Media Library /wp-admin/upload.php | 1,413 ▲19 | 4.25 ▲0.08 | 106.90 ▲8.48 | 75.80 ▲35.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/bp-order-date-time-for-woocommerce/includes/core.php+21
Use of undefined constant BV_BDFW_ASSETS - assumed 'BV_BDFW_ASSETS' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Bright_Delivery_for_Woocommerce\\Base\\BaseController' not found in wp-content/plugins/bp-order-date-time-for-woocommerce/src/Pages/Settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-order-date-time-for-woocommerce/includes/core.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-order-date-time-for-woocommerce/includes/core.php:7
- > PHP Fatal error
Uncaught Error: Class 'Bright_Delivery_for_Woocommerce\\Base\\BaseController' not found in wp-content/plugins/bp-order-date-time-for-woocommerce/src/Base/SettingsLink.php:10
- > PHP Fatal error
Uncaught Error: Class 'Bright_Delivery_for_Woocommerce\\Base\\BaseController' not found in wp-content/plugins/bp-order-date-time-for-woocommerce/src/Pages/Checkout.php:10
- > PHP Fatal error
Uncaught Error: Class 'Bright_Delivery_for_Woocommerce\\Base\\BaseController' not found in wp-content/plugins/bp-order-date-time-for-woocommerce/src/Api/HandlerCallback.php:11
- > PHP Fatal error
Uncaught Error: Class 'Bright_Delivery_for_Woocommerce\\Base\\BaseController' not found in wp-content/plugins/bp-order-date-time-for-woocommerce/src/Pages/Order.php:9
- > PHP Fatal error
Uncaught Error: Class 'Bright_Delivery_for_Woocommerce\\Base\\BaseController' not found in wp-content/plugins/bp-order-date-time-for-woocommerce/src/Base/Enqueue.php:11
- > PHP Fatal error
Uncaught Error: Class 'Bright_Delivery_for_Woocommerce\\Base\\BaseController' not found in wp-content/plugins/bp-order-date-time-for-woocommerce/src/Pages/Email.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: order delivery date, pickup date, delivery date, delivery time
bp-order-date-time-for-woocommerce/main.php 69% from 13 tests
The entry point to "Order Delivery Date Time & Pickup for WooCommerce" version 0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("bp-order-date-time-for-woocommerce.php" instead of "main.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.5.6")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.2.0")
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
No dangerous file extensions were detected40,052 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 3,718 | 2,041 | 16,286 |
JavaScript | 7 | 1,309 | 498 | 6,623 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
CSS | 5 | 376 | 519 | 4,875 |
JSON | 2 | 1 | 0 | 92 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 21.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 80 | |
▷ Abstract classes | 2 | 2.50% |
▷ Concrete classes | 78 | 97.50% |
▷ Final classes | 1 | 1.28% |
Methods | 326 | |
▷ Static methods | 65 | 19.94% |
▷ Public methods | 324 | 99.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.61% |
Functions | 28 | |
▷ Named functions | 26 | 92.86% |
▷ Anonymous functions | 2 | 7.14% |
Constants | 21 | |
▷ Global constants | 2 | 9.52% |
▷ Class constants | 19 | 90.48% |
▷ Public constants | 19 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bp-logo-icon.png | 1.09KB | 0.87KB | ▼ 20.45% |
includes/codestar/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |