89% bookingit-booking-system

Code Review | BookingIt - Booking System

WordPress plugin BookingIt - Booking System scored89%from 54 tests.

About plugin

  • Plugin page: bookingit-booking...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2023
  • Latest release: Apr 2, 2023
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: bookingit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /145 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.05MB] [CPU: ▼5.67ms] Passed 4 tests

An overview of server-side resources used by BookingIt - Booking System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.92 ▼0.33
Dashboard /wp-admin3.36 ▲0.0555.32 ▼7.25
Posts /wp-admin/edit.php3.41 ▲0.0559.10 ▼2.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.71 ▼12.42
Media Library /wp-admin/upload.php3.28 ▲0.0541.05 ▲2.22

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
abl_bookingit_version

Browser metrics Passed 4 tests

BookingIt - Booking System: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.18 ▼1.224.74 ▲3.0535.16 ▼8.28
Dashboard /wp-admin2,215 ▲305.94 ▲1.10104.14 ▼12.9238.90 ▼6.49
Posts /wp-admin/edit.php2,101 ▲122.02 ▼0.0435.62 ▼2.4330.92 ▼6.14
Add New Post /wp-admin/post-new.php1,557 ▲2718.28 ▼0.03614.43 ▼32.5973.94 ▲25.81
Media Library /wp-admin/upload.php1,400 ▲184.28 ▲0.0193.90 ▼4.6440.29 ▼0.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: booking management, restaurant management, free booking form, restaurant booking, reservation system...

bookingit-booking-system/bookingit.php 85% from 13 tests

The principal PHP file in "BookingIt - Booking System" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bookingit-booking-system.php" instead of "bookingit.php")

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
Everything looks great! No dangerous files found in this plugin271 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP870244222
CSS17034
JavaScript15015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png99.56KB29.21KB▼ 70.66%