56% appointment-buddy-online-appointment-booking-by-accrete

Code Review | Appointment Buddy Widget By Accrete

WordPress plugin Appointment Buddy Widget By Accrete scored 56% from 54 tests.

About plugin

  • Plugin page: appointment-buddy...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2017
  • Latest release: Sep 15, 2018
  • Number of updates: 15
  • Update frequency: every 37.6 days
  • Top authors: accreteinfosolution (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 3,486 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.22MB] [CPU: ▼2.26ms] Passed 4 tests

A check of server-side resources used by Appointment Buddy Widget By Accrete
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2148.01 ▲10.89
Dashboard /wp-admin3.52 ▲0.2245.43 ▼2.35
Posts /wp-admin/edit.php3.63 ▲0.2749.03 ▲0.26
Add New Post /wp-admin/post-new.php6.12 ▲0.2385.58 ▼4.68
Media Library /wp-admin/upload.php3.44 ▲0.2134.80 ▼2.27
Appointment Buddy   /wp-admin/admin.php?page=appointment-calendar3.4131.32
Appointment List /wp-admin/admin.php?page=view-booked-appointment-list3.4433.06
Settings /wp-admin/admin.php?page=appointment-buddy-settings3.4432.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: 6 new tables, 7 new options
New tables
wp_abTimeSlotMst
wp_abServiceMst
wp_abSlotMappingDetails
wp_abAdminProfileDetails
wp_abHolidayMst
wp_abAppointmentMst
New WordPress options
can_compress_scripts
widget_recent-posts
widget_appointment_buddy_widget
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Appointment Buddy Widget By Accrete
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲12214.64 ▲0.061.89 ▲0.2942.61 ▲2.24
Dashboard /wp-admin2,266 ▲786.07 ▲1.04109.11 ▲4.2740.67 ▼2.90
Posts /wp-admin/edit.php2,146 ▲572.75 ▲0.7340.02 ▲5.7534.70 ▲0.97
Add New Post /wp-admin/post-new.php1,564 ▲4523.68 ▲0.49616.84 ▼61.5133.85 ▼24.38
Media Library /wp-admin/upload.php1,445 ▲575.33 ▲1.12101.62 ▼7.7046.76 ▲1.21
Appointment Buddy   /wp-admin/admin.php?page=appointment-calendar1,3433.0466.8139.30
Appointment List /wp-admin/admin.php?page=view-booked-appointment-list1,0082.3634.9729.69
Settings /wp-admin/admin.php?page=appointment-buddy-settings3,6952.4656.0047.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_abServiceMst
    • wp_abSlotMappingDetails
    • wp_abHolidayMst
    • wp_abAdminProfileDetails
    • wp_abTimeSlotMst
    • wp_abAppointmentMst
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_appointment_buddy_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=appointment-buddy-settings
    • > Notice in wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/admin-general-profile.php+102
    Undefined offset: 0
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=appointment-buddy-settings
    • > Notice in wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/admin-general-profile.php+102
    Trying to access array offset on value of type null

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/appointment-buddy.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/includes/widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/includes/form.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/admin-team.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/includes/form.php on line 5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/includes/form.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=appointment-buddy-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'toString')" "TypeError: Cannot read properties of undefined (reading 'toString')\n at k (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/tabbed.min.js?ver=6.3.1:8:1025)\n at Object.w (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/tabbed.min.js?ver=6.3.1:8:1398)\n at Object.onInit (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/custom.js?ver=6.3.1:53:15)\n at v (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/tabbed.min.js?ver=6.3.1:8:2176)\n at new i (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/tabbed.min.js?ver=6.3.1:8:2630)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/tabbed.min.js?ver=6.3.1:8:2704)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at n.fn.tabbedContent (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/tabbed.min.js?ver=6.3.1:8:2682)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/appointment-buddy-online-appointment-booking-by-accrete/admctrlfd/js/custom.js?ver=6.3.1:45:37)" undefined
    • > GET request to /wp-admin/admin.php?page=appointment-buddy-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'toString')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

appointment-buddy-online-appointment-booking-by-accrete/appointment-buddy.php 92% from 13 tests

The primary PHP file in "Appointment Buddy Widget By Accrete" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("appointment-buddy-online-appointment-booking-by-accrete.php" instead of "appointment-buddy.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
There were no executable files found in this plugin4,310 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP153371192,805
CSS674221,056
JavaScript958360449

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.67
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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