Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲4.55MB] [CPU: ▼270.10ms] Passed 4 tests
This is a short check of server-side resources used by Booking Addon for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.37 ▲4.86 | 78.78 ▲29.83 |
Dashboard /wp-admin | 8.39 ▲4.98 | 59.94 ▲26.67 |
Posts /wp-admin/edit.php | 8.39 ▲4.75 | 61.56 ▲25.38 |
Add New Post /wp-admin/post-new.php | 10.59 ▲3.62 | 115.96 ▼1,152.71 |
Media Library /wp-admin/upload.php | 8.39 ▲5.10 | 45.73 ▲20.28 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.39 | 43.53 |
Server storage [IO: ▲6.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 261 new files
Database: no new tables, 5 new options
New WordPress options |
---|
mvvwb_version |
fs_gdpr |
fs_accounts |
fs_active_plugins |
fs_debug_mode |
Browser metrics Passed 4 tests
Booking Addon for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,866 ▲122 | 16.36 ▲0.78 | 9.09 ▲3.01 | 2.27 ▼0.02 |
Dashboard /wp-admin | 2,956 ▲95 | 6.82 ▲0.58 | 128.94 ▼6.11 | 177.02 ▲13.78 |
Posts /wp-admin/edit.php | 2,752 ▲61 | 3.32 ▲0.07 | 66.43 ▲2.75 | 156.77 ▲12.78 |
Add New Post /wp-admin/post-new.php | 1,744 ▲75 | 20.96 ▼0.58 | 476.77 ▲49.36 | 160.38 ▼0.86 |
Media Library /wp-admin/upload.php | 1,756 ▲55 | 5.99 ▲0.44 | 138.35 ▼8.72 | 212.60 ▲22.75 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,468 | 2.88 | 57.53 | 114.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/booking-for-woocommerce/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 5 options in the database
- fs_accounts
- mvvwb_version
- fs_gdpr
- fs_debug_mode
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/booking-for-woocommerce/include/views/admin-root.php
- > /wp-content/plugins/booking-for-woocommerce/include/views/footer-scripts.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant MVVWB_TOKEN - assumed 'MVVWB_TOKEN' (this will throw an Error in a future version of PHP) in wp-content/plugins/booking-for-woocommerce/include/views/admin-root.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: booking, booking plugin, woocommerce, appointment plugin
booking-for-woocommerce/booking.php 85% from 13 tests
The primary PHP file in "Booking Addon for WooCommerce" version 4.2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "4.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("booking-for-woocommerce.php" instead of "booking.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin37,900 lines of code in 217 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 8,131 | 16,551 | 36,107 |
JSON | 2 | 0 | 0 | 705 |
PO File | 1 | 224 | 225 | 474 |
CSS | 13 | 52 | 7 | 304 |
JavaScript | 72 | 34 | 62 | 263 |
XML | 1 | 4 | 0 | 47 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 87.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,326 | |
▷ Static methods | 194 | 14.63% |
▷ Public methods | 985 | 74.28% |
▷ Protected methods | 15 | 1.13% |
▷ Private methods | 326 | 24.59% |
Functions | 143 | |
▷ Named functions | 113 | 79.02% |
▷ Anonymous functions | 30 | 20.98% |
Constants | 139 | |
▷ Global constants | 114 | 82.01% |
▷ Class constants | 25 | 17.99% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/booking-for-woocommerce.png | 11.25KB | 4.39KB | ▼ 60.94% |