80% zovonto

Code Review | Zovonto Bookings and Appointments

WordPress plugin Zovonto Bookings and Appointments scored80%from 54 tests.

About plugin

  • Plugin page: zovonto
  • Plugin version: 1.6
  • PHP compatiblity: 5.6.25+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2019
  • Latest release: Jul 19, 2022
  • Number of updates: 12
  • Update frequency: every 93.7 days
  • Top authors: fpin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /817 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.17MB] [CPU: ▼4.41ms] Passed 4 tests

Analyzing server-side resources used by Zovonto Bookings and Appointments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.49 ▲1.0344.63 ▲3.05
Dashboard /wp-admin4.53 ▲1.1853.51 ▼12.16
Posts /wp-admin/edit.php4.64 ▲1.2856.57 ▲6.48
Add New Post /wp-admin/post-new.php7.13 ▲1.2491.07 ▼15.01
Media Library /wp-admin/upload.php4.45 ▲1.2246.26 ▲9.84

Server storage [IO: ▲2.22MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 142 new files
Database: 8 new tables, 67 new options
New tables
wp_bsf_payments
wp_bsf_services
wp_bsf_staff_services
wp_bsf_appointments
wp_bsf_staff
wp_bsf_staff_working_hours
wp_bsf_holidays
wp_bsf_customers
New WordPress options
bsf_settings_email_from_address
bsf_customer_appointment_approved_message
bsf_settings_end_time_label
bsf_settings_service_selection_step_desc
bsf_settings_time_slot_length
bsf_working_hours_saturday_end
theysaidso_admin_options
bsf_settings_service_selector_label
bsf_version
bsf_settings_first_name_label
...

Browser metrics Passed 4 tests

A check of browser resources used by Zovonto Bookings and Appointments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.18 ▼1.101.70 ▼0.0042.72 ▼0.61
Dashboard /wp-admin2,218 ▲304.86 ▲0.01106.08 ▼3.4283.24 ▲36.03
Posts /wp-admin/edit.php2,116 ▲271.99 ▼0.0541.30 ▲6.6155.91 ▲23.42
Add New Post /wp-admin/post-new.php1,535 ▲1622.17 ▼1.25765.78 ▲134.9067.83 ▲13.36
Media Library /wp-admin/upload.php1,412 ▲244.13 ▼0.0594.98 ▼12.16103.08 ▲57.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 8 tables in the database
    • wp_bsf_holidays
    • wp_bsf_services
    • wp_bsf_staff
    • wp_bsf_staff_services
    • wp_bsf_payments
    • wp_bsf_customers
    • wp_bsf_staff_working_hours
    • wp_bsf_appointments
  • Zombie WordPress options were found after uninstall: 67 options
    • bsf_settings_payment_step_label
    • bsf_settings_time_selection_step_label
    • bsf_settings_time_slot_length
    • bsf_working_hours_sunday_start
    • bsf_currency_position
    • widget_recent-comments
    • bsf_settings_company_address
    • bsf_currency_thousand_separator
    • theysaidso_admin_options
    • bsf_working_hours_thursday_end
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: appointments, wp appointments, appointment booking, booking calendar, wordpress appointments

zovonto/bsf.php 92% from 13 tests

"Zovonto Bookings and Appointments" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zovonto.php" instead of "bsf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected28,409 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript122,68579110,790
PHP822,6773,0708,958
CSS142071395,952
SVG1002,671
XML1121838

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.95
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes57
▷ Abstract classes47.02%
▷ Concrete classes5392.98%
▷ Final classes11.89%
Methods612
▷ Static methods11318.46%
▷ Public methods56692.48%
▷ Protected methods203.27%
▷ Private methods264.25%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
25 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/others/arrow-217-10.png0.17KB0.20KB0.00%
assets/images/calendar/arrow-89-20.png0.45KB0.43KB▼ 5.18%
assets/images/calendar/x-mark-12.png0.22KB0.25KB0.00%
assets/images/arrow-101-16.png0.17KB0.18KB0.00%
assets/images/user-placeholder.png1.12KB1.01KB▼ 10.03%