68% doctor-appointment-booking

Code Review | Doctor Appointment Booking

WordPress plugin Doctor Appointment Booking scored68%from 54 tests.

About plugin

  • Plugin page: doctor-appointmen...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2018
  • Latest release: Jan 18, 2018
  • Number of updates: 13
  • Update frequency: every 98.2 days
  • Top authors: creativeitem (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /8,682 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼8.79ms] Passed 4 tests

Server-side resources used by Doctor Appointment Booking
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2141.10 ▼2.54
Dashboard /wp-admin3.58 ▲0.2348.10 ▼17.90
Posts /wp-admin/edit.php3.63 ▲0.2757.33 ▲6.39
Add New Post /wp-admin/post-new.php6.10 ▲0.2189.33 ▼18.59
Media Library /wp-admin/upload.php3.44 ▲0.2138.01 ▲3.89
Appointments /wp-admin/admin.php?page=ctmdcd-manage-appointments3.4541.80
Prescription /wp-admin/admin.php?page=ctmdcd-manage-prescriptions3.4539.50
Patients /wp-admin/admin.php?page=ctmdcd-manage-patients3.4534.73
Billing /wp-admin/admin.php?page=ctmdcd-manage-billing3.4132.63
Settings /wp-admin/admin.php?page=ctmdcd-settings3.6237.51
Chambers /wp-admin/admin.php?page=ctmdcd-manage-chambers3.4534.60

Server storage [IO: ▲7.13MB] [DB: ▲0.02MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/doctor-appointment-booking/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 190 new files
Database: 6 new tables, 6 new options
New tables
wp_ctmdcd_settings
wp_ctmdcd_chamber
wp_ctmdcd_country
wp_ctmdcd_prescription
wp_ctmdcd_patient
wp_ctmdcd_appointment
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Doctor Appointment Booking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.20 ▼1.221.76 ▲0.0543.07 ▲2.63
Dashboard /wp-admin2,254 ▲475.79 ▼0.12102.27 ▼13.0839.57 ▼2.97
Posts /wp-admin/edit.php2,139 ▲362.05 ▲0.0440.60 ▲2.2336.89 ▲4.89
Add New Post /wp-admin/post-new.php1,589 ▲5818.13 ▼5.15628.89 ▼0.3478.82 ▲21.75
Media Library /wp-admin/upload.php1,439 ▲364.19 ▼0.06103.45 ▲1.1441.83 ▼2.12
Appointments /wp-admin/admin.php?page=ctmdcd-manage-appointments1,5314.1889.2074.83
Prescription /wp-admin/admin.php?page=ctmdcd-manage-prescriptions1,2883.5970.8845.91
Patients /wp-admin/admin.php?page=ctmdcd-manage-patients1,2303.3257.5932.48
Billing /wp-admin/admin.php?page=ctmdcd-manage-billing9032.7430.6225.09
Settings /wp-admin/admin.php?page=ctmdcd-settings2,0213.0143.3775.82
Chambers /wp-admin/admin.php?page=ctmdcd-manage-chambers9832.6930.4131.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 6 tables
    • wp_ctmdcd_chamber
    • wp_ctmdcd_patient
    • wp_ctmdcd_settings
    • wp_ctmdcd_country
    • wp_ctmdcd_prescription
    • wp_ctmdcd_appointment
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 50× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/doctor-appointment-booking/vendor/composer/autoload_psr4.php
    • > /wp-content/plugins/doctor-appointment-booking/inc/base/Activate.php
    • > /wp-content/plugins/doctor-appointment-booking/templates/section-appointment-list.php
    • > /wp-content/plugins/doctor-appointment-booking/inc/base/BaseController.php
    • > /wp-content/plugins/doctor-appointment-booking/templates/modal-chamber-edit.php
    • > /wp-content/plugins/doctor-appointment-booking/templates/blank-prescription-entry.php
    • > /wp-content/plugins/doctor-appointment-booking/templates/modal.php
    • > /wp-content/plugins/doctor-appointment-booking/inc/api/SettingsApi.php
    • > /wp-content/plugins/doctor-appointment-booking/templates/page-settings.php
    • > /wp-content/plugins/doctor-appointment-booking/templates/modal-prescription-view.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=ctmdcd-settings
    • > Network (severe)
    wp-content/plugins/doctor-appointment-booking/assets/images/preloader.gif - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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 require attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

doctor-appointment-booking/doctor-appointment-booking.php 92% from 13 tests

The principal PHP file in "Doctor Appointment Booking" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected52,187 lines of code in 159 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript684,1273,58827,237
CSS91,53528014,696
PHP515153374,039
SVG1002,671
Sass1434341,768
LESS1434441,758
JSON20018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.47
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods103
▷ Static methods3634.95%
▷ Public methods6866.02%
▷ Protected methods00.00%
▷ Private methods3533.98%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/jquery-ui/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%
assets/jquery-ui/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
assets/jquery-ui/images/ui-icons_cc0000_256x240.png4.57KB4.18KB▼ 8.43%
assets/jquery-ui/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
assets/jquery-ui/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%