64% a-booking-system

Code Review | A+ Booking System - A+ booking calendar

WordPress plugin A+ Booking System - A+ booking calendar scored 64% from 54 tests.

About plugin

  • Plugin page: a-booking-system
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 5.9.2
  • First release: Oct 20, 2019
  • Latest release: Jun 28, 2020
  • Number of updates: 128
  • Update frequency: every 2.0 days
  • Top authors: abookingsystem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 8,147 total downloads


Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼298.29ms] Passed 4 tests

An overview of server-side resources used by A+ Booking System - A+ booking calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.09 ▲1.5789.90 ▲9.27
Dashboard /wp-admin4.41 ▲1.0057.57 ▲17.36
Posts /wp-admin/edit.php4.41 ▲0.7748.69 ▲8.08
Add New Post /wp-admin/post-new.php4.41 ▼2.5649.31 ▼1,223.36
Media Library /wp-admin/upload.php4.41 ▲1.1240.92 ▲12.85

Server storage [IO: ▲3.11MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 126 new files
Database: 7 new tables, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

A+ Booking System - A+ booking calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,629 ▲87521.06 ▲5.3045.89 ▲38.8523.06 ▲20.31
Dashboard /wp-admin3,122 ▲2647.59 ▲1.40123.13 ▼20.04161.07 ▼3.40
Posts /wp-admin/edit.php2,931 ▲2404.41 ▲1.1776.22 ▲8.72165.46 ▲12.98
Add New Post /wp-admin/post-new.php1,898 ▲14122.01 ▲0.03365.24 ▼69.29203.53 ▲41.04
Media Library /wp-admin/upload.php1,945 ▲2536.89 ▲1.37124.30 ▼22.55180.33 ▼16.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/functions.php+6821
    Cannot modify header information - headers already sent by (output started at wp-includes/wp-db.php:1612)
  • The uninstall procedure failed, leaving 7 tables in the database
    • wp_bmd_options
    • wp_bmd_tickets
    • wp_bmd_listings
    • wp_bmd_calendars
    • wp_bmd_withdraws
    • wp_bmd_invoices
    • wp_bmd_stats
  • Zombie WordPress options detected upon uninstall: 1 option
    • wpaplusbookingsystem_activation

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'option' of non-object in wp-content/plugins/a-booking-system/views/header.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/a-booking-system/views/header-frontend.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/a-booking-system/views/header.php:7
    • > PHP Notice
      Trying to get property 'option' of non-object in wp-content/plugins/a-booking-system/views/header-frontend.php on line 7

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: A description for screenshot #4 is missing in a-booking-system/assets to your readme.txt
  • Tags: There are too many tags (99 tag instead of maximum 10)
Please take inspiration from this readme.txt

a-booking-system/a-booking-system.php Passed 13 tests

"A+ Booking System - A+ booking calendar" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
This WordPress Plugin will allow you to use the Book Everything Unlimited's booking services.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin41,257 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity28.66
▷ Minimum class complexity2.00
▷ Maximum class complexity179.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods213100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
13 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
designs/default/images/delete-icon.png1.01KB0.18KB▼ 82.44%
designs/default/images/get-code-icon.png1.03KB0.20KB▼ 80.82%
libs/css/calendar/sprite.png1.24KB0.36KB▼ 71.07%
libs/css/images/ui-icons_777620_256x240.png4.52KB4.18KB▼ 7.58%
libs/css/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%