Benchmarks
Plugin footprint 65% 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: ▲1.79MB] [CPU: ▲13.82ms] Passed 4 tests
Analyzing server-side resources used by WP Booking System - Booking Calendar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.25 ▲1.79 | 72.27 ▲35.27 |
Dashboard /wp-admin | 5.08 ▲1.78 | 66.96 ▲16.85 |
Posts /wp-admin/edit.php | 5.20 ▲1.84 | 58.45 ▲12.05 |
Add New Post /wp-admin/post-new.php | 7.68 ▲1.80 | 111.52 ▲8.48 |
Media Library /wp-admin/upload.php | 5.02 ▲1.79 | 53.34 ▲17.88 |
Settings /wp-admin/admin.php?page=wpbs-settings | 4.99 | 46.24 |
Forms /wp-admin/admin.php?page=wpbs-forms | 4.98 | 46.42 |
Backup/Restore /wp-admin/admin.php?page=wpbs-backup | 4.98 | 42.85 |
Calendars /wp-admin/admin.php?page=wpbs-calendars | 4.98 | 42.27 |
Server storage [IO: ▲1.87MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 397 new files
Database: 10 new tables, 10 new options
New tables |
---|
wp_wpbs_events |
wp_wpbs_bookings |
wp_wpbs_event_meta |
wp_wpbs_booking_meta |
wp_wpbs_legend_item_meta |
wp_wpbs_legend_items |
wp_wpbs_forms |
wp_wpbs_calendars |
wp_wpbs_form_meta |
wp_wpbs_calendar_meta |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
wpbs_version |
can_compress_scripts |
wpbs_first_activation |
db_upgraded |
theysaidso_admin_options |
widget_wpbs_widget |
widget_wpbs_calendar |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Booking System - Booking Calendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲229 | 13.95 ▼0.33 | 7.77 ▲5.96 | 45.21 ▲1.44 |
Dashboard /wp-admin | 2,274 ▲97 | 5.22 ▼0.37 | 104.83 ▼0.01 | 38.96 ▼7.72 |
Posts /wp-admin/edit.php | 2,392 ▲292 | 2.56 ▲0.62 | 43.92 ▲7.85 | 31.29 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,994 ▲463 | 24.15 ▲1.19 | 624.95 ▼9.55 | 40.48 ▼16.81 |
Media Library /wp-admin/upload.php | 1,679 ▲276 | 4.64 ▲0.52 | 97.11 ▼5.10 | 43.18 ▲0.25 |
Settings /wp-admin/admin.php?page=wpbs-settings | 1,545 | 2.81 | 58.70 | 94.61 |
Forms /wp-admin/admin.php?page=wpbs-forms | 1,052 | 2.47 | 39.93 | 29.88 |
Backup/Restore /wp-admin/admin.php?page=wpbs-backup | 962 | 2.43 | 39.47 | 27.87 |
Calendars /wp-admin/admin.php?page=wpbs-calendars | 1,052 | 2.50 | 49.14 | 30.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 10 tables
- wp_wpbs_booking_meta
- wp_wpbs_calendar_meta
- wp_wpbs_forms
- wp_wpbs_event_meta
- wp_wpbs_calendars
- wp_wpbs_bookings
- wp_wpbs_form_meta
- wp_wpbs_legend_items
- wp_wpbs_legend_item_meta
- wp_wpbs_events
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-comments
- can_compress_scripts
- wpbs_version
- widget_recent-posts
- theysaidso_admin_options
- widget_wpbs_calendar
- widget_theysaidso_widget
- wpbs_first_activation
- db_upgraded
- widget_wpbs_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/booking/views/view-modal-booking-details.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/calendar/views/view-shortcode-generator-insert-calendar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/wp-booking-system/includes/base/admin/calendar/views/view-welcome-to-2.0.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/form/views/view-edit-form-tab-form-confirmation.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/booking/views/view-modal.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/form/views/view-edit-form-tab-form-builder.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/form/views/view-edit-form-tab-admin-notification.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/booking/views/view-modal-manage-booking.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wpbs_form_default_strings() in wp-content/plugins/wp-booking-system/includes/base/admin/form/views/view-edit-form-tab-form-strings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-booking-system/includes/base/admin/form/views/view-edit-form-tab-form-options.php:4
- > PHP Fatal error
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 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (WP Booking System front-end display), #2 (Calendar Editor), #3 (Form Editor), #4 (Booking Manager), #5 (Email Notifications), #6 (Translations Manager)
wp-booking-system/wp-booking-system.php Passed 13 tests
The main PHP script in "WP Booking System - Booking Calendar" version 2.0.19.4 is automatically included on every request by WordPress
59 characters long description:
A set-and-forget booking calendar for your rental business.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin17,171 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 4,254 | 5,896 | 8,587 |
JSON | 3 | 0 | 0 | 4,983 |
JavaScript | 12 | 866 | 781 | 1,792 |
CSS | 9 | 459 | 214 | 1,775 |
SVG | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 16.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 6 | 13.04% |
▷ Concrete classes | 40 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 307 | |
▷ Static methods | 6 | 1.95% |
▷ Public methods | 197 | 64.17% |
▷ Protected methods | 108 | 35.18% |
▷ Private methods | 2 | 0.65% |
Functions | 166 | |
▷ Named functions | 163 | 98.19% |
▷ Anonymous functions | 3 | 1.81% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
255 compressed PNG files occupy 0.39MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flags/cs.png | 0.46KB | 0.61KB | 0.00% |
assets/img/flags/sj.png | 0.50KB | 0.62KB | 0.00% |
assets/img/flags/tj.png | 0.48KB | 0.58KB | 0.00% |
assets/img/flags/me.png | 0.44KB | 0.68KB | 0.00% |
assets/img/flags/mz.png | 0.57KB | 0.76KB | 0.00% |