10% appointy-appointment-scheduler

Code Review | WordPress Appointment Booking and Online Scheduling Plugin by Appointy

WordPress plugin WordPress Appointment Booking and Online Scheduling Plugin by Appointy scored10%from 54 tests.

About plugin

  • Plugin page: appointy-appointm...
  • Plugin version: 4.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Dec 20, 2008
  • Latest release: Jul 23, 2021
  • Number of updates: 119
  • Update frequency: every 38.7 days
  • Top authors: nemeshsingh (84.03%)appointy (16.81%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /121,981 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▼1.77MB] [CPU: ▼50.78ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Appointment Booking and Online Scheduling Plugin by Appointy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.236.55 ▼30.68
Dashboard /wp-admin2.25 ▼1.097.86 ▼48.16
Posts /wp-admin/edit.php2.25 ▼1.117.44 ▼44.49
Add New Post /wp-admin/post-new.php2.25 ▼3.648.54 ▼79.80
Media Library /wp-admin/upload.php2.25 ▼0.988.44 ▼26.27

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WordPress Appointment Booking and Online Scheduling Plugin by Appointy: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17914.73 ▲0.381.84 ▲0.1043.28 ▼1.52
Dashboard /wp-admin2,242 ▲655.79 ▲0.15104.61 ▲17.4747.59 ▲7.84
Posts /wp-admin/edit.php2,159 ▲592.29 ▲0.3437.75 ▲2.8338.58 ▲4.07
Add New Post /wp-admin/post-new.php1,425 ▼11021.64 ▲3.56565.71 ▼45.5339.79 ▼29.12
Media Library /wp-admin/upload.php1,453 ▲564.43 ▲0.2999.33 ▼3.4049.22 ▲3.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/appointy-appointment-scheduler/admin/class-appointy-appointment-scheduler-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/appointy-appointment-scheduler/admin/class-appointy-appointment-scheduler-ajax.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 158 tag instead of maximum 10
Please take inspiration from this readme.txt

appointy-appointment-scheduler/appointy-appointment-scheduler.php 77% from 13 tests

Analyzing the main PHP file in "WordPress Appointment Booking and Online Scheduling Plugin by Appointy" version 4.2.1
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,385 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP102834531,088
CSS4176851,014
JavaScript32613206
Markdown124077

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity14.67
▷ Minimum class complexity2.00
▷ Maximum class complexity35.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods67
▷ Static methods00.00%
▷ Public methods6191.04%
▷ Protected methods00.00%
▷ Private methods68.96%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/google.png7.82KB8.10KB0.00%
admin/img/play-button.png0.82KB0.50KB▼ 38.68%
admin/img/captura.png8.41KB8.79KB0.00%
admin/img/crowd.png9.03KB9.40KB0.00%
public/img/scheduleme.png6.48KB2.96KB▼ 54.38%