Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.41ms] Passed 4 tests
This is a short check of server-side resources used by Delivery & Pickup Scheduling - DateTime Picker Plugin for WooCommerce - Checkout Calendar for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.59 ▲3.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.29 ▼4.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.25 ▲3.96 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.73 ▼5.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.31 ▼2.68 |
Server storage [IO: ▲8.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,429 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Delivery & Pickup Scheduling - DateTime Picker Plugin for WooCommerce - Checkout Calendar 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,827 ▲66 | 14.75 ▲0.15 | 2.16 ▲0.62 | 43.61 ▲2.41 |
Dashboard /wp-admin | 2,208 ▲31 | 5.55 ▼0.14 | 85.30 ▼7.27 | 40.53 ▲2.20 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▼0.00 | 40.11 ▲6.16 | 36.69 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 18.51 ▼4.90 | 603.70 ▼44.83 | 64.44 ▲9.09 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.22 ▲0.13 | 102.95 ▼6.47 | 46.17 ▼2.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 134× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Extractor\\AbstractFileExtractor' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/symfony/translation/Extractor/PhpExtractor.php:22
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Fatal error
Trait 'Carbon\\Traits\\Localization' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Traits/Options.php on line 27
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\CarbonInterface' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Carbon.php:510
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\CarbonConverterInterface' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/nesbot/carbon/src/Carbon/CarbonInterval.php:189
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php:25
- > PHP Fatal error
Uncaught ReflectionException: Class Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface does not exist in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/nesbot/carbon/src/Carbon/MessageFormatter/MessageFormatterMapper.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodDateException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Exception\\IncompleteDsnException' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/symfony/translation/Exception/MissingRequiredOptionException.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/delivery-and-pickup-scheduling-for-woocommerce/vendor/symfony/translation/Dumper/PoFileDumper.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: pickup, delivery plugin, timepicker, woocommerce, scheduling...
delivery-and-pickup-scheduling-for-woocommerce/delivery-and-pickup-scheduling.php 85% from 13 tests
The entry point to "Delivery & Pickup Scheduling - DateTime Picker Plugin for WooCommerce - Checkout Calendar for WooCommerce" version 1.2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("delivery-and-pickup-scheduling-for-woocommerce.php" instead of "delivery-and-pickup-scheduling.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.7" instead of "3.0")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin94,122 lines of code in 1,151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,081 | 17,769 | 46,036 | 82,882 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 2 | 0 | 0 | 781 |
Markdown | 12 | 235 | 0 | 766 |
JavaScript | 10 | 34 | 62 | 227 |
CSS | 19 | 21 | 17 | 144 |
XML | 1 | 3 | 0 | 16 |
SVG | 3 | 0 | 0 | 3 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
- Method cyclomatic complexity should be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 25.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 28 | |
Traits | 29 | |
Classes | 289 | |
▷ Abstract classes | 19 | 6.57% |
▷ Concrete classes | 270 | 93.43% |
▷ Final classes | 15 | 5.56% |
Methods | 3,324 | |
▷ Static methods | 705 | 21.21% |
▷ Public methods | 2,649 | 79.69% |
▷ Protected methods | 153 | 4.60% |
▷ Private methods | 522 | 15.70% |
Functions | 459 | |
▷ Named functions | 212 | 46.19% |
▷ Anonymous functions | 247 | 53.81% |
Constants | 263 | |
▷ Global constants | 116 | 44.11% |
▷ Class constants | 147 | 55.89% |
▷ Public constants | 144 | 97.96% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.71MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/delivery-and-pickup-scheduling-rtl.png | 176.64KB | 70.03KB | ▼ 60.36% |
assets/admin/img/logo.png | 8.55KB | 2.63KB | ▼ 69.23% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
lib/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/admin/img/delivery-and-pickup-scheduling.png | 176.40KB | 69.68KB | ▼ 60.50% |