Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/appointment-booking-calendar/cpabc_appointments.php+65
Undefined variable: wpdb
Server metrics [RAM: ▲0.45MB] [CPU: ▲2.72ms] Passed 4 tests
This is a short check of server-side resources used by Appointment Booking Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 43.69 ▲5.81 |
Dashboard /wp-admin | 3.76 ▲0.46 | 47.54 ▲1.34 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 52.82 ▲3.76 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 98.46 ▲10.52 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 35.43 ▼0.03 |
Server storage [IO: ▲2.73MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 256 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_cpabc_appointment_calendars |
wp_cpabc_appointments_discount_codes |
wp_cpabc_appointment_calendars_data |
wp_cpabc_appointments |
New WordPress options |
---|
can_compress_scripts |
ABC_RCODE |
widget_recent-comments |
installed_appointment-booking-calendar |
theysaidso_admin_options |
widget_recent-posts |
CP_ABC_JS |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Appointment Booking Calendar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲71 | 14.07 ▼0.28 | 1.80 ▼0.13 | 43.18 ▼2.38 |
Dashboard /wp-admin | 2,241 ▲61 | 5.59 ▼0.03 | 87.00 ▼4.11 | 38.15 ▼1.90 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.94 ▲0.00 | 39.42 ▼2.06 | 37.00 ▲0.81 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,704 | 21.45 ▼1.54 | 945.01 ▲161.27 | 65.85 ▲11.15 |
Media Library /wp-admin/upload.php | 1,446 ▲52 | 4.18 ▲0.02 | 98.07 ▲0.55 | 41.94 ▲0.01 |
Upgrade /wp-admin/cpabc_appointments.php?page=cpabc_appointments_upgrade | 26 | 0.41 | 0.12 | 13.35 |
Manage Calendars /wp-admin/cpabc_appointments.php?page=cpabc_appointments | 26 | 0.41 | 0.13 | 7.02 |
Help: Online demo /wp-admin/cpabc_appointments.php?page=cpabc_appointments_demo | 26 | 0.41 | 0.09 | 5.86 |
Appointment Booking Calendar /wp-admin/cpabc_appointments.php | 26 | 0.41 | 0.07 | 6.80 |
I Need Help /wp-admin/cpabc_appointments.php?page=cpabc_appointments_support | 26 | 0.41 | 0.35 | 6.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_cpabc_appointment_calendars_data
- wp_cpabc_appointments_discount_codes
- wp_cpabc_appointments
- wp_cpabc_appointment_calendars
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- CP_ABC_JS
- ABC_RCODE
- theysaidso_admin_options
- installed_appointment-booking-calendar
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/appointment-booking-calendar/inc/cpabc_apps_go.inc.php
- > /wp-content/plugins/appointment-booking-calendar/inc/cpabc_scheduler.inc.php
- > /wp-content/plugins/appointment-booking-calendar/inc/cpabc_apps_on.inc.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/appointment-booking-calendar/inc/cpabc_appointments_admin_int_calendar_list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/appointment-booking-calendar/cpabc_appointments.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appointment-booking-calendar/inc/cp-feedback.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/appointment-booking-calendar/inc/cp_admin_int_edition.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appointment-booking-calendar/controllers/elementor/cp-elementor-widget.inc.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appointment-booking-calendar/inc/banner.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/appointment-booking-calendar/inc/cpabc_appointments_admin_int_bookings_list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/appointment-booking-calendar/inc/cpabc_appointments_admin_int.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/appointment-booking-calendar/mv/calendar_schedule.inc.php:3
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/appointment-booking-calendar/controllers/elementor/elementorwidget_class.inc.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/cpabc_appointments.php?page=cpabc_appointments_upgrade
- > Network (severe)
wp-admin/cpabc_appointments.php?page=cpabc_appointments_upgrade - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/cpabc_appointments.php?page=cpabc_appointments
- > Network (severe)
wp-admin/cpabc_appointments.php?page=cpabc_appointments - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/cpabc_appointments.php?page=cpabc_appointments_demo
- > Network (severe)
wp-admin/cpabc_appointments.php?page=cpabc_appointments_demo - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/cpabc_appointments.php
- > Network (severe)
wp-admin/cpabc_appointments.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/cpabc_appointments.php?page=cpabc_appointments_support
- > Network (severe)
wp-admin/cpabc_appointments.php?page=cpabc_appointments_support - 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
appointment-booking-calendar/cpabc_appointments.php 92% from 13 tests
The primary PHP file in "Appointment Booking Calendar" version 1.3.81 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("appointment-booking-calendar.php" instead of "cpabc_appointments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected27,121 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 34 | 1,221 | 1,308 | 15,211 |
PO File | 59 | 1,408 | 1,789 | 4,073 |
CSS | 16 | 641 | 342 | 3,946 |
PHP | 16 | 760 | 162 | 3,891 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 2 | 18.18% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 63 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 121 | |
▷ Global constants | 121 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
41 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
TDE_AppCalendar/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.12KB | 0.15KB | 0.00% |
TDE_AppCalendar/cupertino/images/ui-icons_3d80b3_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
TDE_AppCalendar/light/callt5.png | 0.36KB | 0.34KB | ▼ 4.63% |
mv/css/images/icons_yellow.png | 0.60KB | 0.48KB | ▼ 19.15% |
TDE_AppCalendar/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png | 0.14KB | 0.17KB | 0.00% |