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: ▲1.48MB] [CPU: ▲3.13ms] Passed 4 tests
Server-side resources used by Booking calendar, Appointment Booking System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.49 | 48.73 ▲10.68 |
Dashboard /wp-admin | 4.84 ▲1.49 | 51.37 ▼9.06 |
Posts /wp-admin/edit.php | 4.89 ▲1.53 | 51.31 ▲3.13 |
Add New Post /wp-admin/post-new.php | 7.35 ▲1.47 | 102.71 ▲7.78 |
Media Library /wp-admin/upload.php | 4.70 ▲1.47 | 52.22 ▲16.23 |
Themes /wp-admin/admin.php?page=wpdevart-themes | 5.60 | 52.62 |
Reservations /wp-admin/admin.php?page=wpdevart-reservations | 5.28 | 82.28 |
Calendars /wp-admin/admin.php?page=wpdevart-calendars | 5.04 | 39.42 |
Global Settings /wp-admin/admin.php?page=wpdevart-global-settings | 4.78 | 43.85 |
User Permissions /wp-admin/admin.php?page=wpdevart-user-permissions | 4.79 | 42.66 |
Featured plugins /wp-admin/admin.php?page=wpdevart-add-booking | 4.70 | 41.70 |
Extras /wp-admin/admin.php?page=wpdevart-extras | 4.84 | 45.52 |
Forms /wp-admin/admin.php?page=wpdevart-forms | 4.84 | 42.35 |
Uninstall /wp-admin/admin.php?page=wpdevart-booking-uninstall | 4.70 | 39.67 |
Server storage [IO: ▲4.56MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 226 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_wpdevart_dates |
wp_wpdevart_extras |
wp_wpdevart_reservations |
wp_wpdevart_themes |
wp_wpdevart_payments |
wp_wpdevart_calendars |
wp_wpdevart_forms |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_wpdevart_bc_widget |
db_upgraded |
can_compress_scripts |
widget_theysaidso_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 / | 3,027 ▲266 | 14.93 ▲0.58 | 14.92 ▲13.34 | 41.42 ▲3.17 |
Dashboard /wp-admin | 2,268 ▲91 | 5.79 ▲0.12 | 82.33 ▼7.89 | 83.14 ▲48.41 |
Posts /wp-admin/edit.php | 2,191 ▲88 | 2.18 ▲0.14 | 33.77 ▼5.44 | 34.55 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,755 ▲229 | 22.46 ▼0.64 | 629.92 ▼71.64 | 36.17 ▼18.75 |
Media Library /wp-admin/upload.php | 1,482 ▲79 | 4.25 ▲0.10 | 102.58 ▲1.63 | 76.18 ▲28.18 |
Themes /wp-admin/admin.php?page=wpdevart-themes | 1,217 | 3.45 | 43.64 | 101.98 |
Reservations /wp-admin/admin.php?page=wpdevart-reservations | 1,344 | 3.64 | 90.17 | 83.05 |
Calendars /wp-admin/admin.php?page=wpdevart-calendars | 1,019 | 1.79 | 25.45 | 34.87 |
Global Settings /wp-admin/admin.php?page=wpdevart-global-settings | 1,240 | 3.43 | 42.31 | 88.53 |
User Permissions /wp-admin/admin.php?page=wpdevart-user-permissions | 1,579 | 3.46 | 41.21 | 87.94 |
Featured plugins /wp-admin/admin.php?page=wpdevart-add-booking | 1,392 | 3.46 | 42.07 | 106.60 |
Extras /wp-admin/admin.php?page=wpdevart-extras | 1,215 | 3.45 | 42.61 | 81.62 |
Forms /wp-admin/admin.php?page=wpdevart-forms | 1,221 | 3.45 | 40.47 | 76.91 |
Uninstall /wp-admin/admin.php?page=wpdevart-booking-uninstall | 1,167 | 3.47 | 42.02 | 78.38 |
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_dates
- wp_wpdevart_themes
- wp_wpdevart_payments
- wp_wpdevart_calendars
- wp_wpdevart_forms
- wp_wpdevart_extras
- wp_wpdevart_reservations
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- 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: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar/includes/widgets/widget-booking_calendar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/booking-calendar/includes/textfortr.php:2
- > 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: appointment booking, reservation calendar, booking calendar, booking, booking system
booking-calendar/booking_calendar.php 92% from 13 tests
The main file in "Booking calendar, Appointment Booking System" v. 3.2.12 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 plugin72,484 lines of code in 124 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 51 | 21,775 | 26,351 | 46,073 |
PHP | 34 | 777 | 309 | 13,644 |
CSS | 7 | 430 | 112 | 7,002 |
JavaScript | 5 | 136 | 77 | 2,000 |
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 170)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 81.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 887.00 |
Average method complexity | 9.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 170.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 307 | |
▷ Static methods | 54 | 17.59% |
▷ Public methods | 197 | 64.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 110 | 35.83% |
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.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/hire_expert/4.png | 4.39KB | 3.08KB | ▼ 29.96% |
css/images/ui-icons_222222_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
css/images/wait.png | 0.36KB | 0.36KB | 0.00% |
css/images/extras.png | 0.95KB | 1.60KB | 0.00% |
css/images/hire_expert/1.png | 2.30KB | 1.72KB | ▼ 25.29% |