99% booking-system-bok-to

Code Review | Booking System - bok.to

WordPress plugin Booking System - bok.to scored 99% from 54 tests.

About plugin

  • Plugin page: booking-system-bo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.1-5.6.1
  • WordPress version: 5.8.1
  • First release: Feb 25, 2021
  • Latest release: Feb 25, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: getreveltd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 132 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼140.42ms] Passed 4 tests

This is a short check of server-side resources used by Booking System - bok.to
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.2043.92 ▲8.94
Dashboard /wp-admin3.26 ▲0.2046.14 ▲1.03
Posts /wp-admin/edit.php3.35 ▲0.2446.25 ▲2.08
Add New Post /wp-admin/post-new.php5.62 ▲0.1886.53 ▼566.09
Media Library /wp-admin/upload.php3.21 ▲0.2033.43 ▲1.31
Calendar /wp-admin/admin.php?page=calendar3.1730.88
Bookings /wp-admin/admin.php?page=bookings3.1732.17
Services /wp-admin/admin.php?page=services3.1728.32
Configuration /wp-admin/admin.php?page=bokto-config3.1726.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Booking System - bok.to
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,741 ▲14516.00 ▲0.419.11 ▼0.7352.50 ▲5.63
Dashboard /wp-admin3,012 ▲815.94 ▲0.00135.29 ▼11.86107.82 ▼8.40
Posts /wp-admin/edit.php2,778 ▲392.72 ▲0.0170.42 ▲3.8695.69 ▲1.27
Add New Post /wp-admin/post-new.php1,697 ▲1418.72 ▼0.03364.84 ▼14.06107.20 ▲0.57
Media Library /wp-admin/upload.php1,849 ▲425.03 ▲0.02136.18 ▼9.43115.98 ▼6.40
Calendar /wp-admin/admin.php?page=calendar1,0312.0854.6356.23
Bookings /wp-admin/admin.php?page=bookings1,0342.0952.5059.28
Services /wp-admin/admin.php?page=services1,0332.0953.7458.27
Configuration /wp-admin/admin.php?page=bokto-config1,1262.0952.7657.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

booking-system-bok-to/bok_sys.php 69% from 13 tests

The main PHP script in "Booking System - bok.to" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("booking-system-bok-to.php" instead of "bok_sys.php")
  • 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
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.6.1")
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist

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 plugin1,558 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP9259271,246
CSS2501281
JavaScript26031

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin