73% bookly-responsive-appointment-booking-tool

Code Review | WordPress Online Booking and Scheduling Plugin – Bookly

WordPress plugin WordPress Online Booking and Scheduling Plugin – Bookly scored73%from 54 tests.

About plugin

  • Plugin page: bookly-responsive...
  • Plugin version: 22.6
  • PHP compatiblity: 5.3.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.4
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Nov 14, 2023
  • Number of updates: 131
  • Update frequency: every 25.4 days
  • Top authors: Ladela (100%)

Code review

54 tests

User reviews

414 reviews

Install metrics

70,000+ active /2,018,450 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.74MB] [CPU: ▲25.74ms] Passed 4 tests

A check of server-side resources used by WordPress Online Booking and Scheduling Plugin – Bookly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.95 ▲3.4890.47 ▲50.01
Dashboard /wp-admin7.31 ▲3.9670.05 ▲3.69
Posts /wp-admin/edit.php7.14 ▲3.7877.96 ▲29.88
Add New Post /wp-admin/post-new.php9.99 ▲4.10119.92 ▲30.52
Media Library /wp-admin/upload.php6.95 ▲3.7278.60 ▲38.86
Initial setup /wp-admin/admin.php?page=bookly-setup7.1255.38

Server storage [IO: ▲17.23MB] [DB: ▲0.15MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 850 new files
Database: 26 new tables, 212 new options
New tables
wp_bookly_mailing_campaigns
wp_bookly_schedule_item_breaks
wp_bookly_orders
wp_bookly_categories
wp_bookly_holidays
wp_bookly_payments
wp_bookly_sub_services
wp_bookly_staff_schedule_items
wp_bookly_mailing_lists
wp_bookly_mailing_list_recipients
...
New WordPress options
bookly_bh_wednesday_end
bookly_l10n_step_done_button_start_over
bookly_l10n_label_category
bookly_l10n_info_complete_step
bookly_cloud_stripe_custom_metadata
bookly_cloud_stripe_increase
can_compress_scripts
bookly_l10n_label_employee
bookly_gen_delete_data_on_uninstall
bookly_bh_tuesday_end
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Online Booking and Scheduling Plugin – Bookly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,071 ▲32417.54 ▲3.1152.14 ▲50.4143.07 ▼1.32
Dashboard /wp-admin2,351 ▲1736.24 ▲0.52163.07 ▲46.5778.55 ▲33.60
Posts /wp-admin/edit.php2,127 ▲271.95 ▼0.0737.59 ▲1.4935.57 ▲1.71
Add New Post /wp-admin/post-new.php6,549 ▲5,02324.12 ▲0.971,006.53 ▲282.7337.97 ▼19.98
Media Library /wp-admin/upload.php1,424 ▲214.14 ▼0.05113.81 ▲17.5654.24 ▲7.96
Initial setup /wp-admin/admin.php?page=bookly-setup1,4053.5270.3953.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.15MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 26 tables in the database
    • wp_bookly_payments
    • wp_bookly_mailing_campaigns
    • wp_bookly_appointments
    • wp_bookly_customer_appointments
    • wp_bookly_sessions
    • wp_bookly_news
    • wp_bookly_sub_services
    • wp_bookly_series
    • wp_bookly_mailing_queue
    • wp_bookly_shop
    • ...
  • This plugin did not uninstall successfully, leaving 212 options in the database
    • bookly_l10n_option_employee
    • bookly_co_name
    • bookly_l10n_step_done
    • bookly_l10n_label_last_name
    • bookly_pmt_order
    • bookly_l10n_step_payment_button_next
    • widget_recent-comments
    • bookly_cloud_auto_recharge_end_at
    • bookly_cst_required_address
    • bookly_l10n_step_time_slot_not_available
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 395× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Proxy' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/modules/appearance/proxy/ChainAppointments.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Backend\\Components\otices\\Base\otice' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/components/notices/renew_auto_recharge/Notice.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Ajax' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/modules/cloud_zapier/Ajax.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Proxy' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/frontend/modules/booking/proxy/Files.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Proxy' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/modules/appearance/proxy/RecurringAppointments.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Component' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/modules/shop/Page.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Proxy' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/modules/appearance/proxy/Shared.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Proxy' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/proxy/Invoices.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Proxy' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/components/dialogs/service/edit/proxy/CustomerGroups.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Bookly\\Lib\\Base\\Component' not found in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/components/dialogs/customer/delete/Dialog.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: booking calendar, appointments, booking system, booking, appointment booking

bookly-responsive-appointment-booking-tool/main.php 77% from 13 tests

The main file in "WordPress Online Booking and Scheduling Plugin – Bookly" v. 22.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 317 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("bookly-responsive-appointment-booking-tool.php" instead of "main.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin207,199 lines of code in 793 files:
LanguageFilesBlank linesComment linesLines of code
PO File1637,8771,785117,919
PHP6326,91014,95247,417
JavaScript1133,1352,13229,941
SVG110129,168
CSS17393552,101
Svelte3430633
JSON10020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity10.29
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces157
Interfaces1
Traits0
Classes506
▷ Abstract classes24448.22%
▷ Concrete classes26251.78%
▷ Final classes00.00%
Methods2,523
▷ Static methods77730.80%
▷ Public methods2,26289.66%
▷ Protected methods1596.30%
▷ Private methods1024.04%
Functions114
▷ Named functions21.75%
▷ Anonymous functions11298.25%
Constants277
▷ Global constants31.08%
▷ Class constants27498.92%
▷ Public constants274100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.40MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
frontend/resources/images/flags.png68.68KB24.74KB▼ 63.98%
frontend/resources/images/info-16.png0.17KB0.10KB▼ 37.65%
backend/resources/images/menu.png1.06KB0.20KB▼ 81.10%
backend/resources/images/calendar.png0.97KB0.14KB▼ 85.47%
frontend/resources/images/plus-16.png0.17KB0.16KB▼ 5.92%