89% booking-commerce

Code Review | Booking Commerce - Online Booking and Appointment Scheduling Software

WordPress plugin Booking Commerce - Online Booking and Appointment Scheduling Software scored 89% from 54 tests.

About plugin

  • Plugin page: booking-commerce
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Apr 3, 2018
  • Latest release: Aug 20, 2019
  • Number of updates: 21
  • Update frequency: every 24.1 days
  • Top authors: uvdesk (100%)Otto42 (9.52%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼296.33ms] Passed 4 tests

A check of server-side resources used by Booking Commerce - Online Booking and Appointment Scheduling Software
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1053.42 ▲1.33
Dashboard /wp-admin3.45 ▲0.0433.36 ▼0.57
Posts /wp-admin/edit.php3.68 ▲0.0337.82 ▲0.03
Add New Post /wp-admin/post-new.php6.92 ▼0.0595.50 ▼1,184.41
Media Library /wp-admin/upload.php3.33 ▲0.0325.90 ▼0.38
Booking /wp-admin/options-general.php?page=booking-setting3.3024.14

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options
booking_link
widget_ex_widget

Browser metrics Passed 4 tests

Checking browser requirements for Booking Commerce - Online Booking and Appointment Scheduling Software
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4816.15 ▲0.166.42 ▲0.513.11 ▲0.24
Dashboard /wp-admin2,892 ▲316.11 ▼0.06122.41 ▼12.48237.58 ▲77.38
Posts /wp-admin/edit.php2,695 ▲13.23 ▼0.0163.62 ▼2.18199.52 ▲57.71
Add New Post /wp-admin/post-new.php1,762 ▲7222.05 ▲1.51482.47 ▲55.80157.30 ▲5.03
Media Library /wp-admin/upload.php1,702 ▲45.53 ▲0.01144.29 ▼2.30198.71 ▲9.47
Booking /wp-admin/options-general.php?page=booking-setting1,0352.3653.97161.30

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 2 options
    • booking_link
    • widget_ex_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #6 in booking-commerce/assets to your readme.txt
Please take inspiration from this readme.txt

booking-commerce/class-booking-commerce.php 85% from 13 tests

The main file in "Booking Commerce - Online Booking and Appointment Scheduling Software" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("booking-commerce.php" instead of "class-booking-commerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin145 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34185120
CSS10025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin