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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.05ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Bookings Calendar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.12 ▼6.62 |
Dashboard /wp-admin | 3.56 ▲0.25 | 50.66 ▼2.82 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.74 ▲7.37 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 96.71 ▲1.98 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 41.07 ▲7.27 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
wbc_notices |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Bookings Calendar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.50 | 1.76 ▼0.20 | 40.78 ▼5.90 |
Dashboard /wp-admin | 2,206 ▲21 | 5.81 ▼0.06 | 99.21 ▼6.69 | 39.44 ▼5.20 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▼0.01 | 39.70 ▲4.43 | 34.14 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.43 ▲5.76 | 665.20 ▼20.07 | 56.22 ▲0.20 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▲0.02 | 104.74 ▲3.79 | 45.95 ▲1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- wbc_notices
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: reservation, calendar, woocommerce, booking, availability
woo-bookings-calendar/wbclite.php 85% from 13 tests
"WooCommerce Bookings Calendar" version 1.0.36's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "3.2")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-bookings-calendar.php" instead of "wbclite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,917 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 351 | 137 | 1,494 |
JavaScript | 4 | 50 | 19 | 238 |
CSS | 4 | 62 | 49 | 185 |
PHP code Passed 2 tests
Analyzing 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.34 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 3 | 3.45% |
▷ Public methods | 62 | 71.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 28.74% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/assets/alert.png | 0.42KB | 0.45KB | 0.00% |
common/assets/youtube.png | 0.27KB | 0.22KB | ▼ 18.25% |