Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲3.24MB] [CPU: ▲20.08ms] Passed 4 tests
An overview of server-side resources used by Booking X - Appointment and Reservation Availability Calendar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.68 ▲3.22 | 70.97 ▲30.75 |
Dashboard /wp-admin | 6.51 ▲3.21 | 65.93 ▲18.22 |
Posts /wp-admin/edit.php | 6.64 ▲3.29 | 79.15 ▲28.57 |
Add New Post /wp-admin/post-new.php | 9.38 ▲3.50 | 106.97 ▲2.79 |
Media Library /wp-admin/upload.php | 6.48 ▲3.25 | 67.80 ▲30.88 |
Bookings /wp-admin/edit.php?post_type=bkx_booking | 6.55 | 62.83 |
/wp-admin/edit.php?post_type=bkx_seat | 6.54 | 61.49 |
Extra /wp-admin/edit.php?post_type=bkx_addition | 6.54 | 60.00 |
Settings /wp-admin/edit.php?post_type=bkx_booking&page=bkx-setting | 6.69 | 56.53 |
Service /wp-admin/edit.php?post_type=bkx_base | 6.54 | 60.79 |
Server storage [IO: ▲6.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 324 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_recent-comments |
bkx_set_booking_page |
bkx_my_account_page_id |
theysaidso_admin_options |
bkx_dashboard_page_id |
widget_recent-posts |
bkx_notice_time_extended_text_alias |
db_upgraded |
bkx_label_of_step1 |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Booking X - Appointment and Reservation Availability Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,289 ▲543 | 23.93 ▲9.50 | 40.08 ▲38.45 | 18.03 ▼22.00 |
Dashboard /wp-admin | 2,360 ▲169 | 9.90 ▲4.88 | 135.63 ▲29.68 | 42.17 ▼4.63 |
Posts /wp-admin/edit.php | 2,303 ▲214 | 8.91 ▲6.87 | 76.62 ▲39.71 | 37.19 ▲4.14 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 21.74 ▼1.14 | 545.14 ▼112.66 | 34.70 ▼16.12 |
Media Library /wp-admin/upload.php | 1,559 ▲171 | 11.21 ▲6.98 | 145.96 ▲36.13 | 42.86 ▼4.43 |
Bookings /wp-admin/edit.php?post_type=bkx_booking | 1,468 | 9.25 | 78.50 | 28.74 |
/wp-admin/edit.php?post_type=bkx_seat | 1,298 | 9.08 | 87.63 | 32.98 |
Extra /wp-admin/edit.php?post_type=bkx_addition | 1,290 | 9.09 | 76.30 | 27.60 |
Settings /wp-admin/edit.php?post_type=bkx_booking&page=bkx-setting | 1,174 | 9.45 | 65.39 | 29.10 |
Service /wp-admin/edit.php?post_type=bkx_base | 1,290 | 9.14 | 75.69 | 27.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 18 options in the database
- enable_cancel_booking
- bkx_notice_create_an_account
- widget_recent-posts
- bkx_alias_addition
- bkx_set_booking_page
- bkx_edit_booking_page_id
- widget_theysaidso_widget
- bkx_notice_time_extended_text_alias
- bkx_my_account_page_id
- enable_any_seat
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-x/includes/core/booking/class-order-meta-box.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-x/includes/core/functions/bkx-core-functions.php:351
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bkx_base
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"booking-x/bkx-base\" is registered with an invalid category \"booking-x\".
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bkx_base
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"booking-x/bkx-seat\" is registered with an invalid category \"booking-x\".
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bkx_base
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
The block \"booking-x/bkx-addition\" is registered with an invalid category \"booking-x\".
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: availability calendar, booking calendar, booking system, reservations, appointment booking...
booking-x/bookingx.php 77% from 13 tests
The main PHP file in "Booking X - Appointment and Reservation Availability Calendar" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("booking-x.php" instead of "bookingx.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
Success! There were no dangerous files found in this plugin51,275 lines of code in 272 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 110 | 1,261 | 1,728 | 24,140 |
PHP | 112 | 2,003 | 4,640 | 18,910 |
SVG | 1 | 1 | 3 | 2,625 |
CSS | 24 | 362 | 184 | 2,384 |
Sass | 14 | 338 | 2 | 1,854 |
XML | 1 | 0 | 0 | 1,007 |
JSON | 8 | 0 | 0 | 287 |
Markdown | 2 | 20 | 0 | 68 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 147)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 57.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 624.00 |
Average method complexity | 6.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 147.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 41 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 449 | |
▷ Static methods | 68 | 15.14% |
▷ Public methods | 431 | 95.99% |
▷ Protected methods | 1 | 0.22% |
▷ Private methods | 17 | 3.79% |
Functions | 140 | |
▷ Named functions | 137 | 97.86% |
▷ Anonymous functions | 3 | 2.14% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 1.67MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 203.63KB | 57.14KB | ▼ 71.94% |
screenshot-5.png | 281.56KB | 81.57KB | ▼ 71.03% |
public/images/dashicons-calendar.png | 2.79KB | 0.74KB | ▼ 73.60% |
admin/css/jquery-ui/images/ui-icons_2e83ff_256x240.png | 3.69KB | 4.18KB | 0.00% |
admin/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |