Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.56MB] [CPU: ▼3.51ms] Passed 4 tests
Analyzing server-side resources used by Product Delivery Date
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 42.11 ▲0.83 |
Dashboard /wp-admin | 3.94 ▲0.59 | 49.99 ▼13.57 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 54.31 ▲4.79 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 97.07 ▼6.09 |
Media Library /wp-admin/upload.php | 3.69 ▲0.47 | 42.83 ▲4.85 |
Email Settings /wp-admin/admin.php?page=wooproddelpluginsettingstab | 3.66 | 39.05 |
Orders with Delivery Dates /wp-admin/admin.php?page=wooproddel_orders_with_delivery_dates | 3.65 | 39.41 |
Delivery Date /wp-admin/admin.php?page=wooproddel_settings | 3.93 | 42.73 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.02 | 37.95 |
Server storage [IO: ▲4.46MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 192 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
theysaidso_admin_options |
fs_active_plugins |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
fs_debug_mode |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Product Delivery Date
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.77 ▲0.16 | 1.70 ▼0.13 | 32.47 ▼16.96 |
Dashboard /wp-admin | 2,226 ▲52 | 6.78 ▲1.17 | 112.76 ▲7.38 | 45.47 ▲1.41 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 3.70 ▲1.69 | 50.68 ▲10.09 | 41.66 ▲7.51 |
Add New Post /wp-admin/post-new.php | 6,266 ▲4,737 | 23.03 ▼0.09 | 998.63 ▲353.31 | 38.14 ▼12.58 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 6.25 ▲2.05 | 117.28 ▲13.45 | 46.86 ▲1.12 |
Email Settings /wp-admin/admin.php?page=wooproddelpluginsettingstab | 881 | 3.28 | 35.93 | 30.93 |
Orders with Delivery Dates /wp-admin/admin.php?page=wooproddel_orders_with_delivery_dates | 1,089 | 4.23 | 56.55 | 46.75 |
Delivery Date /wp-admin/admin.php?page=wooproddel_settings | 996 | 3.37 | 35.10 | 59.28 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,086 | 3.34 | 35.81 | 25.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/product-delivery-date/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-delivery-date/dateorderscolumn.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-delivery-date/helper/tableexport.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/product-delivery-date/orderscalendar.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The plugin main settings page), #2 (The email settings page), #3 (The orders with delivery dates table), #4 (The delivery date column in the woocommerce products page), #5 (The min and max settings in the woocommerce products bulk actions), #6 (The min and max settings in the products page), #7 (The order delivery datepicker for products in the checkout page), #8 (The order delivery datepicker for orders in the checkout page)
product-delivery-date/dateorders-woo.php 85% from 13 tests
The primary PHP file in "Product Delivery Date" version 1.1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("product-delivery-date.php" instead of "dateorders-woo.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin42,316 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 8,170 | 17,451 | 33,938 |
JavaScript | 8 | 2,115 | 1,932 | 7,508 |
Markdown | 2 | 189 | 0 | 767 |
CSS | 15 | 15 | 3 | 103 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 87.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,277 | |
▷ Static methods | 199 | 15.58% |
▷ Public methods | 877 | 68.68% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 383 | 29.99% |
Functions | 132 | |
▷ Named functions | 132 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/product-delivery-date.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |