83% appointment-booking-for-salon-and-spa

Code Review | Appointment booking widget for salons and SPA

WordPress plugin Appointment booking widget for salons and SPA scored 83% from 54 tests.

About plugin

  • Plugin page: appointment-booki...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 5.9.2
  • First release: Jan 24, 2019
  • Latest release: Jan 24, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: nestorknf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Appointment booking widget for salons and SPA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0763.68 ▲14.02
Dashboard /wp-admin3.45 ▲0.0533.86 ▲1.73
Posts /wp-admin/edit.php3.69 ▲0.0536.01 ▲0.07
Add New Post /wp-admin/post-new.php6.93 ▼0.0491.14 ▼1,174.47
Media Library /wp-admin/upload.php3.34 ▲0.0525.84 ▲2.52
BloknotApp widget /wp-admin/options-general.php?page=bloknot_settings3.3123.05

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 3 new options
New WordPress options
blknt_buttoncolor
blknt_widgetlink
blknt_widgetposition

Browser metrics Passed 4 tests

This is an overview of browser requirements for Appointment booking widget for salons and SPA
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /593 ▼3,1555.21 ▼10.425.94 ▼0.6814.27 ▲12.09
Dashboard /wp-admin2,899 ▲416.16 ▲0.01115.64 ▼28.51151.76 ▼10.95
Posts /wp-admin/edit.php2,695 ▲13.23 ▲0.0066.74 ▲2.94146.14 ▲9.78
Add New Post /wp-admin/post-new.php1,763 ▲10222.04 ▲5.95443.22 ▲50.61154.68 ▲2.03
Media Library /wp-admin/upload.php1,708 ▲105.55 ▲0.03140.64 ▲6.69184.55 ▼1.97
BloknotApp widget /wp-admin/options-general.php?page=bloknot_settings1,1222.3954.78124.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 3 options in the database
    • blknt_buttoncolor
    • blknt_widgetposition
    • blknt_widgetlink

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/appointment-booking-for-salon-and-spa/bloknot-booking.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: booking, clinics, spa, bloknotapp, online-booking...

appointment-booking-for-salon-and-spa/bloknot-booking.php 77% from 13 tests

Analyzing the main PHP file in "Appointment booking widget for salons and SPA" version 1.0
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("appointment-booking-for-salon-and-spa.php" instead of "bloknot-booking.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 229 characters long)

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 plugin654 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS2673331
PO File24646166
PHP11316119
JavaScript12024
HTML12013
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin