Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.59MB] [CPU: ▲36.09ms] Passed 4 tests
Server-side resources used by GetBookingsWP - Appointments Booking Calendar Plugin For WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.68 ▲2.21 | 81.23 ▲41.49 |
Dashboard /wp-admin | 6.02 ▲2.72 | 88.54 ▲32.38 |
Posts /wp-admin/edit.php | 6.05 ▲2.69 | 93.83 ▲41.75 |
Add New Post /wp-admin/post-new.php | 8.71 ▲2.82 | 129.27 ▲28.74 |
Media Library /wp-admin/upload.php | 5.97 ▲2.74 | 87.87 ▲52.79 |
Settings /wp-admin/admin.php?page=getbookingswp&tab=settings | 6.22 | 98.50 |
Get Bookings Wp /wp-admin/admin.php?page=getbookingswp | 5.86 | 85.66 |
Staff /wp-admin/admin.php?page=getbookingswp&tab=users | 5.81 | 74.46 |
More Functionality! /wp-admin/admin.php?page=getbookingswp&tab=pro | 5.82 | 66.80 |
Payment Gateways /wp-admin/admin.php?page=getbookingswp&tab=gateway | 5.93 | 77.55 |
Custom Fields /wp-admin/admin.php?page=getbookingswp&tab=fields | 5.85 | 74.87 |
Licensing /wp-admin/admin.php?page=getbookingswp&tab=licence | 5.80 | 74.02 |
Services /wp-admin/admin.php?page=getbookingswp&tab=services | 5.82 | 73.43 |
Calendar /wp-admin/admin.php?page=getbookingswp&tab=calendar | 5.86 | 81.97 |
Notifications /wp-admin/admin.php?page=getbookingswp&tab=mail | 6.03 | 80.47 |
Server storage [IO: ▲5.64MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 283 new files
Database: 12 new tables, 10 new options
New tables |
---|
wp_getbwp_categories |
wp_getbwp_filters |
wp_getbwp_service_rates |
wp_getbwp_filter_staff |
wp_getbwp_booking_reservations |
wp_getbwp_staff_availability |
wp_getbwp_carts |
wp_getbwp_staff_availability_breaks |
wp_getbwp_bookings |
wp_getbwp_service_variable_pricing |
... |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
getbwp_pro_active |
can_compress_scripts |
widget_theysaidso_widget |
getbwp_profile_fields |
widget_recent-comments |
getbwp_business_hours |
getbwp_options |
widget_recent-posts |
Browser metrics Passed 4 tests
GetBookingsWP - Appointments Booking Calendar Plugin For WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,208 ▲447 | 15.91 ▲1.63 | 14.19 ▲12.52 | 34.60 ▼7.05 |
Dashboard /wp-admin | 2,393 ▲219 | 6.65 ▲1.06 | 125.14 ▲23.63 | 41.56 ▼2.04 |
Posts /wp-admin/edit.php | 2,304 ▲204 | 3.49 ▲1.55 | 58.01 ▲24.61 | 48.16 ▲12.13 |
Add New Post /wp-admin/post-new.php | 1,539 ▲2 | 20.73 ▲2.53 | 599.79 ▼60.02 | 38.67 ▼25.52 |
Media Library /wp-admin/upload.php | 1,605 ▲208 | 5.90 ▲1.71 | 101.42 ▼2.43 | 45.23 ▼0.40 |
Settings /wp-admin/admin.php?page=getbookingswp&tab=settings | 7,786 | 3.46 | 66.65 | 85.44 |
Get Bookings Wp /wp-admin/admin.php?page=getbookingswp | 1,987 | 7.24 | 140.88 | 91.97 |
Staff /wp-admin/admin.php?page=getbookingswp&tab=users | 1,257 | 3.94 | 70.15 | 41.28 |
More Functionality! /wp-admin/admin.php?page=getbookingswp&tab=pro | 1,130 | 3.70 | 49.47 | 37.89 |
Payment Gateways /wp-admin/admin.php?page=getbookingswp&tab=gateway | 1,228 | 3.55 | 43.53 | 48.91 |
Custom Fields /wp-admin/admin.php?page=getbookingswp&tab=fields | 1,486 | 3.89 | 51.65 | 52.28 |
Licensing /wp-admin/admin.php?page=getbookingswp&tab=licence | 1,089 | 3.51 | 46.34 | 43.56 |
Services /wp-admin/admin.php?page=getbookingswp&tab=services | 1,350 | 4.55 | 82.35 | 48.85 |
Calendar /wp-admin/admin.php?page=getbookingswp&tab=calendar | 2,291 | 5.78 | 169.05 | 54.17 |
Notifications /wp-admin/admin.php?page=getbookingswp&tab=mail | 4,759 | 15.83 | 372.42 | 54.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 12 tables
- wp_getbwp_service_rates
- wp_getbwp_filter_staff
- wp_getbwp_staff_availability
- wp_getbwp_service_variable_pricing
- wp_getbwp_carts
- wp_getbwp_booking_reservations
- wp_getbwp_staff_availability_breaks
- wp_getbwp_filters
- wp_getbwp_categories
- wp_getbwp_bookings_meta
- ...
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- widget_recent-posts
- getbwp_profile_fields
- widget_theysaidso_widget
- getbwp_business_hours
- theysaidso_admin_options
- getbwp_options
- widget_recent-comments
- getbwp_pro_active
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=getbookingswp&tab=users
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/get-bookings-wp/classes/user.php+1889
Undefined variable: arr
- > GET request to /wp-admin/admin.php?page=getbookingswp&tab=users
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/get-bookings-wp/classes/user.php+1945
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=getbookingswp&tab=fields
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/get-bookings-wp/classes/admin.php+1371
Undefined index: getbwp_custom_form
- > GET request to /wp-admin/admin.php?page=getbookingswp&tab=services
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/get-bookings-wp/classes/service.php+3381
Trying to get property 'cate_name' of non-object
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
Please fix the following
- 47× 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 _e() in wp-content/plugins/get-bookings-wp/admin/tabs/help.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/get-bookings-wp/index.php:13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/get-bookings-wp/classes/order.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_post() in wp-content/plugins/get-bookings-wp/admin/tabs/addons.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_option() on null in wp-content/plugins/get-bookings-wp/admin/tabs/orders.php:3
- > PHP Fatal error
Uncaught Error: Class 'GetBookingsWPCommon' not found in wp-content/plugins/get-bookings-wp/classes/messaging.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/get-bookings-wp/admin/tabs/gateway.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-bookings-wp/classes/adminshortcodes.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/get-bookings-wp/templates/appointment_side_bar.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/get-bookings-wp/admin/tabs/mail.php:4
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Booking Calendar), #2 (Staff Backend), #3 (Custom Booking Form Fields), #4 (Clean and Clear Booking Form), #5 (Multiple Services), #6 (Public Staff Profile), #7 (Members Directory)
get-bookings-wp/index.php 85% from 13 tests
The main PHP file in "GetBookingsWP - Appointments Booking Calendar Plugin For WordPress" ver. 1.1.18 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 273 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("get-bookings-wp.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin49,191 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 8,388 | 1,035 | 15,934 |
JavaScript | 58 | 2,705 | 2,096 | 12,562 |
CSS | 18 | 1,823 | 317 | 10,168 |
SVG | 4 | 0 | 0 | 3,159 |
Sass | 23 | 50 | 48 | 2,649 |
LESS | 23 | 50 | 64 | 2,635 |
PO File | 1 | 893 | 1,130 | 2,084 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 92.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 375.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 420 | |
▷ Static methods | 1 | 0.24% |
▷ Public methods | 420 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
72 PNG files occupy 1.15MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/Star.png | 4.04KB | 1.35KB | ▼ 66.63% |
admin/images/info.png | 1.52KB | 1.49KB | ▼ 2.37% |
admin/images/error.png | 1.38KB | 1.31KB | ▼ 5.30% |
admin/images/private.png | 0.31KB | 0.39KB | 0.00% |
templates/img/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |