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.08MB] [CPU: ▼329.60ms] Passed 4 tests
Server-side resources used by Booking calendar, Appointment Booking System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 60.31 ▲7.94 |
Dashboard /wp-admin | 3.52 ▲0.11 | 35.61 ▼12.70 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 45.90 ▲6.33 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 97.72 ▼1,288.47 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 26.63 ▼23.57 |
User Permissions /wp-admin/admin.php?page=wpdevart-user-permissions | 3.47 | 31.90 |
Featured plugins /wp-admin/admin.php?page=wpdevart-add-booking | 3.41 | 31.01 |
Global Settings /wp-admin/admin.php?page=wpdevart-global-settings | 3.46 | 31.06 |
Extras /wp-admin/admin.php?page=wpdevart-extras | 3.49 | 32.41 |
Calendars /wp-admin/admin.php?page=wpdevart-calendars | 3.68 | 30.20 |
Reservations /wp-admin/admin.php?page=wpdevart-reservations | 4.05 | 39.49 |
Themes /wp-admin/admin.php?page=wpdevart-themes | 5.03 | 37.33 |
Forms /wp-admin/admin.php?page=wpdevart-forms | 3.49 | 31.87 |
Uninstall /wp-admin/admin.php?page=wpdevart-booking-uninstall | 3.41 | 29.38 |
Server storage [IO: ▲4.47MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 223 new files
Database: 7 new tables, 1 new option
New tables |
---|
wp_wpdevart_calendars |
wp_wpdevart_dates |
wp_wpdevart_reservations |
wp_wpdevart_payments |
wp_wpdevart_extras |
wp_wpdevart_themes |
wp_wpdevart_forms |
New WordPress options |
---|
widget_wpdevart_bc_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Booking calendar, Appointment Booking System
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,066 ▲312 | 17.42 ▲2.21 | 12.69 ▲5.46 | 2.71 ▲0.46 |
Dashboard /wp-admin | 2,980 ▲119 | 6.22 ▲0.07 | 118.41 ▼42.37 | 172.11 ▼20.32 |
Posts /wp-admin/edit.php | 2,763 ▲72 | 3.28 ▲0.06 | 66.29 ▼4.19 | 137.51 ▼18.30 |
Add New Post /wp-admin/post-new.php | 1,735 ▲69 | 16.29 ▼4.04 | 415.20 ▼141.54 | 202.87 ▼6.83 |
Media Library /wp-admin/upload.php | 1,800 ▲105 | 5.82 ▲0.36 | 127.32 ▼25.94 | 203.50 ▼0.47 |
User Permissions /wp-admin/admin.php?page=wpdevart-user-permissions | 2,031 | 5.15 | 89.67 | 221.28 |
Featured plugins /wp-admin/admin.php?page=wpdevart-add-booking | 1,843 | 5.42 | 86.09 | 187.04 |
Global Settings /wp-admin/admin.php?page=wpdevart-global-settings | 1,600 | 5.12 | 77.27 | 249.26 |
Extras /wp-admin/admin.php?page=wpdevart-extras | 1,574 | 5.13 | 79.68 | 200.47 |
Calendars /wp-admin/admin.php?page=wpdevart-calendars | 1,296 | 2.76 | 58.93 | 182.80 |
Reservations /wp-admin/admin.php?page=wpdevart-reservations | 1,758 | 5.27 | 76.13 | 248.16 |
Themes /wp-admin/admin.php?page=wpdevart-themes | 1,574 | 5.23 | 74.83 | 198.75 |
Forms /wp-admin/admin.php?page=wpdevart-forms | 1,574 | 5.03 | 78.39 | 204.47 |
Uninstall /wp-admin/admin.php?page=wpdevart-booking-uninstall | 1,495 | 5.19 | 76.06 | 119.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 7 tables
- wp_wpdevart_themes
- wp_wpdevart_calendars
- wp_wpdevart_forms
- wp_wpdevart_payments
- wp_wpdevart_extras
- wp_wpdevart_dates
- wp_wpdevart_reservations
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_wpdevart_bc_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/booking-calendar/booking_calendar.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/booking-calendar/includes/textfortr.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar/includes/widgets/widget-booking_calendar.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: booking system, booking calendar, reservation calendar, booking, appointment booking
booking-calendar/booking_calendar.php 92% from 13 tests
The main file in "Booking calendar, Appointment Booking System" v. 3.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("booking-calendar.php" instead of "booking_calendar.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin70,678 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 50 | 21,351 | 25,834 | 45,186 |
PHP | 33 | 750 | 217 | 12,769 |
CSS | 7 | 429 | 112 | 6,967 |
JavaScript | 5 | 134 | 76 | 1,991 |
Sass | 13 | 28 | 24 | 1,560 |
LESS | 13 | 28 | 34 | 1,550 |
SVG | 1 | 0 | 0 | 655 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 165)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 74.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 751.00 |
Average method complexity | 8.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 165.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 295 | |
▷ Static methods | 50 | 16.95% |
▷ Public methods | 192 | 65.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 103 | 34.92% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
43 PNG files occupy 0.35MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/featured_plugins/Pricing-table.png | 12.94KB | 4.08KB | ▼ 68.44% |
css/images/featured_plugins/coming_soon.png | 12.40KB | 5.21KB | ▼ 57.98% |
css/images/featured_plugins/gallery-album-icon.png | 10.74KB | 4.69KB | ▼ 56.38% |
css/images/arrow_up.png | 0.33KB | 0.45KB | 0.00% |
css/images/hire_expert/1.png | 2.30KB | 1.72KB | ▼ 25.29% |