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
Installer ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▲0.99ms] Passed 4 tests
A check of server-side resources used by WP Datepicker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.94 | 45.70 ▲4.67 |
Dashboard /wp-admin | 4.10 ▲0.79 | 51.32 ▲0.56 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 52.81 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 98.27 ▼4.64 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 45.37 ▲11.42 |
WP Datepicker /wp-admin/options-general.php?page=wp_dp | 4.30 | 48.43 |
Server storage [IO: ▲5.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 155 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
wp_datepicker_option-1 |
can_compress_scripts |
theysaidso_admin_options |
wpdp_previous_version_compatible |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Datepicker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲154 | 14.12 ▼0.28 | 8.93 ▲6.54 | 36.92 ▼9.85 |
Dashboard /wp-admin | 2,218 ▲27 | 5.90 ▲0.02 | 104.42 ▼5.21 | 41.72 ▲0.74 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.05 ▼0.01 | 42.29 ▲1.95 | 35.06 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 22.63 ▼0.56 | 626.60 ▼61.43 | 53.71 ▼6.48 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▼0.00 | 102.44 ▲0.88 | 45.94 ▼1.79 |
WP Datepicker /wp-admin/options-general.php?page=wp_dp | 3,807 | 26.06 | 710.60 | 75.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- wp_datepicker_option-1
- widget_recent-posts
- wpdp_previous_version_compatible
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-datepicker/inc/functions_inner.php:230
- > PHP Fatal error
Uncaught Error: Call to undefined function wpdp_get_datepicker_list() in wp-content/plugins/wp-datepicker/inc/date_range.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-datepicker/inc/speed_opt_template.php:33
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: date selection, datepicker, jquery-ui, html datepicker
wp-datepicker/index.php 85% from 13 tests
The principal PHP file in "WP Datepicker" v. 2.0.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-datepicker.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin18,980 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 1 | 9,601 |
PHP | 8 | 1,942 | 1,196 | 3,712 |
JavaScript | 81 | 563 | 368 | 2,905 |
CSS | 6 | 98 | 72 | 1,821 |
PO File | 4 | 368 | 396 | 941 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 61 | 36.09% |
▷ Public methods | 163 | 96.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 3.55% |
Functions | 30 | |
▷ Named functions | 28 | 93.33% |
▷ Anonymous functions | 2 | 6.67% |
Constants | 32 | |
▷ Global constants | 32 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 PNG files occupy 0.34MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |
css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
css/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |