Benchmarks
Plugin footprint 48% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.81MB] [CPU: ▼290.75ms] Passed 4 tests
This is a short check of server-side resources used by Booking Calendar - Event Calendar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 33.13 ▲11.60 |
Dashboard /wp-admin | 2.83 ▼0.22 | 22.75 ▼16.44 |
Posts /wp-admin/edit.php | 2.83 ▼0.27 | 18.59 ▼21.80 |
Add New Post /wp-admin/post-new.php | 2.83 ▼2.60 | 18.93 ▼1,112.16 |
Media Library /wp-admin/upload.php | 2.83 ▼0.17 | 23.91 ▼12.59 |
Export Bookings /wp-admin/admin.php?page=omnivo_calendar_admin_bookings_export | 2.83 | 20.49 |
All Calendar Columns /wp-admin/edit.php?post_type=omnivo_weekdays | 2.84 | 25.15 |
Shortcode Generator /wp-admin/admin.php?page=omnivo_calendar_admin | 2.83 | 24.15 |
All Events /wp-admin/edit.php?post_type=omnivo_event | 2.84 | 21.06 |
Event Post Type /wp-admin/admin.php?page=omnivo_calendar_admin_page_event_post_type | 2.83 | 20.94 |
Google Calendar /wp-admin/admin.php?page=omnivo_calendar_admin_page_google_calendar | 2.83 | 20.90 |
Add New /wp-admin/post-new.php?post_type=omnivo_event | 2.84 | 17.23 |
Email config /wp-admin/admin.php?page=omnivo_calendar_admin_page_email_config | 2.84 | 23.04 |
Categories /wp-admin/edit-tags.php?taxonomy=events_category&post_type=omnivo_event | 2.84 | 17.81 |
Calendar Bookings /wp-admin/admin.php?page=omnivo_calendar_admin_bookings | 2.84 | 20.94 |
Server storage [IO: ▲5.27MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 353 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_omnivo_calendar_event_hours |
wp_omnivo_calendar_guests |
wp_omnivo_calendar_event_hours_booking |
New WordPress options |
---|
omnivo_calendar_events_settings |
omnivo_calendar_event_hours_booking_table_modify_1 |
omnivo_calendar_guests_table_installed |
widget_omnivo_calendar_upcoming_events |
omnivo_calendar_event_hours_booking_table_installed |
omnivo_calendar_event_hours_table_column_slots_per_user |
omnivo_calendar_google_calendar |
omnivo_calendar_contact_form_options |
omnivo_calendar_google_calendar_options |
omnivo_calendar_event_hours_table_installed |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Booking Calendar - Event Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,027 ▲422 | 16.99 ▲1.54 | 16.51 ▲7.61 | 46.39 ▼4.08 |
Dashboard /wp-admin | 3,134 ▲284 | 6.01 ▲0.05 | 130.07 ▲4.30 | 123.33 ▲12.76 |
Posts /wp-admin/edit.php | 2,881 ▲175 | 2.71 ▲0.01 | 73.42 ▲7.37 | 120.94 ▲18.38 |
Add New Post /wp-admin/post-new.php | 1,779 ▼259 | 18.87 ▼0.59 | 359.73 ▲2.75 | 117.01 ▲9.96 |
Media Library /wp-admin/upload.php | 1,891 ▲122 | 5.02 ▲0.01 | 136.62 ▼5.06 | 136.54 ▲29.19 |
Export Bookings /wp-admin/admin.php?page=omnivo_calendar_admin_bookings_export | 1,327 | 2.43 | 59.11 | 88.70 |
All Calendar Columns /wp-admin/edit.php?post_type=omnivo_weekdays | 3,098 | 2.72 | 67.89 | 105.06 |
Shortcode Generator /wp-admin/admin.php?page=omnivo_calendar_admin | 6,504 | 5.65 | 111.37 | 116.75 |
All Events /wp-admin/edit.php?post_type=omnivo_event | 3,228 | 2.73 | 64.19 | 105.28 |
Event Post Type /wp-admin/admin.php?page=omnivo_calendar_admin_page_event_post_type | 1,279 | 2.41 | 63.70 | 95.08 |
Google Calendar /wp-admin/admin.php?page=omnivo_calendar_admin_page_google_calendar | 2,135 | 2.58 | 62.39 | 95.31 |
Add New /wp-admin/post-new.php?post_type=omnivo_event | 4,362 | 9.09 | 228.09 | 181.99 |
Email config /wp-admin/admin.php?page=omnivo_calendar_admin_page_email_config | 2,411 | 4.14 | 85.65 | 85.07 |
Categories /wp-admin/edit-tags.php?taxonomy=events_category&post_type=omnivo_event | 1,894 | 2.51 | 55.30 | 96.11 |
Calendar Bookings /wp-admin/admin.php?page=omnivo_calendar_admin_bookings | 1,494 | 2.46 | 59.13 | 79.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie tables were found after uninstall: 3 tables
- wp_omnivo_calendar_event_hours
- wp_omnivo_calendar_guests
- wp_omnivo_calendar_event_hours_booking
- This plugin did not uninstall successfully, leaving 11 options in the database
- omnivo_calendar_contact_form_options
- omnivo_calendar_guests_table_installed
- omnivo_calendar_events_settings
- widget_omnivo_calendar_upcoming_events
- omnivo_calendar_event_hours_booking_table_installed
- omnivo_calendar_event_hours_booking_table_modify_1
- omnivo_calendar_event_hours_table_installed
- omnivo_calendar_event_hours_table_column_slots_per_user
- omnivo_calendar_google_calendar_options
- omnivo_calendar_google_calendar
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=omnivo_calendar_admin_bookings
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/admin.php?page=omnivo_calendar_admin
- > Notice in wp-content/plugins/hbook/com/main.php+1062
Trying to get property 'items' of non-object
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hbook/libraries/dompdf/lib/php-css-parser/tests/quickdump.php
- 154× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/hbook/libraries/dompdf/lib/php-svg-lib/src/Svg/Tag/LinearGradient.php:15
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/hbook/libraries/dompdf/src/Dompdf.php on line 610
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hbook/com/shortcodes.php:21
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Glyph\\Outline' not found in wp-content/plugins/hbook/libraries/dompdf/lib/php-font-lib/src/FontLib/Glyph/OutlineSimple.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/hbook/libraries/dompdf/lib/php-css-parser/tests/Sabberworm/CSS/CSSList/DocumentTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\Value' not found in wp-content/plugins/hbook/libraries/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Value/PrimitiveValue.php:5
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/hbook/libraries/dompdf/src/Positioner/TableCell.php:19
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/hbook/libraries/dompdf/lib/php-svg-lib/src/Svg/Tag/ClipPath.php:13
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/hbook/libraries/dompdf/src/FrameDecorator/Image.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/hbook/libraries/dompdf/lib/php-font-lib/src/FontLib/Table/Type/hmtx.php:17
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: event calendar, booking, calendar, booking calendar, appointment booking
hbook/index.php 92% from 13 tests
This is the main PHP file of "Booking Calendar - Event Calendar" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hbook.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected54,114 lines of code in 277 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 209 | 8,825 | 15,440 | 42,401 |
JavaScript | 8 | 589 | 287 | 6,496 |
CSS | 38 | 272 | 133 | 3,891 |
Markdown | 6 | 255 | 0 | 909 |
XML | 6 | 3 | 2 | 202 |
JSON | 5 | 0 | 0 | 135 |
YAML | 4 | 16 | 3 | 63 |
HTML | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 35.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 765.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 186 | |
▷ Abstract classes | 12 | 6.45% |
▷ Concrete classes | 174 | 93.55% |
▷ Final classes | 0 | 0.00% |
Methods | 2,034 | |
▷ Static methods | 112 | 5.51% |
▷ Public methods | 1,738 | 85.45% |
▷ Protected methods | 201 | 9.88% |
▷ Private methods | 95 | 4.67% |
Functions | 96 | |
▷ Named functions | 80 | 83.33% |
▷ Anonymous functions | 16 | 16.67% |
Constants | 162 | |
▷ Global constants | 7 | 4.32% |
▷ Class constants | 155 | 95.68% |
▷ Public constants | 155 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
33 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/colorpicker/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |
assets/admin/images/colorpicker/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
assets/admin/images/colorpicker/colorpicker_submit.png | 0.96KB | 1.04KB | 0.00% |
assets/admin/images/colorpicker/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
assets/admin/images/colorpicker/slider.png | 0.31KB | 1.51KB | 0.00% |