Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/simple-calendar-picker/calendar-picker.php+10
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.97MB] [CPU: ▼62.18ms] Passed 4 tests
Analyzing server-side resources used by Simple Calendar DatePicker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.44 ▼37.78 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.71 ▼65.57 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.24 ▼45.91 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 8.13 ▼99.46 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.31 ▼33.00 |
Calendar Picker /wp-admin/options-general.php?page=manage_settings | 2.05 | 6.55 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Calendar DatePicker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 13.21 ▼1.37 | 4.80 ▲2.98 | 41.60 ▼0.30 |
Dashboard /wp-admin | 2,225 ▲22 | 5.89 ▲0.96 | 99.54 ▼11.92 | 39.12 ▼4.76 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.01 | 42.64 ▲1.24 | 36.57 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,548 ▲2 | 23.14 ▼0.26 | 672.63 ▼15.67 | 62.07 ▲7.10 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.21 ▼0.02 | 99.43 ▼7.66 | 44.89 ▼0.62 |
Calendar Picker /wp-admin/options-general.php?page=manage_settings | 1,449 | 2.03 | 23.38 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/simple-calendar-picker/calendar-picker.php+10
Constant WP_DEBUG already defined
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=manage_settings
- > Notice in wp-content/plugins/simple-calendar-picker/calendar-picker.php+10
Constant WP_DEBUG already defined
- 113 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=manage_settings
- > Notice in wp-content/plugins/simple-calendar-picker/calendar-picker.php+159
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/simple-calendar-picker/calendar-picker.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== simple-calendar-picker ===
) - Donate link: Invalid url: "(a link for donating)"
simple-calendar-picker/calendar-picker.php 85% from 13 tests
This is the main PHP file of "Simple Calendar DatePicker" 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
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 275 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-calendar-picker.php" instead of "calendar-picker.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
Good job! No executable or dangerous file extensions detected144 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 14 | 143 |
CSS | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
css/ui-lightness/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |
css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |