Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.97ms] Passed 4 tests
A check of server-side resources used by Bookings for WooCommerce - Schedule Appointments, Manage Bookings, Show Availability, Calendar Listings
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.65 ▲3.34 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.25 ▼4.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.42 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.14 ▼15.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.59 ▲1.22 |
Server storage [IO: ▲4.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 256 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Bookings for WooCommerce - Schedule Appointments, Manage Bookings, Show Availability, Calendar Listings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.35 | 1.79 ▲0.00 | 43.64 ▲5.51 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▲0.07 | 93.94 ▼1.53 | 44.14 ▲5.48 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.03 | 40.54 ▼0.09 | 37.65 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.48 ▲0.28 | 651.62 ▲10.50 | 54.88 ▼0.24 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.24 ▲0.05 | 102.27 ▲2.19 | 45.81 ▲0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 0% from 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mwb-bookings-for-woocommerce/common/partials/mwb-bookings-for-woocommerce-common-display.php
- > /wp-content/plugins/mwb-bookings-for-woocommerce/public/partials/mwb-bookings-for-woocommerce-public-display.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Product' not found in wp-content/plugins/mwb-bookings-for-woocommerce/includes/class-wc-product-mwb-booking.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mwb-bookings-for-woocommerce/index.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mwb-bookings-for-woocommerce/public/partials/wps-mybookings-details-tab.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mwb-bookings-for-woocommerce/public/index.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/mwb-bookings-for-woocommerce/onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: appointment booking, availability calendar, scheduling, booking system, calendar...
mwb-bookings-for-woocommerce/mwb-bookings-for-woocommerce.php 92% from 13 tests
The main file in "Bookings for WooCommerce - Schedule Appointments, Manage Bookings, Show Availability, Calendar Listings" v. 3.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 409 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected31,934 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 107 | 1,073 | 1,217 | 20,895 |
CSS | 25 | 576 | 277 | 5,112 |
PHP | 34 | 624 | 2,141 | 4,947 |
PO File | 1 | 255 | 334 | 621 |
JSON | 4 | 0 | 0 | 249 |
Markdown | 4 | 76 | 0 | 103 |
SVG | 5 | 0 | 0 | 5 |
XML | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 52.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 8 | 5.41% |
▷ Public methods | 137 | 92.57% |
▷ Protected methods | 2 | 1.35% |
▷ Private methods | 9 | 6.08% |
Functions | 20 | |
▷ Named functions | 17 | 85.00% |
▷ Anonymous functions | 3 | 15.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
54 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/lib/datatables/media/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/image/checked.png | 0.49KB | 0.42KB | ▼ 14.14% |
package/lib/datatables/media/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/image/star.png | 2.62KB | 2.67KB | 0.00% |
admin/image/YouTube_32px.png | 0.41KB | 0.25KB | ▼ 39.48% |