77% all-in-one-reservation

Code Review | All in One Reservation

WordPress plugin All in One Reservation scored77%from 54 tests.

About plugin

  • Plugin page: all-in-one-reserv...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2022
  • Latest release: Apr 5, 2023
  • Number of updates: 7
  • Update frequency: every 20.1 days
  • Top authors: solwininfotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.50MB] [CPU: ▲6.25ms] Passed 4 tests

Server-side resources used by All in One Reservation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.95 ▲1.4945.75 ▲9.91
Dashboard /wp-admin4.81 ▲1.5159.01 ▲17.56
Posts /wp-admin/edit.php4.92 ▲1.5767.09 ▲22.19
Add New Post /wp-admin/post-new.php7.41 ▲1.5289.85 ▼21.49
Media Library /wp-admin/upload.php4.70 ▲1.4853.65 ▲19.01
Reservations /wp-admin/admin.php?page=aior4.7152.65
Reservation Forms /wp-admin/edit.php?post_type=sol_reservation_form4.7848.33
Add New Form /wp-admin/post-new.php?post_type=sol_reservation_form4.9055.57
Appointment List /wp-admin/edit.php?post_type=sol_appointment_list4.7847.86
Add-On /wp-admin/admin.php?page=aior_add_on4.7146.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2,067 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
aior_pay
widget_aior_appointment_widget
aior_new_appointment_notification
widget_recent-posts
aior_cancel
aior_payment_success
...

Browser metrics Passed 4 tests

An overview of browser requirements for All in One Reservation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,211 ▲46517.37 ▲2.7614.47 ▲12.7341.56 ▲2.32
Dashboard /wp-admin2,454 ▲2657.21 ▲2.16147.85 ▲21.3038.86 ▼7.60
Posts /wp-admin/edit.php2,374 ▲2824.94 ▲2.9277.97 ▲42.3333.49 ▲2.29
Add New Post /wp-admin/post-new.php6,417 ▲4,87526.51 ▲8.19958.86 ▲347.9438.91 ▼30.07
Media Library /wp-admin/upload.php1,507 ▲1255.99 ▲1.7594.86 ▼5.2741.73 ▼2.78
Reservations /wp-admin/admin.php?page=aior1,7066.25200.0848.21
Reservation Forms /wp-admin/edit.php?post_type=sol_reservation_form1,3334.5565.4330.21
Add New Form /wp-admin/post-new.php?post_type=sol_reservation_form5,08610.56298.16171.34
Appointment List /wp-admin/edit.php?post_type=sol_appointment_list1,3654.8462.7028.86
Add-On /wp-admin/admin.php?page=aior_add_on1,2844.5356.6668.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 11 options
    • aior_new_appointment_notification
    • widget_theysaidso_widget
    • widget_aior_appointment_widget
    • aior_cancel
    • theysaidso_admin_options
    • widget_recent-comments
    • aior_payment_success
    • db_upgraded
    • aior_pay
    • can_compress_scripts
    • ...

Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/all-in-one-reservation/public/partials/aior-public-display.php
    • > /wp-content/plugins/all-in-one-reservation/admin/partials/aior-admin-display.php
  • 1917× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesInstance.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Supersim/V1/NetworkInstance.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\TwiML\\TwiML' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/TwiML/Voice/Sms.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptInstance.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionPage.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberInstance.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Chat/V2/Service/RolePage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Insights/V1/CallInstance.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/all-in-one-reservation/admin/vendors/twilio/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnContext.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

all-in-one-reservation/all-in-one-reservation.php 85% from 13 tests

The main PHP file in "All in One Reservation" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
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
  • Description: Keep the plugin description shorter than 140 characters (currently 249 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin109,399 lines of code in 2,010 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,96026,872110,53198,360
JavaScript163742576,672
CSS26677884,143
JSON300109
Markdown331096
XML10011
Dockerfile1308

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.66
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces194
Interfaces2
Traits0
Classes2,418
▷ Abstract classes27011.17%
▷ Concrete classes2,14888.83%
▷ Final classes10.05%
Methods13,188
▷ Static methods5854.44%
▷ Public methods11,85889.92%
▷ Protected methods1,3149.96%
▷ Private methods160.12%
Functions138
▷ Named functions64.35%
▷ Anonymous functions13295.65%
Constants20
▷ Global constants525.00%
▷ Class constants1575.00%
▷ Public constants1386.67%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
40 PNG files occupy 0.73MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
appointment-booking/src/thumb/f2.png4.54KB2.24KB▼ 50.71%
src/bank_transfer.png7.50KB4.50KB▼ 39.99%
appointment-booking/src/thumb/Images/c8.png20.43KB6.30KB▼ 69.19%
appointment-booking/src/thumb/f3.png7.04KB2.59KB▼ 63.18%
appointment-booking/src/thumb/light2.png8.52KB2.07KB▼ 75.70%