Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲8.85MB] [CPU: ▲65.70ms] 50% from 4 tests
A check of server-side resources used by WP Booking Calendar
The following require your attention
- RAM: You should keep total memory usage under 10MB (currently 12.35MB on /wp-admin/admin.php?page=wpbc-availability)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 8.85MB on /wp-admin/admin.php?page=wpbc-availability)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.61 ▲8.14 | 99.18 ▲58.42 |
Dashboard /wp-admin | 12.40 ▲9.09 | 113.79 ▲61.64 |
Posts /wp-admin/edit.php | 12.45 ▲9.09 | 153.38 ▲102.26 |
Add New Post /wp-admin/post-new.php | 15.00 ▲9.11 | 165.96 ▲73.23 |
Media Library /wp-admin/upload.php | 12.32 ▲9.09 | 103.99 ▲69.52 |
Settings /wp-admin/admin.php?page=wpbc-settings | 12.53 | 111.08 |
Bookings /wp-admin/admin.php?page=wpbc | 12.36 | 138.35 |
Get Pro /wp-admin/admin.php?page=wpbc-go-pro | 12.34 | 97.11 |
Add Booking /wp-admin/admin.php?page=wpbc-new | 12.38 | 135.23 |
Availability /wp-admin/admin.php?page=wpbc-availability | 12.35 | 100.79 |
Server storage [IO: ▲12.30MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 387 new files
Database: 3 new tables, 146 new options
New tables |
---|
wp_booking_dates_props |
wp_bookingdates |
wp_booking |
New WordPress options |
---|
booking_email_reservation_content |
booking_gcal_events_from_offset |
booking_is_show_legend |
booking_start_day_weeek |
booking_widget_title |
booking_form_field_active3 |
booking_gcal_is_send_email |
booking_feedback_03 |
booking_email_trash |
booking_widget_calendar_count |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Booking Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,412 ▲1,625 | 31.19 ▲16.89 | 105.63 ▲103.61 | 38.60 ▼7.53 |
Dashboard /wp-admin | 4,047 ▲1,873 | 28.28 ▲22.66 | 546.71 ▲459.23 | 80.86 ▲40.07 |
Posts /wp-admin/edit.php | 2,208 ▲108 | 2.04 ▲0.06 | 39.68 ▲2.63 | 37.11 ▼3.03 |
Add New Post /wp-admin/post-new.php | 3,772 ▲2,244 | 21.40 ▼1.83 | 728.09 ▲36.60 | 42.81 ▼8.02 |
Media Library /wp-admin/upload.php | 1,511 ▲114 | 4.18 ▼0.03 | 109.67 ▲5.94 | 48.16 ▲3.11 |
Settings /wp-admin/admin.php?page=wpbc-settings | 5,794 | 17.71 | 501.43 | 62.78 |
Bookings /wp-admin/admin.php?page=wpbc | 2,593 | 4.18 | 76.32 | 98.69 |
Get Pro /wp-admin/admin.php?page=wpbc-go-pro | 2,906 | 9.85 | 314.83 | 162.57 |
Add Booking /wp-admin/admin.php?page=wpbc-new | 2,914 | 3.78 | 72.41 | 78.95 |
Availability /wp-admin/admin.php?page=wpbc-availability | 9,905 | 4.82 | 106.52 | 184.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
- Zombie tables detected upon uninstall: 3 tables
- wp_booking_dates_props
- wp_booking
- wp_bookingdates
- Zombie WordPress options detected upon uninstall: 146 options
- booking_view_days_num
- theysaidso_admin_options
- booking_translation_update_status
- booking_email_newbookingbyperson_content
- booking_email_new_visitor
- booking_form_field_label3
- booking_admin_panel_skin
- booking_form_field_label1
- booking_load_balancer_max_threads
- booking_is_email_approval_send_copy_to_admin
- ...
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/booking/wpdev-booking.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking/core/lib/wpdev-booking-widget.php:4
- > PHP Fatal error
Uncaught Error: Class 'WPBC_JS_CSS' not found in wp-content/plugins/booking/core/wpbc-js.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/booking/core/lib/wpbc-calendar-legend.php:258
- > PHP Fatal error
Uncaught Error: Call to undefined function add_bk_action() in wp-content/plugins/booking/includes/_feedback/feedback.php:596
- > PHP Fatal error
Uncaught Error: Class 'WPBC_JS_CSS' not found in wp-content/plugins/booking/core/wpbc-css.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
booking/wpdev-booking.php 85% from 13 tests
The main PHP file in "WP Booking Calendar" ver. 9.8.12 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("booking.php" instead of "wpdev-booking.php")
- Description: Keep the plugin description shorter than 140 characters (currently 462 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin103,938 lines of code in 320 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 15,553 | 19,348 | 48,709 |
JavaScript | 112 | 7,434 | 8,301 | 29,403 |
CSS | 92 | 959 | 2,952 | 25,502 |
SVG | 1 | 0 | 0 | 288 |
Markdown | 2 | 8 | 0 | 36 |
PHP code Passed 2 tests
An overview 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.29 |
Average class complexity | 28.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 403.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 5 | 8.06% |
▷ Concrete classes | 57 | 91.94% |
▷ Final classes | 1 | 1.75% |
Methods | 560 | |
▷ Static methods | 29 | 5.18% |
▷ Public methods | 453 | 80.89% |
▷ Protected methods | 9 | 1.61% |
▷ Private methods | 98 | 17.50% |
Functions | 766 | |
▷ Named functions | 748 | 97.65% |
▷ Anonymous functions | 18 | 2.35% |
Constants | 40 | |
▷ Global constants | 40 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-16x16.png | 1.22KB | 1.28KB | 0.00% |
assets/libs/chosen/chzn-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/img/clock_fill.png | 0.71KB | 0.67KB | ▼ 5.61% |
assets/libs/chosen/chzn-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/img/bc_black-16x16.png | 1.12KB | 1.16KB | 0.00% |