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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.64MB] [CPU: ▲2.86ms] Passed 4 tests
An overview of server-side resources used by Delivery Date System for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 48.31 ▲4.05 |
Dashboard /wp-admin | 4.03 ▲0.72 | 51.16 ▲3.45 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 54.89 ▲10.97 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 85.71 ▼7.03 |
Media Library /wp-admin/upload.php | 3.95 ▲0.71 | 46.92 ▲11.38 |
Delivery Dates /wp-admin/admin.php?page=delivery_date | 4.27 | 38.82 |
Server storage [IO: ▲4.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 508 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Delivery Date System for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.41 ▼0.97 | 1.97 ▲0.02 | 44.21 ▼0.94 |
Dashboard /wp-admin | 2,214 ▲23 | 6.01 ▲0.12 | 98.45 ▼3.35 | 39.17 ▼10.59 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.07 ▲0.05 | 41.82 ▲2.49 | 34.71 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 23.46 ▲6.01 | 681.61 ▼7.49 | 52.00 ▼15.30 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.29 ▲0.02 | 109.21 ▲2.91 | 43.88 ▼2.13 |
Delivery Dates /wp-admin/admin.php?page=delivery_date | 1,098 | 2.49 | 38.90 | 28.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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)
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/delivery-date-system-for-woocommerce/vendor/cmb2/apigen/hook-docs.php
- 97× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Warning
file_get_contents(/Users/JT/Sites/wpengine/api/tree.html): failed to open stream: No such file or directory in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/cmb2/apigen/hook-docs.php on line 221
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/composer/installers/src/Composer/Installers/Installer.php:8
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/delivery-date-system-for-woocommerce/vendor/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: delivery, woocommerce, orders, delivery date
delivery-date-system-for-woocommerce/delivery-date-system.php 62% from 13 tests
This is the main PHP file of "Delivery Date System for WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("delivery-date-system-for-woocommerce.php" instead of "delivery-date-system.php")
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
Success! There were no dangerous files found in this plugin63,675 lines of code in 313 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 122 | 14,482 | 18,919 | 32,538 |
PHP | 125 | 3,378 | 7,100 | 12,939 |
CSS | 14 | 1,271 | 1,164 | 5,098 |
XML | 3 | 2 | 0 | 4,521 |
JSON | 7 | 0 | 0 | 3,852 |
JavaScript | 15 | 521 | 715 | 2,799 |
Sass | 16 | 300 | 25 | 1,379 |
Bourne Shell | 4 | 67 | 45 | 209 |
YAML | 2 | 11 | 6 | 190 |
Markdown | 3 | 33 | 0 | 116 |
diff | 2 | 1 | 68 | 34 |
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.34 |
Average class complexity | 12.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 129 | |
▷ Abstract classes | 13 | 10.08% |
▷ Concrete classes | 116 | 89.92% |
▷ Final classes | 0 | 0.00% |
Methods | 921 | |
▷ Static methods | 128 | 13.90% |
▷ Public methods | 776 | 84.26% |
▷ Protected methods | 137 | 14.88% |
▷ Private methods | 8 | 0.87% |
Functions | 58 | |
▷ Named functions | 54 | 93.10% |
▷ Anonymous functions | 4 | 6.90% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
27 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
vendor/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |