Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲5.29MB] [CPU: ▲22.83ms] 75% from 4 tests
Server-side resources used by Woocommerce Delivery Date Premium
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.29MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.17 ▲5.71 | 64.84 ▲25.81 |
Dashboard /wp-admin | 9.19 ▲5.84 | 77.72 ▲18.23 |
Posts /wp-admin/edit.php | 9.19 ▲5.83 | 69.28 ▲19.86 |
Add New Post /wp-admin/post-new.php | 9.68 ▲3.79 | 117.86 ▲27.88 |
Media Library /wp-admin/upload.php | 9.19 ▲5.96 | 62.68 ▲27.40 |
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius | 9.19 | 54.40 |
Server storage [IO: ▲4.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 235 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
fs_debug_mode |
theysaidso_admin_options |
fs_active_plugins |
fs_accounts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Delivery Date Premium
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲108 | 13.63 ▼0.63 | 4.66 ▲2.48 | 31.90 ▼17.97 |
Dashboard /wp-admin | 2,224 ▲42 | 4.87 ▼1.02 | 104.79 ▼0.98 | 43.11 ▲0.88 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▲0.01 | 38.19 ▼3.84 | 38.84 ▲5.03 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 22.93 ▼0.12 | 612.50 ▼43.74 | 59.93 ▲7.82 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.25 ▲0.07 | 97.76 ▼2.32 | 45.49 ▲2.45 |
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius | 1,068 | 2.20 | 25.01 | 28.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/woocommerce-delivery-date/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- fs_debug_mode
- fs_active_plugins
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- fs_accounts
Smoke tests 75% 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)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woocommerce-delivery-date/src/Views/templates/admin_order_view.php:2
- > PHP Warning
Use of undefined constant DREAMFOX_WDD_PLUGIN_FILE - assumed 'DREAMFOX_WDD_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-delivery-date/defines.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'Dreamfox\\DeliveryDate\\Interfaces\\AssetsInterface' not found in wp-content/plugins/woocommerce-delivery-date/src/Abstracts/AbstractAssets.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/woocommerce-delivery-date/defines.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woocommerce-delivery-date/src/Views/templates/order_view.php:2
- > PHP Fatal error
Uncaught Error: Class 'Dreamfox\\DeliveryDate\\BaseWebAdmin' not found in wp-content/plugins/woocommerce-delivery-date/src/Admin/Backend.php:7
- > PHP Fatal error
Uncaught Error: Class 'Dreamfox\\DeliveryDate\\Abstracts\\AbstractWebApplication' not found in wp-content/plugins/woocommerce-delivery-date/src/BaseWebAdmin.php:8
- > PHP Fatal error
Uncaught Error: Class 'Dreamfox\\DeliveryDate\\Views\\BaseView' not found in wp-content/plugins/woocommerce-delivery-date/src/Views/EmailView.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/woocommerce-delivery-date/src/Views/templates/delivery_date.php:5
- > PHP Fatal error
Uncaught Error: Class 'Dreamfox\\DeliveryDate\\Abstracts\\AbstractWebApplication' not found in wp-content/plugins/woocommerce-delivery-date/src/Site/Frontend.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: delivery, woocommerce, plugin, free, delivery date
woocommerce-delivery-date/woocommerce-delivery-date.php 92% from 13 tests
Analyzing the main PHP file in "Woocommerce Delivery Date Premium" version 2.1.3
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/lang/")
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
No dangerous file extensions were detected63,669 lines of code in 186 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 162 | 8,146 | 17,183 | 33,897 |
JSON | 3 | 0 | 0 | 29,464 |
JavaScript | 4 | 34 | 59 | 205 |
HTML | 1 | 3 | 20 | 43 |
Markdown | 1 | 32 | 0 | 38 |
CSS | 15 | 0 | 0 | 22 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 54.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 6 | 7.59% |
▷ Concrete classes | 73 | 92.41% |
▷ Final classes | 0 | 0.00% |
Methods | 1,368 | |
▷ Static methods | 208 | 15.20% |
▷ Public methods | 958 | 70.03% |
▷ Protected methods | 35 | 2.56% |
▷ Private methods | 375 | 27.41% |
Functions | 98 | |
▷ Named functions | 97 | 98.98% |
▷ Anonymous functions | 1 | 1.02% |
Constants | 155 | |
▷ Global constants | 101 | 65.16% |
▷ Class constants | 54 | 34.84% |
▷ Public constants | 54 | 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
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/free/public/logo192.png | 5.22KB | 5.57KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/newsletter-button.png | 9.94KB | 4.50KB | ▼ 54.71% |
assets/free/public/logo512.png | 9.44KB | 10.35KB | 0.00% |