74% appointment

Code Review | Appointment booking for Next 7 Days.

WordPress plugin Appointment booking for Next 7 Days. scored74%from 54 tests.

About plugin

  • Plugin page: appointment
  • Plugin version: 4.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 27, 2022
  • Latest release: Sep 25, 2023
  • Number of updates: 4
  • Update frequency: every 114.3 days
  • Top authors: boffincoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /277 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.33MB] [CPU: ▼3.44ms] Passed 4 tests

This is a short check of server-side resources used by Appointment booking for Next 7 Days.
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3345.24 ▲9.56
Dashboard /wp-admin3.64 ▲0.3049.41 ▼11.18
Posts /wp-admin/edit.php3.69 ▲0.3452.54 ▲1.67
Add New Post /wp-admin/post-new.php6.22 ▲0.3487.31 ▼13.81
Media Library /wp-admin/upload.php3.56 ▲0.3444.04 ▲12.05
Delete Appointment /wp-admin/admin.php?page=appointment-delete3.5136.35
Appointments /wp-admin/admin.php?page=appointment3.5339.43
Settings /wp-admin/admin.php?page=appointment-basics3.5138.05

Server storage [IO: ▲0.42MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 5 new tables, 6 new options
New tables
wp_boffin_coders_appointment_user_information
wp_boffin_coders_appointment_booked
wp_boffin_coders_appointment_availability
wp_boffin_coders_appointment_data
wp_boffin_coders_appointment_styles
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Appointment booking for Next 7 Days.: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9314.15 ▼0.311.96 ▲0.5040.85 ▼1.66
Dashboard /wp-admin2,218 ▲445.64 ▲0.1186.42 ▼0.9735.96 ▼0.02
Posts /wp-admin/edit.php2,123 ▲231.98 ▲0.0435.57 ▼1.4831.82 ▼8.28
Add New Post /wp-admin/post-new.php1,544 ▲1823.05 ▲0.01616.84 ▼56.9058.18 ▼1.52
Media Library /wp-admin/upload.php1,423 ▲264.22 ▼0.0297.91 ▼6.1444.18 ▼0.04
Delete Appointment /wp-admin/admin.php?page=appointment-delete7792.0022.9720.75
Appointments /wp-admin/admin.php?page=appointment8122.0327.7231.46
Settings /wp-admin/admin.php?page=appointment-basics9552.0328.6333.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 5 tables
    • wp_boffin_coders_appointment_booked
    • wp_boffin_coders_appointment_data
    • wp_boffin_coders_appointment_styles
    • wp_boffin_coders_appointment_user_information
    • wp_boffin_coders_appointment_availability
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=appointment-delete
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'appointment_delete_single' not found or invalid function name
    • > GET request to /wp-admin/admin.php?page=appointment-basics
    • > Notice in wp-content/plugins/appointment/appointment.php+700
    Undefined variable: appoint_id

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Contributors: Contributors not specified
You can look at the official readme.txt

appointment/appointment.php 92% from 13 tests

"Appointment booking for Next 7 Days." version 4.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin5,417 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11,019593,880
CSS1224561,537

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions6
▷ Named functions6100.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
5 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/calendar.png9.99KB5.52KB▼ 44.75%
img/basic_info.png52.94KB26.20KB▼ 50.50%
img/time_Setting.png75.17KB29.25KB▼ 61.09%
img/booking popup.png26.75KB12.50KB▼ 53.26%
img/styles.png52.51KB26.13KB▼ 50.24%