62% easy-booked

Code Review | Easy Booked - Appointment Booking Calendar And Scheduling Management System

WordPress plugin Easy Booked - Appointment Booking Calendar And Scheduling Management System scored62%from 54 tests.

About plugin

  • Plugin page: easy-booked
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Nov 26, 2023
  • Number of updates: 23
  • Update frequency: every 38.8 days
  • Top authors: joydevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,901 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.89MB] [CPU: ▲0.79ms] Passed 4 tests

An overview of server-side resources used by Easy Booked - Appointment Booking Calendar And Scheduling Management System
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7548.94 ▲8.75
Dashboard /wp-admin4.24 ▲0.9347.77 ▼1.18
Posts /wp-admin/edit.php4.27 ▲0.9251.11 ▲8.19
Add New Post /wp-admin/post-new.php6.89 ▲1.0082.66 ▼10.30
Media Library /wp-admin/upload.php4.18 ▲0.9536.80 ▲6.45
Calendar Manage /wp-admin/admin.php?page=calendar-manage4.0837.43
Appointments /wp-admin/admin.php?page=appointments4.1635.21
Setting /wp-admin/admin.php?page=setting4.0634.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 107 new files
Database: 3 new tables, 13 new options
New tables
wp_abs_custom_time_slots
wp_abs_calendar
wp_abs_time_slots
New WordPress options
widget_recent-posts
abs_installed
db_upgraded
abs_version
abs_user_register_page
widget_recent-comments
abs_setting
abs_email_reminder_time
abs_user_profile
abs_user_login
...

Browser metrics Passed 4 tests

Checking browser requirements for Easy Booked - Appointment Booking Calendar And Scheduling Management System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲19114.20 ▼0.1516.02 ▲14.1544.57 ▲0.65
Dashboard /wp-admin2,245 ▲745.85 ▲0.19103.39 ▲2.8845.43 ▼0.60
Posts /wp-admin/edit.php2,158 ▲612.33 ▲0.3649.27 ▲13.8435.13 ▼0.44
Add New Post /wp-admin/post-new.php1,569 ▲4323.67 ▲0.52608.77 ▼3.0831.63 ▼27.55
Media Library /wp-admin/upload.php1,456 ▲564.42 ▲0.23107.96 ▲9.3041.54 ▼1.86
Calendar Manage /wp-admin/admin.php?page=calendar-manage1,0942.0139.0228.39
Appointments /wp-admin/admin.php?page=appointments9962.0141.5627.06
Setting /wp-admin/admin.php?page=setting1,0561.9937.9727.45

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
  • Zombie tables detected upon uninstall: 3 tables
    • wp_abs_time_slots
    • wp_abs_custom_time_slots
    • wp_abs_calendar
  • Zombie WordPress options detected upon uninstall: 13 options
    • db_upgraded
    • abs_version
    • can_compress_scripts
    • abs_installed
    • abs_user_login
    • abs_user_profile
    • abs_email_reminder_time
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • abs_setting
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=setting
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/easy-booked/includes/Admin/Custom_Time_Slots.php+60
    Undefined index: abs_calendar_id

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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-booked/vendor/firebase/php-jwt/tests/bootstrap.php
  • 22× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(wp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-booked/includes/Admin/Calendar_List.php on line 7
    • > PHP Warning
      require_once(wp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-booked/includes/Admin/Appointment_List.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/easy-booked/includes/Admin/views/appointments-list.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/easy-booked/vendor/firebase/php-jwt/tests/JWTTest.php:7
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-booked/includes/Admin/Appointment_List.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/easy-booked/includes/Frontend/views/profile-edit.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/easy-booked/includes/Frontend/views/history.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/easy-booked/includes/Elementor_Widget/Booking_Calendar_Widget.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/easy-booked/includes/Admin/views/calendar-list.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-booked/includes/Admin/Calendar_List.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: appointment booking, booking calendar, booking system, booking, scheduling

easy-booked/appointment-booking-and-scheduling.php 69% from 13 tests

This is the main PHP file of "Easy Booked - Appointment Booking Calendar And Scheduling Management System" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Git Repository: An alternative Git repository was detected
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-booked.php" instead of "appointment-booking-and-scheduling.php")
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 75 characters long)

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
Everything looks great! No dangerous files found in this plugin36,537 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript715177313,885
SVG3009,552
CSS71,758457,127
PHP579591,2035,566
Markdown2510233
JSON410125
YAML15031
XML11018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.68
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes12.63%
Methods218
▷ Static methods2210.09%
▷ Public methods19991.28%
▷ Protected methods73.21%
▷ Private methods125.50%
Functions18
▷ Named functions1688.89%
▷ Anonymous functions211.11%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/flags@2x.png170.28KB68.04KB▼ 60.04%
assets/images/flags.png69.20KB23.42KB▼ 66.16%