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.13MB] [CPU: ▼3.93ms] Passed 4 tests
An overview of server-side resources used by BMA Lite - Appointment Booking and Scheduling Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.16 ▼0.14 |
Dashboard /wp-admin | 3.47 ▲0.13 | 53.38 ▼10.26 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 59.54 ▲0.49 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 89.96 ▼5.82 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.67 ▲3.56 |
Coupons /wp-admin/admin.php?page=rtwbmal-coupon | 3.43 | 48.14 |
Customers /wp-admin/admin.php?page=rtwbmal-customers | 3.43 | 44.71 |
Appearance /wp-admin/admin.php?page=rtwbmal-appearance | 3.43 | 39.37 |
Pro Features /wp-admin/admin.php?page=rtwbmal-pro | 3.46 | 38.72 |
Template /wp-admin/admin.php?page=rtwbmal-template | 3.41 | 40.23 |
SMS Notifications /wp-admin/admin.php?page=rtwbmal-sms_notifications | 3.51 | 34.58 |
Appointments /wp-admin/admin.php?page=rtwbmal-appointments | 3.58 | 45.10 |
Forms /wp-admin/admin.php?page=rtwbmal-forms | 3.41 | 40.45 |
Status /wp-admin/admin.php?page=rtwbmal-status | 3.38 | 39.71 |
Employees /wp-admin/admin.php?page=rtwbmal-emp_members | 3.56 | 46.14 |
Server storage [IO: ▲20.93MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,874 new files
Database: 15 new tables, 7 new options
New tables |
---|
wp_rtwbma_customer_appointments |
wp_rtwbma_emp_loc |
wp_rtwbma_locations |
wp_rtwbma_sms_notifications |
wp_rtwbma_payments |
wp_rtwbma_emp_hour_break |
wp_rtwbma_employees |
wp_rtwbma_email_notifications |
wp_rtwbma_emp_working_hour |
wp_rtwbma_notifications_sent |
... |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
rtwbmal_lite_installed |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for BMA Lite - Appointment Booking and Scheduling Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,188 ▲442 | 15.58 ▲1.23 | 17.95 ▲16.01 | 39.26 ▼5.19 |
Dashboard /wp-admin | 2,416 ▲225 | 6.44 ▲1.56 | 131.75 ▲22.96 | 87.91 ▲46.26 |
Posts /wp-admin/edit.php | 2,340 ▲251 | 3.40 ▲1.36 | 51.83 ▲12.54 | 70.96 ▲34.69 |
Add New Post /wp-admin/post-new.php | 1,583 ▲61 | 23.03 ▲0.08 | 656.37 ▲2.84 | 96.28 ▲31.16 |
Media Library /wp-admin/upload.php | 1,476 ▲88 | 4.13 ▼0.09 | 82.49 ▼17.53 | 72.36 ▲25.35 |
Coupons /wp-admin/admin.php?page=rtwbmal-coupon | 1,588 | 3.57 | 67.81 | 93.32 |
Customers /wp-admin/admin.php?page=rtwbmal-customers | 1,697 | 3.46 | 69.95 | 68.75 |
Appearance /wp-admin/admin.php?page=rtwbmal-appearance | 1,516 | 3.66 | 44.78 | 79.80 |
Pro Features /wp-admin/admin.php?page=rtwbmal-pro | 1,510 | 3.52 | 40.07 | 120.85 |
Template /wp-admin/admin.php?page=rtwbmal-template | 1,612 | 3.51 | 55.90 | 83.95 |
SMS Notifications /wp-admin/admin.php?page=rtwbmal-sms_notifications | 2,633 | 3.93 | 58.59 | 84.26 |
Appointments /wp-admin/admin.php?page=rtwbmal-appointments | 3,053 | 4.19 | 109.07 | 67.51 |
Forms /wp-admin/admin.php?page=rtwbmal-forms | 1,334 | 3.35 | 51.50 | 62.72 |
Status /wp-admin/admin.php?page=rtwbmal-status | 1,189 | 3.49 | 40.47 | 83.42 |
Employees /wp-admin/admin.php?page=rtwbmal-emp_members | 9,065 | 3.52 | 55.59 | 90.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 15 tables
- wp_rtwbma_emp_services
- wp_rtwbma_payments
- wp_rtwbma_categories
- wp_rtwbma_emp_hour_break
- wp_rtwbma_locations
- wp_rtwbma_emp_loc
- wp_rtwbma_appointments
- wp_rtwbma_customer_appointments
- wp_rtwbma_emp_working_hour
- wp_rtwbma_customers
- ...
- The uninstall procedure has failed, leaving 7 options in the database
- rtwbmal_lite_installed
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=rtwbmal-coupon
- > Notice in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/coupon/rtwbmal-coupon-display.php+70
Undefined variable: rtwbmal_all_categories
- > GET request to /wp-admin/admin.php?page=rtwbmal-coupon
- > Notice in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/coupon/rtwbmal-coupon-display.php+84
Undefined variable: rtwbmal_all_services
- > GET request to /wp-admin/admin.php?page=rtwbmal-coupon
- > Notice in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/coupon/rtwbmal-coupon-display.php+96
Undefined variable: rtwbmal_all_employees
SRP 50% 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
Please take a closer look at the following
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/dashboard/rtwbmal-dashboard-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/rtwbma_without_verify.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/customers/rtwbmal-customers-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/appointments/rtwbmal-appointments-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/pro_features/rtwbmal-pro-features.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/sms_notifications/rtwbmal-sms_notifications-display.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/rtwbmal-book-my-appointment.php:29
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/emp_members/rtwbmal-emp_members-display.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/payments/rtwbmal-payments-display.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/bma-lite-appointment-booking-and-scheduling/admin/partials/email_notifications/rtwbmal-email_notifications-display.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
bma-lite-appointment-booking-and-scheduling/rtwbmal-book-my-appointment.php 85% from 13 tests
The principal PHP file in "BMA Lite - Appointment Booking and Scheduling Plugin" v. 1.4.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bma-lite-appointment-booking-and-scheduling.php" instead of "rtwbmal-book-my-appointment.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin181,040 lines of code in 1,818 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 7 | 0 | 0 | 58,488 |
JavaScript | 124 | 5,363 | 4,661 | 45,319 |
YAML | 4 | 0 | 0 | 24,272 |
CSS | 51 | 3,873 | 453 | 15,535 |
SVG | 1,551 | 0 | 25 | 15,158 |
PHP | 35 | 1,023 | 866 | 9,158 |
Sass | 18 | 505 | 34 | 4,649 |
LESS | 18 | 502 | 55 | 4,607 |
TypeScript | 5 | 131 | 0 | 3,834 |
Markdown | 5 | 20 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 50.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 276.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 3 | 3.03% |
▷ Public methods | 94 | 94.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.05% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
13 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 1.72KB | 0.89KB | ▼ 48.26% |
assets/images/logof.png | 1.52KB | 0.51KB | ▼ 66.39% |
assets/images/skype.png | 12.59KB | 4.74KB | ▼ 62.39% |
assets/images/Delete-icon.png | 2.89KB | 0.67KB | ▼ 76.75% |
assets/images/logobma.png | 1.39KB | 0.62KB | ▼ 55.60% |