Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/gs-scheduling/gs-scheduling.php+24
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼2.53MB] [CPU: ▼343.25ms] Passed 4 tests
A check of server-side resources used by Schedules and Appointments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.67 | 4.61 ▼45.57 |
Dashboard /wp-admin | 1.86 ▼1.55 | 4.37 ▼28.83 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 5.44 ▼30.24 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 4.18 ▼1,268.36 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 3.70 ▼20.63 |
Event-Bookings /wp-admin/admin.php?page=gs_scheduling_bookings_settings | 1.86 | 5.37 |
Ticket-Entries /wp-admin/admin.php?page=gs_scheduling_ticket_entries_settings | 1.86 | 4.21 |
Dates Closed /wp-admin/admin.php?page=gs_scheduling_date_closed_settings | 1.86 | 4.77 |
Ticket-Bookings /wp-admin/admin.php?page=gs_scheduling_ticket_bookings_settings | 1.86 | 4.04 |
Schedule-Entries /wp-admin/admin.php?page=gs_scheduling_schedule_entries_settings | 1.86 | 4.52 |
Schedule /wp-admin/admin.php?page=gs_scheduling_general_settings | 1.86 | 4.09 |
Contact Messages /wp-admin/admin.php?page=gs_scheduling_contact_message_settings | 1.86 | 4.75 |
Server storage [IO: ▲0.47MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 54 new files
Database: 6 new tables, 1 new option
New tables |
---|
wp_gs_dates_closed |
wp_gs_contact_messages |
wp_gs_tickets |
wp_gs_event_booking |
wp_gs_ticket_bookings |
wp_gs_schedule |
New WordPress options |
---|
gs_scheduling_general_options |
Browser metrics Passed 4 tests
Schedules and Appointments: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,199 ▲455 | 18.20 ▲2.55 | 10.15 ▲4.45 | 2.34 ▲0.07 |
Dashboard /wp-admin | 3,178 ▲317 | 8.41 ▲2.27 | 144.68 ▲16.61 | 169.63 ▲7.23 |
Posts /wp-admin/edit.php | 3,010 ▲316 | 5.08 ▲1.84 | 93.33 ▲31.33 | 143.55 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,729 ▼23 | 15.51 ▼6.01 | 367.93 ▼96.48 | 150.10 ▼7.13 |
Media Library /wp-admin/upload.php | 1,792 ▲91 | 5.93 ▲0.40 | 107.53 ▼33.56 | 182.61 ▼3.37 |
Event-Bookings /wp-admin/admin.php?page=gs_scheduling_bookings_settings | 1,561 | 4.85 | 69.21 | 100.28 |
Ticket-Entries /wp-admin/admin.php?page=gs_scheduling_ticket_entries_settings | 1,583 | 5.08 | 69.70 | 113.74 |
Dates Closed /wp-admin/admin.php?page=gs_scheduling_date_closed_settings | 1,569 | 5.08 | 70.05 | 112.00 |
Ticket-Bookings /wp-admin/admin.php?page=gs_scheduling_ticket_bookings_settings | 1,669 | 4.87 | 70.33 | 96.21 |
Schedule-Entries /wp-admin/admin.php?page=gs_scheduling_schedule_entries_settings | 1,736 | 5.14 | 71.91 | 112.17 |
Schedule /wp-admin/admin.php?page=gs_scheduling_general_settings | 1,890 | 4.87 | 68.10 | 123.97 |
Contact Messages /wp-admin/admin.php?page=gs_scheduling_contact_message_settings | 1,631 | 4.85 | 74.49 | 110.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/gs-scheduling/gs-scheduling.php+24
date_default_timezone_set(): Timezone ID '' is invalid
Smoke tests 50% 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
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gs_scheduling_contact_message_settings
- > Notice in wp-content/plugins/gs-scheduling/gs-scheduling.php+24
date_default_timezone_set(): Timezone ID '' is invalid
- 42 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gs_scheduling_contact_message_settings
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gs_scheduling_contact_message_settings
- > Notice in wp-content/plugins/gs-scheduling/gs-scheduling-admin-main.php+250
Undefined variable: schedule_warning_underbooked
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gs_scheduling_ticket_bookings_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/bookings/gs-scheduling-ticket-bookings-list-table.php+186
Undefined index: active-bookings
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gs_scheduling_contact_message_settings
- > User notice in wp-includes/functions.php+5768
wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (1) for the number of arguments passed (2). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gs_scheduling_general_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/general-settings/gs-scheduling-admin-general-settings.php+74
Undefined index: action
- > GET request to /wp-admin/admin.php?page=gs_scheduling_date_closed_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/dates-closed/gs-scheduling-admin-date-closed-settings.php+60
Undefined index: action-date-closed
- > GET request to /wp-admin/admin.php?page=gs_scheduling_date_closed_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/dates-closed/gs-scheduling-date-closed-list-table.php+107
Undefined variable: orderby_1
- > GET request to /wp-admin/admin.php?page=gs_scheduling_ticket_bookings_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/bookings/gs-scheduling-admin-ticket-bookings.php+18
Undefined index: page
- > GET request to /wp-admin/admin.php?page=gs_scheduling_general_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/general-settings/gs-scheduling-admin-general-settings.php+424
Undefined index: warning_underbooked_email
- > GET request to /wp-admin/admin.php?page=gs_scheduling_general_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/general-settings/gs-scheduling-admin-general-settings.php+433
Undefined index: warning_underbooked_schedule
- > GET request to /wp-admin/admin.php?page=gs_scheduling_general_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/general-settings/gs-scheduling-admin-general-settings.php+465
Undefined index: postcode
- > GET request to /wp-admin/admin.php?page=gs_scheduling_general_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/general-settings/gs-scheduling-admin-general-settings.php+473
Undefined index: city
- > GET request to /wp-admin/admin.php?page=gs_scheduling_general_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/general-settings/gs-scheduling-admin-general-settings.php+481
Undefined index: address
- > GET request to /wp-admin/admin.php?page=gs_scheduling_general_settings
- > Notice in wp-content/plugins/gs-scheduling/admin/general-settings/gs-scheduling-admin-general-settings.php+489
Undefined index: telefone
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
- 48× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/gs-scheduling/admin/contact/gs-scheduling-contact-messages-list.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/gs-scheduling/admin/dates-closed/gs-scheduling-date-closed-list-table.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/gs-scheduling/admin/tickets/gs-scheduling-admin-ticket-list-table.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-scheduling/admin/bookings/gs-scheduling-bookings-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/gs-scheduling/schedules/book-event.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/gs-scheduling/admin/contact/gs-scheduling-contact-messages-list.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/gs-scheduling/admin/bookings/gs-scheduling-ticket-bookings-list-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/gs-scheduling/admin/tickets/gs-scheduling-admin-ticket-list-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/gs-scheduling/admin/schedule/gs-scheduling-admin-schedule-list-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/gs-scheduling/admin/tickets/gs-scheduling-admin-ticket-list-table.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: reservation, booking, schedule, appointments, reservation system
gs-scheduling/gs-scheduling.php Passed 13 tests
Analyzing the main PHP file in "Schedules and Appointments" version 2.0
113 characters long description:
A plugin to produce a schedule of events and an appointment-booking function to book one or more of these events.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,252 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,086 | 796 | 5,917 |
PO File | 1 | 542 | 931 | 1,245 |
JavaScript | 4 | 76 | 4 | 623 |
CSS | 3 | 70 | 31 | 365 |
HTML | 2 | 14 | 11 | 102 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 106 | 83.46% |
▷ Protected methods | 21 | 16.54% |
▷ Private methods | 0 | 0.00% |
Functions | 170 | |
▷ Named functions | 167 | 98.24% |
▷ Anonymous functions | 3 | 1.76% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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