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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.38ms] Passed 4 tests
Analyzing server-side resources used by Date Price Calendar for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.40 ▲1.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.25 ▲1.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.41 ▼5.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.16 ▼2.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.35 ▲2.80 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Date Price Calendar for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.42 | 1.70 ▼0.07 | 40.90 ▼3.62 |
Dashboard /wp-admin | 2,195 ▲15 | 5.51 ▼0.09 | 84.22 ▼3.43 | 39.55 ▼2.96 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.06 | 37.87 ▲0.13 | 35.00 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 21.11 ▼2.01 | 690.29 ▼26.39 | 51.66 ▼3.32 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.14 | 108.51 ▲2.67 | 44.13 ▼2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: date product option, calendar product option, price per date, available date ranges
date-price-calendar/date-price-calendar.php Passed 13 tests
The main PHP file in "Date Price Calendar for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Product option that displays a calendar. Each date can have different price.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected951 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 287 | 20 | 756 |
JavaScript | 2 | 55 | 0 | 146 |
CSS | 3 | 32 | 20 | 49 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 71 | |
▷ Static methods | 4 | 5.63% |
▷ Public methods | 67 | 94.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.63% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
11 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/frontend/web/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
view/frontend/web/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
view/adminhtml/web/product/edit/text_field_option.png | 54.53KB | 14.16KB | ▼ 74.04% |
view/frontend/web/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
view/frontend/web/images/ui-bg_glass_75_dadada_1x400.png | 0.29KB | 0.16KB | ▼ 46.84% |