56% alex-reservations

Code Review | WordPress Restaurant Bookings Plugin: Alex Reservations

WordPress plugin WordPress Restaurant Bookings Plugin: Alex Reservations scored56%from 54 tests.

About plugin

  • Plugin page: alex-reservations
  • Plugin version: 1.6.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 72
  • Update frequency: every 3.7 days
  • Top authors: alexreservations (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

60+ active /3,090 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲6.61MB] [CPU: ▲32.43ms] 75% from 4 tests

Analyzing server-side resources used by WordPress Restaurant Bookings Plugin: Alex Reservations
Please have a look at the following items
  • Extra RAM: The extra memory usage must be under 5MB (currently 6.61MB on /wp-admin/admin.php?page=admin-alex-reservations#/t/1/app/settings/general)
PageMemory (MB)CPU Time (ms)
Home /10.01 ▲6.5472.20 ▲26.88
Dashboard /wp-admin9.92 ▲6.6180.65 ▲29.26
Posts /wp-admin/edit.php10.03 ▲6.6796.51 ▲49.89
Add New Post /wp-admin/post-new.php12.91 ▲7.02125.97 ▲37.05
Media Library /wp-admin/upload.php9.84 ▲6.6173.93 ▲36.51
Reservations /wp-admin/admin.php?page=admin-alex-reservations9.7572.27

Server storage [IO: ▲12.44MB] [DB: ▲0.04MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 735 new files
Database: 30 new tables, 38 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Restaurant Bookings Plugin: Alex Reservations
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9214.70 ▲0.301.80 ▲0.1837.69 ▼7.86
Dashboard /wp-admin2,234 ▲605.57 ▼0.0894.14 ▼1.4241.82 ▼2.48
Posts /wp-admin/edit.php2,142 ▲422.02 ▲0.0238.31 ▼0.6634.78 ▲0.33
Add New Post /wp-admin/post-new.php1,557 ▲3122.05 ▼0.94621.54 ▲25.6654.17 ▼6.25
Media Library /wp-admin/upload.php1,442 ▲424.15 ▼0.0095.30 ▲1.6542.24 ▲1.88
Reservations /wp-admin/admin.php?page=admin-alex-reservations94613.90331.1123.53
Support /wp-admin/admin.php?page=admin-alex-reservations#/app/support94613.85309.328.97
Customers /wp-admin/admin.php?page=admin-alex-reservations#/t/1/customers/list94613.31119.809.64
Bookings /wp-admin/admin.php?page=admin-alex-reservations#/t/1/bookings/list94613.40113.289.57
Settings /wp-admin/admin.php?page=admin-alex-reservations#/t/1/app/settings/general94613.36118.098.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables detected upon uninstall: 30 tables
    • wp_srr_bookings
    • wp_srr_btaggroups
    • wp_srr_ctaggroups
    • wp_srr_combination_table
    • wp_srr_booking_meta
    • wp_srr_actions
    • wp_srr_user_meta
    • wp_srr_daily_notifications
    • wp_srr_notifications
    • wp_srr_restaurant_user
    • ...
  • This plugin did not uninstall successfully, leaving 38 options in the database
    • wp_srr_booking_notifications_db_version
    • wp_srr_booking_meta_db_version
    • wp_srr_booking_btag_db_version
    • wp_srr_booking_reviews_db_version
    • wp_srr_booking_table_db_version
    • wp_srr_ctags_db_version
    • can_compress_scripts
    • wp_srr_daily_notifications_db_version
    • wp_srr_user_meta_db_version
    • wp_srr_combination_table_db_version
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=admin-alex-reservations
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP 0% 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
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/alex-reservations/includes/dashboard/templates/email-layout/layout.php
    • > /wp-content/plugins/alex-reservations/includes/dashboard/templates/email-layout/logo/logo-image-only.php
    • > /wp-content/plugins/alex-reservations/includes/dashboard/templates/email-layout/logo/logo-image-with-link.php
  • 264× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Evavel\\Eva' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/bootstrap.php:24
    • > PHP Warning
      Use of undefined constant ALEXR_PLUGIN_DIR - assumed 'ALEXR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/alex-reservations/includes/framework/app-constants.php on line 19
    • > PHP Warning
      Use of undefined constant ALEXR_PLUGIN_DIR - assumed 'ALEXR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/alex-reservations/includes/framework/app-constants.php on line 21
    • > PHP Fatal error
      Trait 'Evavel\\Resources\\Traits\\ResolvesFields' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Resources/Resource.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'Evavel\\Http\\Controllers\\Controller' not found in wp-content/plugins/alex-reservations/includes/application/Alexr/Http/Controllers/CTagsController.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Evavel\\Http\\Controllers\\Controller' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Http/Controllers/ResourceIndexController.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Evavel\\Cards\\Element' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Cards/Card.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alex-reservations/includes/auto-update.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Evavel\\Resources\\Fields\\Text' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Resources/Fields/Number.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Evavel\\Http\\Request\\Request' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Http/Request/UpdateRequest.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 50 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=admin-alex-reservations#/t/1/app/settings/general
    • > Network (severe)
    wp-json/srr/v1/application/config - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can take inspiration from this readme.txt

alex-reservations/alex-reservations.php 92% from 13 tests

The principal PHP file in "WordPress Restaurant Bookings Plugin: Alex Reservations" v. 1.6.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin98,433 lines of code in 686 files:
LanguageFilesBlank linesComment linesLines of code
PO File63042156

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.51
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes155.30%
▷ Concrete classes26894.70%
▷ Final classes10.37%
▷ Static methods32114.51%
▷ Public methods1,93687.52%
▷ Protected methods26511.98%
▷ Private methods110.50%
▷ Named functions14251.82%
▷ Anonymous functions13248.18%
▷ Global constants3019.23%
▷ Class constants12680.77%
▷ Public constants126100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected