90% kernel-booking

Code Review | Kernel Booking

WordPress plugin Kernel Booking scored 90% from 54 tests.

About plugin

  • Plugin page: kernel-booking
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Aug 27, 2019
  • Latest release: Apr 12, 2022
  • Number of updates: 5
  • Update frequency: every 192.6 days
  • Top authors: kerneldata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 769 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Kernel Booking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.31 ▼6.80
Dashboard /wp-admin3.31 ▲0.0153.21 ▲0.95
Posts /wp-admin/edit.php3.36 ▲0.0155.30 ▲3.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.36 ▼3.82
Media Library /wp-admin/upload.php3.23 ▲0.0147.87 ▲12.13

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Kernel Booking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.15 ▼0.114.79 ▲2.7140.92 ▼4.54
Dashboard /wp-admin2,209 ▲35.86 ▲0.0397.12 ▼8.2539.80 ▲2.03
Posts /wp-admin/edit.php2,089 ▼02.14 ▲0.1440.43 ▲3.9935.94 ▲0.56
Add New Post /wp-admin/post-new.php1,514 ▼2217.39 ▼5.73679.76 ▼7.3656.86 ▲6.39
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.01107.31 ▲1.3348.03 ▲1.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: booking, reservations, embed, hosted

kernel-booking/kernel-booking.php Passed 13 tests

The main PHP script in "Kernel Booking" version 1.0.3 is automatically included on every request by WordPress
53 characters long description:
Easily embed Kernel Booking into your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin36 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291536

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected