83% appointment-scheduling-and-booking-manager

Code Review | Appointment scheduling and Booking Manager

WordPress plugin Appointment scheduling and Booking Manager scored83%from 54 tests.

About plugin

  • Plugin page: appointment-sched...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Oct 24, 2016
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: parasagarwal (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /3,940 total downloads


Plugin footprint 83% 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.03MB] [CPU: ▼7.85ms] Passed 4 tests

A check of server-side resources used by Appointment scheduling and Booking Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.05 ▼1.72
Dashboard /wp-admin3.34 ▲0.0349.72 ▼6.07
Posts /wp-admin/edit.php3.39 ▲0.0347.22 ▼4.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.99 ▼19.10
Media Library /wp-admin/upload.php3.26 ▲0.0338.53 ▲0.79

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Appointment scheduling and Booking Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.44 ▲0.191.57 ▼0.3841.53 ▼2.73
Dashboard /wp-admin2,189 ▲155.50 ▼0.0886.93 ▼12.6643.22 ▼1.73
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0134.26 ▼1.0338.35 ▼2.23
Add New Post /wp-admin/post-new.php1,526 ▼1123.22 ▲5.18690.22 ▲43.7555.62 ▼16.19
Media Library /wp-admin/upload.php1,400 ▼34.13 ▼0.06107.48 ▲11.0847.32 ▲2.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPMailer' not found in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/PHPMailer/class.phpmaileroauth.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/ajax_handler.php:8
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/PHPMailer/get_oauth_token.php on line 6
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/appointment-scheduling-and-booking-manager/includes/PHPMailer/get_oauth_token.php on line 6

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

appointment-scheduling-and-booking-manager/eav_networks.php 85% from 13 tests

The principal PHP file in "Appointment scheduling and Booking Manager" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("appointment-scheduling-and-booking-manager.php" instead of "eav_networks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin8,261 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity50.62
▷ Minimum class complexity1.00
▷ Maximum class complexity403.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
▷ Static methods167.17%
▷ Public methods18281.61%
▷ Protected methods3314.80%
▷ Private methods83.59%
▷ Named functions39100.00%
▷ Anonymous functions00.00%
▷ Global constants730.43%
▷ Class constants1669.57%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png35.47KB14.42KB▼ 59.35%
assets/screenshot-3.png13.39KB5.23KB▼ 60.96%
includes/images/knobs/warning.png4.46KB1.51KB▼ 66.10%
assets/screenshot-6.png91.16KB36.54KB▼ 59.92%
includes/images/knobs/validation.png1.68KB1.09KB▼ 35.24%