78% fastbook-responsive-appointment-booking-and-scheduling-system

Code Review | FastBook - Responsive Appointment Booking and Scheduling System

WordPress plugin FastBook - Responsive Appointment Booking and Scheduling System scored 78% from 54 tests.

About plugin

  • Plugin page: fastbook-responsi...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Jun 6, 2014
  • Latest release: Nov 26, 2016
  • Number of updates: 23
  • Update frequency: every 39.4 days
  • Top authors: fasterthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 10,552 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.58ms] Passed 4 tests

Server-side resources used by FastBook - Responsive Appointment Booking and Scheduling System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.71 ▼1.90
Dashboard /wp-admin3.33 ▲0.0347.66 ▼2.41
Posts /wp-admin/edit.php3.38 ▲0.0356.20 ▲10.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.60 ▼8.75
Media Library /wp-admin/upload.php3.25 ▲0.0334.61 ▲2.75
FastBook Settings /wp-admin/admin.php?page=fastbook-responsive-appointment-booking-and-scheduling-system/fastbook.php3.2231.98
Appointments List /wp-admin/admin.php?page=appointments3.2235.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 2 new tables, 6 new options
New tables
wp_booked_appointments
wp_appointment_settings
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by FastBook - Responsive Appointment Booking and Scheduling System
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲20713.60 ▼0.719.96 ▲8.2969.17 ▲26.47
Dashboard /wp-admin2,227 ▲395.83 ▲0.76116.10 ▲7.4543.30 ▲0.94
Posts /wp-admin/edit.php2,116 ▲242.02 ▲0.0341.99 ▲5.3934.85 ▲3.53
Add New Post /wp-admin/post-new.php1,556 ▲3623.18 ▲0.05614.10 ▼5.7848.92 ▼11.94
Media Library /wp-admin/upload.php1,415 ▲334.20 ▲0.0297.48 ▼6.7441.75 ▼5.01
FastBook Settings /wp-admin/admin.php?page=fastbook-responsive-appointment-booking-and-scheduling-system/fastbook.php9232.0222.3927.14
Appointments List /wp-admin/admin.php?page=appointments8412.0628.8427.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=fastbook-responsive-appointment-booking-and-scheduling-system/fastbook.php
    • > Notice in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/settings.php+37
    Undefined index: update_lable

SRP 50% from 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
The following issues need your attention
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/settings.php:20
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/createtable.php on line 21
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/createtable.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/viewform.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/fastbook.php:13
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/listdata.php:5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/createtable.php on line 21
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/createtable.php on line 9
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/settings.php on line 19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fastbook-responsive-appointment-booking-and-scheduling-system/createtable.php on line 21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: online appointment scheduling system, wordpress online appointment scheduling system, scheduling plugin, appointment booking plugin, online appointment booking...

fastbook-responsive-appointment-booking-and-scheduling-system/fastbook.php 92% from 13 tests

The primary PHP file in "FastBook - Responsive Appointment Booking and Scheduling System" version 1.1 is used by WordPress to initiate all plugin functionality
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 ("fastbook-responsive-appointment-booking-and-scheduling-system.php" instead of "fastbook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,681 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript293421,074
CSS2102358
PHP52610249

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected