84% online-booking-assistant-helper

Code Review | Online Booking Assistant Helper

WordPress plugin Online Booking Assistant Helper scored84%from 54 tests.

About plugin

  • Plugin page: online-booking-as...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jan 29, 2013
  • Latest release: Nov 2, 2017
  • Number of updates: 12
  • Update frequency: every 144.8 days
  • Top authors: gdrayson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,160 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.71ms] Passed 4 tests

Server-side resources used by Online Booking Assistant Helper
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.21 ▼3.42
Dashboard /wp-admin3.32 ▲0.0242.84 ▼5.84
Posts /wp-admin/edit.php3.37 ▲0.0246.14 ▼1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.79 ▼12.22
Media Library /wp-admin/upload.php3.24 ▲0.0233.51 ▼1.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Online Booking Assistant Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.19 ▼1.184.36 ▲2.7637.74 ▲1.17
Dashboard /wp-admin2,222 ▲344.86 ▼0.04115.16 ▲13.0842.08 ▼0.37
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0532.94 ▼11.3432.64 ▼4.19
Add New Post /wp-admin/post-new.php1,555 ▲4118.19 ▲0.65641.45 ▼56.2451.39 ▼6.12
Media Library /wp-admin/upload.php1,404 ▲194.22 ▲0.0199.38 ▼1.8640.82 ▼4.14

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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 | 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-booking-assistant-helper/online_booking_assistant_helper.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
6 plugin tags: assistant, online, auto responder, contact form, online booking assistant...

online-booking-assistant-helper/online_booking_assistant_helper.php 92% from 13 tests

The main PHP script in "Online Booking Assistant Helper" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("online-booking-assistant-helper.php" instead of "online_booking_assistant_helper.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1251162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
settings-header.png12.12KB5.13KB▼ 57.65%