10% online-reservation

Code Review | Online Reservation

WordPress plugin Online Reservation scored 10% from 54 tests.

About plugin

  • Plugin page: online-reservation
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3
  • WordPress version: 5.9.2
  • First release: Sep 30, 2014
  • Latest release: Oct 13, 2015
  • Number of updates: 82
  • Update frequency: every 4.6 days
  • Top authors: solweder (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 5,280 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/online-reservation/online-reservation.php+45
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼2.47MB] [CPU: ▼344.86ms] Passed 4 tests

Analyzing server-side resources used by Online Reservation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.90 ▼1.625.14 ▼44.87
Dashboard /wp-admin1.92 ▼1.494.36 ▼28.24
Posts /wp-admin/edit.php1.92 ▼1.725.08 ▼32.11
Add New Post /wp-admin/post-new.php1.92 ▼5.054.32 ▼1,274.20
Media Library /wp-admin/upload.php1.92 ▼1.383.95 ▼21.39
All Bookings /wp-admin/edit.php?post_type=olr_restaurant1.924.17
Settings /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting1.925.93

Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 62 new files
Database: 4 new tables, 4 new options
New tables
wp_olr_find_table_attempt
wp_olr_lockout_reservation
wp_olr_temporary_reservation_data
wp_olr_send_enquiry_attempt
New WordPress options
resto_thank_you_page_id
widget_olr_restaurant_widget
resto_thank_you_url
resto_reservation_page_id

Browser metrics Passed 4 tests

An overview of browser requirements for Online Reservation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲6415.75 ▲0.186.21 ▼0.382.27 ▼0.24
Dashboard /wp-admin2,929 ▲686.23 ▲0.07120.47 ▼18.44156.58 ▼7.33
Posts /wp-admin/edit.php2,725 ▲313.24 ▲0.0064.04 ▲1.19142.72 ▼2.84
Add New Post /wp-admin/post-new.php1,686 ▼2520.57 ▼0.19371.55 ▼99.28161.40 ▲1.09
Media Library /wp-admin/upload.php1,732 ▲345.54 ▲0.04137.96 ▼2.36186.55 ▲3.31
All Bookings /wp-admin/edit.php?post_type=olr_restaurant1,5223.2577.94133.57
Settings /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting4,3458.77171.82239.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/online-reservation/online-reservation.php+45
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_olr_lockout_reservation
    • wp_olr_temporary_reservation_data
    • wp_olr_send_enquiry_attempt
    • wp_olr_find_table_attempt
  • The uninstall procedure has failed, leaving 4 options in the database
    • widget_olr_restaurant_widget
    • resto_reservation_page_id
    • resto_thank_you_page_id
    • resto_thank_you_url

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+39
    Trying to access array offset on value of type bool
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/online-reservation.php+45
    date_default_timezone_set(): Timezone ID '' is invalid
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/online-reservation/check-admin-page.php+31
    Undefined index: page
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/check-admin-page.php+32
    Undefined index: tab
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Warning in wp-content/plugins/online-reservation/config.php+42
    A non-numeric value encountered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > User notice in wp-includes/functions.php+5768
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the all-admin-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/admin.php+180
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/online-reservation/check-admin-page.php+30
    Undefined index: post_type
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/admin.php+576
    Undefined variable: active_tab
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+54
    Undefined index: thank_you_page
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+68
    Undefined index: success_message
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+72
    Undefined index: failed_message
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+77
    Undefined index: help_promote_plugin
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+85
    Undefined index: reservation_length
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+95
    Undefined index: provide_other_time
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+107
    Undefined index: other_times
  • 33 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/general.php+147
    Undefined index: timezone
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+35
    Undefined index: open_time_monday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+39
    Undefined index: close_time_monday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+67
    Undefined index: day_off_monday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+35
    Undefined index: open_time_tuesday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+39
    Undefined index: close_time_tuesday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+67
    Undefined index: day_off_tuesday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+35
    Undefined index: open_time_wednesday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+39
    Undefined index: close_time_wednesday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+67
    Undefined index: day_off_wednesday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+35
    Undefined index: open_time_thursday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+39
    Undefined index: close_time_thursday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+67
    Undefined index: day_off_thursday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+35
    Undefined index: open_time_friday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+39
    Undefined index: close_time_friday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+67
    Undefined index: day_off_friday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+35
    Undefined index: open_time_saturday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+39
    Undefined index: close_time_saturday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+67
    Undefined index: day_off_saturday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+35
    Undefined index: open_time_sunday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+39
    Undefined index: close_time_sunday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+67
    Undefined index: day_off_sunday
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+85
    Undefined index: time_interval
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+105
    Undefined index: early_bookings
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/schedule.php+124
    Undefined index: late_bookings
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/table.php+24
    Undefined index: table_size
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/table.php+38
    Undefined index: one_total_table
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/table.php+43
    Undefined index: one_max_person_per_table
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/table.php+71
    Undefined index: many_type_of_table
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+93
    Undefined index: restaurant_name
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+96
    Undefined index: restaurant_address
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+99
    Undefined index: restaurant_city
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+102
    Undefined index: restaurant_state
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+105
    Undefined index: restaurant_zipcode
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+108
    Undefined index: restaurant_phone
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+111
    Undefined index: restaurant_fax
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+114
    Undefined index: restaurant_email
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+117
    Undefined index: restaurant_website
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+123
    Undefined index: restaurant_logo
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+132
    Undefined index: restaurant_image
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+140
    Undefined index: restaurant_offer_link
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+143
    Undefined index: restaurant_reservation_link
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+146
    Undefined index: restaurant_message
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+150
    Undefined index: restaurant_information
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+154
    Undefined index: restaurant_policies
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+158
    Undefined index: restaurant_facebook
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+162
    Undefined index: restaurant_twitter
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+165
    Undefined index: restaurant_google
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+168
    Undefined index: restaurant_linkedin
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+172
    Undefined index: restaurant_pinterest
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+176
    Undefined index: restaurant_youtube
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+180
    Undefined index: restaurant_footer
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+196
    Undefined index: confirmation_email
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+201
    Undefined index: confirmation_key
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+206
    Undefined index: confirmation_success_message
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+209
    Undefined index: confirmation_failed_message
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+225
    Undefined index: email_to_owner
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+229
    Undefined index: owner_email
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+233
    Undefined index: owner_email_subject
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+251
    Undefined index: email_to_customer
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/email.php+255
    Undefined index: customer_email_subject
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/captcha.php+35
    Undefined index: enable_captcha
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/captcha.php+40
    Undefined index: public_key
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/captcha.php+43
    Undefined index: private_key
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/captcha.php+51
    Undefined index: captcha_theme
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/captcha.php+56
    Undefined index: captcha_error_message
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/security.php+21
    Undefined index: reservation_time_needed
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/security.php+51
    Undefined index: max_find_table
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/security.php+63
    Undefined index: max_send_enquiry
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/security.php+76
    Undefined index: email_confirmation_length
    • > GET request to /wp-admin/edit.php?post_type=olr_restaurant&page=olr_restaurant_setting
    • > Notice in wp-content/plugins/online-reservation/restaurant reservation/admin/security.php+107
    Undefined index: lock_our_reservation

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/online-reservation/config.php on line 42
    • > PHP Notice
      Undefined index: post_type in wp-content/plugins/online-reservation/check-admin-page.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/online-reservation/check-admin-page.php:34
    • > PHP Notice
      Undefined index: page in wp-content/plugins/online-reservation/check-admin-page.php on line 31
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/online-reservation/config.php on line 34
    • > PHP Notice
      Undefined index: tab in wp-content/plugins/online-reservation/check-admin-page.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/online-reservation/config.php:149
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/online-reservation/config.php on line 38
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/online-reservation/config.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/online-reservation/online-reservation.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: reservation, bookings, restaurant reservation, online bookings, online reservations...

online-reservation/online-reservation.php Passed 13 tests

The entry point to "Online Reservation" version 1.7.2 is a PHP file that has certain tags in its header comment area
64 characters long description:
Allow you to manage and receive your business reservation online

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,446 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,0271,2694,601
CSS7112179796
SVG200583
JavaScript2206173466

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%