Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲5.49MB] [CPU: ▲30.90ms] 75% from 4 tests
A check of server-side resources used by Availability datepicker - Integrate with Contact Form 7 and Divi
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.49MB on /wp-admin/admin.php?page=date-time-picker)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.19 ▲5.73 | 72.86 ▲33.26 |
Dashboard /wp-admin | 9.21 ▲5.91 | 85.44 ▲19.41 |
Posts /wp-admin/edit.php | 9.21 ▲5.85 | 81.94 ▲29.18 |
Add New Post /wp-admin/post-new.php | 10.36 ▲4.47 | 134.00 ▲41.75 |
Media Library /wp-admin/upload.php | 9.21 ▲5.98 | 77.16 ▲43.60 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.21 | 65.32 |
Settings /wp-admin/admin.php?page=dtpicker | 9.21 | 63.06 |
Integration /wp-admin/admin.php?page=dtp_integration | 9.21 | 63.45 |
Availability datepicker - InputWP /wp-admin/admin.php?page=date-time-picker | 9.21 | 62.25 |
Server storage [IO: ▲4.42MB] [DB: ▲0.06MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 227 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
dtpicker_advanced |
fs_debug_mode |
_dtpicker_new_integration |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
fs_accounts |
_dtpicker_lite_imported_integration |
... |
Browser metrics Passed 4 tests
Availability datepicker - Integrate with Contact Form 7 and Divi: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 14.62 ▲0.27 | 1.88 ▼0.11 | 31.88 ▼10.84 |
Dashboard /wp-admin | 2,288 ▲111 | 5.83 ▲0.22 | 89.32 ▼0.48 | 45.80 ▲5.84 |
Posts /wp-admin/edit.php | 2,199 ▲99 | 2.26 ▲0.26 | 38.41 ▼3.04 | 38.33 ▲2.77 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.42 ▲0.41 | 626.05 ▲8.02 | 37.19 ▼11.82 |
Media Library /wp-admin/upload.php | 1,499 ▲105 | 4.47 ▲0.33 | 100.24 ▼0.27 | 44.22 ▲3.70 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,156 | 1.95 | 38.51 | 28.13 |
Settings /wp-admin/admin.php?page=dtpicker | 1,667 | 1.93 | 36.11 | 47.79 |
Integration /wp-admin/admin.php?page=dtp_integration | 1,330 | 1.90 | 28.20 | 43.51 |
Availability datepicker - InputWP /wp-admin/admin.php?page=date-time-picker | 1,058 | 2.06 | 27.41 | 51.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/date-time-picker-field/vendor/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 13 options
- _dtpicker_new_integration
- can_compress_scripts
- dtpicker
- widget_theysaidso_widget
- dtpicker_advanced
- widget_recent-posts
- fs_debug_mode
- widget_recent-comments
- _dtpicker_lite_imported_integration
- fs_accounts
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dtp_integration
- > Notice in wp-content/plugins/date-time-picker-field/includes/Admin/IntegrationAPI.php+186
Undefined index: picker
- > GET request to /wp-admin/admin.php?page=dtp_integration
- > Notice in wp-content/plugins/date-time-picker-field/includes/Admin/IntegrationAPI.php+169
Undefined index: plugin
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: date time picker, datepicker, date range, date field, jquery ui
date-time-picker-field/date-time-picker-field.php 92% from 13 tests
The main PHP file in "Availability datepicker - Integrate with Contact Form 7 and Divi" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin58,050 lines of code in 170 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,664 | 18,001 | 35,448 |
JavaScript | 12 | 2,479 | 1,120 | 21,512 |
CSS | 16 | 125 | 9 | 838 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 2 | 0 | 0 | 22 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,373 | |
▷ Static methods | 214 | 15.59% |
▷ Public methods | 977 | 71.16% |
▷ Protected methods | 21 | 1.53% |
▷ Private methods | 375 | 27.31% |
Functions | 104 | |
▷ Named functions | 102 | 98.08% |
▷ Anonymous functions | 2 | 1.92% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/assets/img/date-time-picker.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/img/date-picker.png | 8.86KB | 9.25KB | 0.00% |
assets/img/date-and-time-picker.png | 12.86KB | 13.35KB | 0.00% |
assets/img/date-range.png | 53.62KB | 56.65KB | 0.00% |
vendor/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |