Benchmarks
Plugin footprint 47% 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: ▲6.77MB] [CPU: ▲31.32ms] 50% from 4 tests
Analyzing server-side resources used by Booking Calendar | Appointment Booking | BookIt
It is recommended to improve the following
- RAM: Total memory usage must be kept under 10MB (currently 10.69MB on /wp-admin/admin.php?page=freemius)
- Extra RAM: The extra memory usage should kept under 5MB (currently 6.77MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.23 ▲6.77 | 75.53 ▲37.32 |
Dashboard /wp-admin | 10.69 ▲7.34 | 81.41 ▲25.42 |
Posts /wp-admin/edit.php | 10.69 ▲7.33 | 83.92 ▲40.18 |
Add New Post /wp-admin/post-new.php | 11.52 ▲5.63 | 113.36 ▲22.34 |
Media Library /wp-admin/upload.php | 10.69 ▲7.46 | 83.60 ▲47.08 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 10.69 | 68.73 |
Server storage [IO: ▲7.38MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 372 new files
Database: 10 new tables, 13 new options
New tables |
---|
wp_bookit_services |
wp_bookit_discounts |
wp_bookit_payments |
wp_bookit_staff_services |
wp_bookit_customers |
wp_bookit_categories |
wp_bookit_appointments |
wp_bookit_staff |
wp_bookit_coupons |
wp_bookit_staff_working_hours |
New WordPress options |
---|
widget_theysaidso_widget |
bookit_settings |
fs_accounts |
widget_recent-comments |
bookit_version |
fs_active_plugins |
widget_recent-posts |
bookit_db_version |
db_upgraded |
notification_enqueue |
... |
Browser metrics Passed 4 tests
Booking Calendar | Appointment Booking | BookIt: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.54 ▼0.81 | 1.65 ▲0.05 | 31.75 ▼12.17 |
Dashboard /wp-admin | 2,292 ▲118 | 6.09 ▲0.39 | 97.25 ▲7.24 | 83.49 ▲44.08 |
Posts /wp-admin/edit.php | 2,215 ▲115 | 2.55 ▲0.58 | 35.56 ▲1.30 | 34.19 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,610 ▲82 | 24.72 ▲1.59 | 784.13 ▲134.03 | 37.51 ▼14.31 |
Media Library /wp-admin/upload.php | 1,515 ▲112 | 4.82 ▲0.59 | 105.58 ▲6.25 | 80.75 ▲34.06 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,161 | 2.35 | 27.33 | 25.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/bookit/libs/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The plugin did not uninstall successfully, leaving 10 tables in the database
- wp_bookit_payments
- wp_bookit_discounts
- wp_bookit_services
- wp_bookit_staff
- wp_bookit_staff_working_hours
- wp_bookit_customers
- wp_bookit_categories
- wp_bookit_appointments
- wp_bookit_coupons
- wp_bookit_staff_services
- This plugin does not fully uninstall, leaving 13 options in the database
- fs_debug_mode
- widget_theysaidso_widget
- bookit_settings
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- fs_accounts
- bookit_db_version
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 36× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ANP\\Popup\\ItemBase' not found in wp-content/plugins/bookit/libs/admin-notifications-popup/classes/Popup/Theme/ItemRateTheme.php:7
- > PHP Fatal error
Uncaught Error: Class 'Bookit\\Classes\\Vendor\\DatabaseModel' not found in wp-content/plugins/bookit/includes/classes/database/Services.php:7
- > PHP Fatal error
Uncaught Error: Class 'Bookit\\Classes\\Vendor\\DatabaseModel' not found in wp-content/plugins/bookit/includes/classes/database/Staff_Services.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bookit/templates/dashboard/bookit-staff.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bookit/templates/dashboard/bookit-services.php:2
- > PHP Fatal error
Uncaught Error: Class 'Bookit\\Classes\\Vendor\\DatabaseModel' not found in wp-content/plugins/bookit/includes/classes/database/Customers.php:7
- > PHP Fatal error
Uncaught Error: Class 'Bookit\\Classes\\Base\\Addon' not found in wp-content/plugins/bookit/includes/classes/base/AddonsFactory.php:8
- > PHP Fatal error
Uncaught Error: Class 'Bookit\\Classes\\Admin\\DashboardController' not found in wp-content/plugins/bookit/includes/classes/admin/CategoriesController.php:8
- > PHP Fatal error
Uncaught Error: Class 'Bookit\\Classes\\Vendor\\DatabaseModel' not found in wp-content/plugins/bookit/includes/classes/database/Coupons.php:7
- > PHP Fatal error
Uncaught Error: Class 'ANP\\Popup\\ItemBase' not found in wp-content/plugins/bookit/libs/admin-notifications-popup/classes/Popup/Theme/ItemStarterTheme.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #2, #3, #4, #5, #6, #7, #8, #9 in bookit/assets to your readme.txt
bookit/bookit.php Passed 13 tests
The main PHP script in "Booking Calendar | Appointment Booking | BookIt" version 2.4.4 is automatically included on every request by WordPress
92 characters long description:
Booking Appointments Calendar. You can easily realize Booking Appointments with this plugin.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected54,149 lines of code in 304 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 193 | 9,383 | 18,505 | 40,834 |
PO File | 17 | 5,610 | 6,904 | 12,341 |
SVG | 67 | 0 | 0 | 420 |
JavaScript | 7 | 52 | 62 | 314 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 18 | 0 | 0 | 18 |
JSON | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 47.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 110 | |
▷ Abstract classes | 7 | 6.36% |
▷ Concrete classes | 103 | 93.64% |
▷ Final classes | 0 | 0.00% |
Methods | 1,624 | |
▷ Static methods | 499 | 30.73% |
▷ Public methods | 1,194 | 73.52% |
▷ Protected methods | 31 | 1.91% |
▷ Private methods | 399 | 24.57% |
Functions | 136 | |
▷ Named functions | 112 | 82.35% |
▷ Anonymous functions | 24 | 17.65% |
Constants | 162 | |
▷ Global constants | 109 | 67.28% |
▷ Class constants | 53 | 32.72% |
▷ Public constants | 49 | 92.45% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
libs/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/icon-100x100.png | 7.27KB | 2.73KB | ▼ 62.49% |