72% booqable-rental-reservations

Code Review | Booqable Rental Plugin

WordPress plugin Booqable Rental Plugin scored72%from 54 tests.

About plugin

  • Plugin page: booqable-rental-r...
  • Plugin version: 2.4.16
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2015
  • Latest release: Sep 18, 2023
  • Number of updates: 55
  • Update frequency: every 54.2 days
  • Top authors: Booqable Rental Software (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /26,795 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼4.37MB] [CPU: ▼881,139.32ms] Passed 4 tests

Server-side resources used by Booqable Rental Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0348.60 ▲5.54
Dashboard /wp-admin3.38 ▼17.5848.63 ▼3,524,555.78
Posts /wp-admin/edit.php3.50 ▲0.1053.69 ▲4.30
Add New Post /wp-admin/post-new.php5.97 ▲0.0396.73 ▼8.24
Media Library /wp-admin/upload.php3.31 ▲0.0338.74 ▲2.43
Booqable /wp-admin/options-general.php?page=Booqable3.2835.06

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Booqable Rental Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.09 ▼0.261.86 ▼0.0441.50 ▼2.74
Dashboard /wp-admin2,193 ▲255.60 ▲0.0291.88 ▼12.4345.79 ▲1.44
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0439.26 ▲0.8538.88 ▲5.12
Add New Post /wp-admin/post-new.php1,529 ▲223.17 ▼0.15657.45 ▲13.0255.56 ▲1.93
Media Library /wp-admin/upload.php1,404 ▲74.18 ▼0.02102.76 ▲0.8746.72 ▲3.64
Booqable /wp-admin/options-general.php?page=Booqable9122.1723.5830.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Booqable
    • > Notice in wp-content/plugins/booqable-rental-reservations/admin/booqable_admin.php+2
    Undefined index: booqable_hidden
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Booqable
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Booqable
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/booqable-rental-reservations/admin/booqable_notice.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/booqable-rental-reservations/admin/booqable_admin.php:11
    • > PHP Notice
      Undefined index: booqable_hidden in wp-content/plugins/booqable-rental-reservations/admin/booqable_admin.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === booqable-rental-reservations === )
Please take inspiration from this readme.txt

booqable-rental-reservations/booqable.php 92% from 13 tests

The main PHP script in "Booqable Rental Plugin" version 2.4.16 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("booqable-rental-reservations.php" instead of "booqable.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin354 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45360231
Bourne Shell13945110
CSS13013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.71MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png17.85KB6.97KB▼ 60.92%
assets/banner-772x250-rtl.png90.43KB35.18KB▼ 61.09%
assets/banner-772x250.png90.43KB35.18KB▼ 61.09%
assets/banner-1544x500-rtl.png255.91KB94.56KB▼ 63.05%
assets/icon-128x128.png3.84KB1.97KB▼ 48.57%