Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲7.03MB] [CPU: ▲37.38ms] 50% from 4 tests
This is a short check of server-side resources used by BookingPress - Appointment Booking Calendar Plugin and Online Scheduling Plugin
Please take the time to fix the following items
- RAM: Total memory usage should be kept under 10MB (currently 10.91MB on /wp-admin/admin.php?page=bookingpress_customize)
- Extra RAM: The extra memory usage must be under 5MB (currently 7.03MB on /wp-admin/admin.php?page=bookingpress_customize)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.13 ▲6.67 | 80.17 ▲32.58 |
Dashboard /wp-admin | 10.48 ▲7.13 | 91.97 ▲30.39 |
Posts /wp-admin/edit.php | 10.52 ▲7.16 | 95.18 ▲51.10 |
Add New Post /wp-admin/post-new.php | 13.08 ▲7.20 | 139.40 ▲51.85 |
Media Library /wp-admin/upload.php | 10.39 ▲7.16 | 75.40 ▲35.44 |
Payments /wp-admin/admin.php?page=bookingpress_payments | 10.43 | 89.75 |
Calendar /wp-admin/admin.php?page=bookingpress_calendar | 10.48 | 79.19 |
Appointments /wp-admin/admin.php?page=bookingpress_appointments | 10.59 | 84.67 |
Add-ons /wp-admin/admin.php?page=bookingpress_addons | 10.42 | 72.90 |
Notifications /wp-admin/admin.php?page=bookingpress_notifications | 10.42 | 73.16 |
Dashboard /wp-admin/admin.php?page=bookingpress | 10.20 | 63.23 |
Growth Plugins /wp-admin/admin.php?page=bookingpress_growth_tools | 10.34 | 70.21 |
Black Friday Sale /wp-admin/admin.php?page=bookingpress&upgrade_action=upgrade_to_pro | 10.20 | 62.66 |
Services /wp-admin/admin.php?page=bookingpress_services | 10.44 | 84.34 |
Customize /wp-admin/admin.php?page=bookingpress_customize | 10.91 | 86.72 |
Server storage [IO: ▲15.87MB] [DB: ▲0.15MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 1,285 new files
Database: 18 new tables, 109 new options
New tables |
---|
wp_bookingpress_servicesmeta |
wp_bookingpress_debug_payment_log |
wp_bookingpress_notifications |
wp_bookingpress_other_debug_logs |
wp_bookingpress_entries_meta |
wp_bookingpress_default_daysoff |
wp_bookingpress_appointment_bookings |
wp_bookingpress_customers |
wp_bookingpress_customers_meta |
wp_bookingpress_entries |
... |
New WordPress options |
---|
booking_form_shortcode_default_fields_default_image_url_2023-11-26 07:16:31 |
bpa_mybookings_shortcode_default_dataservice_main_heading_2023-11-26 07:16:31 |
widget_theysaidso_widget |
bpa_mybookings_shortcode_default_datatotal_amount_title_2023-11-26 07:16:31 |
bpa_mybookings_shortcode_default_datacancel_appointment_title_2023-11-26 07:16:31 |
booking_form_shortcode_default_fields_night_text_2023-11-26 07:16:31 |
booking_form_shortcode_default_fields_sub_title_color_2023-11-26 07:16:31 |
booking_form_shortcode_default_fields_primary_color_2023-11-26 07:16:31 |
bpa_mybookings_shortcode_default_dataallow_to_cancel_appointment_2023-11-26 07:16:31 |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for BookingPress - Appointment Booking Calendar Plugin and Online Scheduling Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲53 | 14.54 ▲0.15 | 1.68 ▼0.07 | 36.03 ▼7.03 |
Dashboard /wp-admin | 2,193 ▲13 | 5.52 ▼0.12 | 96.00 ▼2.73 | 67.63 ▲21.31 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.95 ▼0.05 | 37.69 ▼0.56 | 30.36 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,666 ▲141 | 22.09 ▼1.26 | 643.41 ▼16.24 | 36.04 ▼27.88 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.24 ▲0.02 | 94.81 ▼6.00 | 66.28 ▲21.51 |
Payments /wp-admin/admin.php?page=bookingpress_payments | 3,721 | 8.20 | 162.50 | 57.92 |
Calendar /wp-admin/admin.php?page=bookingpress_calendar | 1,768 | 11.00 | 214.52 | 32.60 |
Appointments /wp-admin/admin.php?page=bookingpress_appointments | 4,293 | 10.47 | 177.79 | 55.81 |
Add-ons /wp-admin/admin.php?page=bookingpress_addons | 3,201 | 8.38 | 100.00 | 28.49 |
Notifications /wp-admin/admin.php?page=bookingpress_notifications | 2,844 | 8.04 | 145.38 | 52.28 |
Dashboard /wp-admin/admin.php?page=bookingpress | 28 | 0.41 | 0.08 | 3.34 |
Growth Plugins /wp-admin/admin.php?page=bookingpress_growth_tools | 1,947 | 6.96 | 91.57 | 29.54 |
Black Friday Sale /wp-admin/admin.php?page=bookingpress&upgrade_action=upgrade_to_pro | 28 | 0.41 | 0.08 | 3.72 |
Services /wp-admin/admin.php?page=bookingpress_services | 3,270 | 9.49 | 145.44 | 60.87 |
Customize /wp-admin/admin.php?page=bookingpress_customize | 9,955 | 26.12 | 440.01 | 68.67 |
Uninstaller [IO: ▲0.06MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 100 options
- bpa_default_notificat_data_query_details_Appointment Rejected_2023-11-26 07:16:30
- booking_form_shortcode_default_fields_hide_category_service_selection_2023-11-26 07:16:31
- booking_form_shortcode_default_fields_morning_text_2023-11-26 07:16:31
- bpa_mybookings_shortcode_default_dataservice_main_heading_2023-11-26 07:16:31
- bpa_mybookings_shortcode_default_datacancel_appointment_confirmation_message_2023-11-26 07:16:31
- bpa_default_notificat_data_query_details_second_Share Appointment URL_2023-11-26 07:16:30
- bpa_mybookings_shortcode_default_datasearch_date_title_2023-11-26 07:16:31
- bpa_defult_field_installation_details_lastname_2023-11-26 07:16:31
- bpa_mybookings_shortcode_default_datacancel_button_text_2023-11-26 07:16:31
- booking_form_shortcode_default_fields_booking_form_tabs_position_2023-11-26 07:16:31
- ...
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
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 476× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE\\ConstantTime\\Base64' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/paragonie/constant_time_encoding/src/Base64DotSlashOrdered.php:34
- > PHP Fatal error
Uncaught Error: Class 'Google\\Service\\Resource' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/google/apiclient-services/src/Gmail/Resource/UsersSettingsDelegates.php:31
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Parameters.php:21
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Signature\\Raw' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Signature/Raw.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\BCMath\\Base' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/EvalBarrett.php:24
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\TwistedEdwards' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/Ed25519.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/bookingpress-appointment-booking/lib/gmail/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=bookingpress
- > Network (severe)
wp-admin/admin.php?page=bookingpress - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=bookingpress&upgrade_action=upgrade_to_pro
- > Network (severe)
wp-admin/admin.php?page=bookingpress&upgrade_action=upgrade_to_pro - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: booking system, appointment, reservation, scheduling, booking calendar
bookingpress-appointment-booking/bookingpress-appointment-booking.php 92% from 13 tests
The main file in "BookingPress - Appointment Booking Calendar Plugin and Online Scheduling Plugin" v. 1.0.77 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected131,679 lines of code in 956 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 791 | 17,362 | 44,870 | 105,606 |
PO File | 7 | 6,510 | 22,386 | 13,246 |
JavaScript | 103 | 147 | 397 | 7,254 |
Markdown | 14 | 954 | 0 | 3,255 |
JSON | 21 | 0 | 0 | 2,219 |
SVG | 4 | 0 | 0 | 57 |
XML | 1 | 0 | 0 | 19 |
CSS | 13 | 0 | 0 | 13 |
YAML | 1 | 0 | 0 | 7 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 176)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 978.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 176.00 |
Code structure | ||
---|---|---|
Namespaces | 80 | |
Interfaces | 50 | |
Traits | 15 | |
Classes | 698 | |
▷ Abstract classes | 217 | 31.09% |
▷ Concrete classes | 481 | 68.91% |
▷ Final classes | 66 | 13.72% |
Methods | 4,187 | |
▷ Static methods | 714 | 17.05% |
▷ Public methods | 3,289 | 78.55% |
▷ Protected methods | 400 | 9.55% |
▷ Private methods | 498 | 11.89% |
Functions | 192 | |
▷ Named functions | 42 | 21.88% |
▷ Anonymous functions | 150 | 78.12% |
Constants | 548 | |
▷ Global constants | 36 | 6.57% |
▷ Class constants | 512 | 93.43% |
▷ Public constants | 466 | 91.02% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
257 compressed PNG files occupy 0.95MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/country-flags/ms.png | 0.91KB | 1.09KB | 0.00% |
images/country-flags/kw.png | 0.75KB | 0.79KB | 0.00% |
images/country-flags/eg.png | 0.60KB | 0.68KB | 0.00% |
images/country-flags/yt.png | 0.95KB | 1.00KB | 0.00% |
images/country-flags/jm.png | 0.85KB | 0.93KB | 0.00% |