83% bookedin-online-appointment-scheduling

Code Review | Bookedin Wordpress Appointment Scheduling Plugin

WordPress plugin Bookedin Wordpress Appointment Scheduling Plugin scored 83% from 54 tests.

About plugin

  • Plugin page: bookedin-online-a...
  • Plugin version: 7.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 5.9.2
  • First release: Jan 27, 2016
  • Latest release: Mar 30, 2022
  • Number of updates: 36
  • Update frequency: every 62.7 days
  • Top authors: BookedIN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,030 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼310.40ms] Passed 4 tests

This is a short check of server-side resources used by Bookedin Wordpress Appointment Scheduling Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.5867.63 ▲29.55
Dashboard /wp-admin3.56 ▲0.1555.26 ▲13.22
Posts /wp-admin/edit.php3.78 ▲0.1343.74 ▼7.89
Add New Post /wp-admin/post-new.php7.09 ▲0.11116.50 ▼1,241.10
Media Library /wp-admin/upload.php3.50 ▲0.2136.87 ▼5.82

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 1 new option
New WordPress options
widget_bookedinwidget

Browser metrics Passed 4 tests

Checking browser requirements for Bookedin Wordpress Appointment Scheduling Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,870 ▲11616.06 ▲0.579.13 ▼0.752.96 ▼1.00
Dashboard /wp-admin2,999 ▲806.72 ▲0.30191.15 ▼15.46203.41 ▼6.09
Posts /wp-admin/edit.php2,758 ▲403.47 ▲0.0579.04 ▼11.82174.97 ▼22.58
Add New Post /wp-admin/post-new.php1,721 ▲2618.92 ▼1.84604.93 ▼79.69217.79 ▼13.28
Media Library /wp-admin/upload.php1,767 ▲376.05 ▲0.29181.61 ▼15.45268.25 ▲13.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_bookedinwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/metabox-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/button-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/step-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/step-button.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/step-login.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/step-logout.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/step-selection.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/button-preview.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bookedin-online-appointment-scheduling/admin/partials/widget-display.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: scheduling, appointment booking, booking calendar, booking system, appointment

bookedin-online-appointment-scheduling/bookedin.php 85% from 13 tests

The primary PHP file in "Bookedin Wordpress Appointment Scheduling Plugin" version 7.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bookedin-online-appointment-scheduling.php" instead of "bookedin.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,017 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63832602,107
CSS212838933
PHP27154360923
SVG22054

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.13
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods65
▷ Static methods46.15%
▷ Public methods5889.23%
▷ Protected methods00.00%
▷ Private methods710.77%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.90MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png519.11KB194.00KB▼ 62.63%
assets/screenshot-4.png41.63KB21.62KB▼ 48.05%
assets/icon-256x256.png8.81KB4.20KB▼ 52.32%
assets/screenshot-3.png37.97KB13.66KB▼ 64.02%
assets/banner-772x250.png152.34KB55.67KB▼ 63.46%