Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.91MB] [CPU: ▲28.69ms] Passed 4 tests
Server-side resources used by Booking Activities
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.23 ▲4.76 | 67.61 ▲32.53 |
Dashboard /wp-admin | 8.31 ▲5.01 | 75.20 ▲24.79 |
Posts /wp-admin/edit.php | 8.36 ▲5.01 | 84.31 ▲37.50 |
Add New Post /wp-admin/post-new.php | 10.83 ▲4.94 | 108.88 ▲19.94 |
Media Library /wp-admin/upload.php | 8.17 ▲4.94 | 76.42 ▲41.96 |
Bookings /wp-admin/admin.php?page=bookacti_bookings | 8.28 | 69.30 |
Settings /wp-admin/admin.php?page=bookacti_settings | 8.64 | 74.78 |
Home /wp-admin/admin.php?page=booking-activities | 8.21 | 64.60 |
Booking forms /wp-admin/admin.php?page=bookacti_forms | 8.17 | 57.84 |
Calendar editor /wp-admin/admin.php?page=bookacti_calendars | 8.66 | 75.81 |
Server storage [IO: ▲4.83MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 148 new files
Database: 14 new tables, 8 new options
New tables |
---|
wp_bookacti_activities |
wp_bookacti_templates_activities |
wp_bookacti_events |
wp_bookacti_permissions |
wp_bookacti_event_groups |
wp_bookacti_templates |
wp_bookacti_group_categories |
wp_bookacti_booking_groups |
wp_bookacti_form_fields |
wp_bookacti_groups_events |
... |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
bookacti-install-date |
bookacti_version |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Booking Activities
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲312 | 14.62 ▲0.27 | 25.94 ▲24.43 | 40.15 ▼0.50 |
Dashboard /wp-admin | 2,230 ▲50 | 5.56 ▼0.06 | 78.87 ▼9.34 | 39.07 ▼2.21 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.05 ▲0.06 | 34.44 ▼2.67 | 32.59 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 22.72 ▼0.26 | 661.30 ▼2.59 | 51.35 ▼1.44 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.24 ▼0.05 | 95.01 ▼12.13 | 43.05 ▼3.23 |
Bookings /wp-admin/admin.php?page=bookacti_bookings | 851 | 1.34 | 7.23 | 23.27 |
Settings /wp-admin/admin.php?page=bookacti_settings | 3,186 | 3.61 | 56.88 | 40.99 |
Home /wp-admin/admin.php?page=booking-activities | 1,324 | 3.25 | 39.96 | 77.42 |
Booking forms /wp-admin/admin.php?page=bookacti_forms | 811 | 1.51 | 6.48 | 24.34 |
Calendar editor /wp-admin/admin.php?page=bookacti_calendars | 5,300 | 5.47 | 162.18 | 29.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 14 tables
- wp_bookacti_bookings
- wp_bookacti_activities
- wp_bookacti_group_categories
- wp_bookacti_groups_events
- wp_bookacti_exports
- wp_bookacti_templates_activities
- wp_bookacti_booking_groups
- wp_bookacti_permissions
- wp_bookacti_meta
- wp_bookacti_form_fields
- ...
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- bookacti_version
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
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 96% from 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: booking, reservation, booking events, woocommerce booking, booking form
booking-activities/booking-activities.php 92% from 13 tests
The principal PHP file in "Booking Activities" v. 1.15.15 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.6" instead of "3.0")
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
Everything looks great! No dangerous files found in this plugin62,288 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 51 | 4,126 | 4,950 | 30,540 |
PHP | 45 | 6,851 | 9,314 | 29,915 |
CSS | 27 | 318 | 106 | 1,662 |
JSON | 1 | 0 | 0 | 162 |
XML | 1 | 0 | 0 | 8 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot 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.54 |
Average class complexity | 90.50 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.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 | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 75.00% |
▷ Protected methods | 10 | 22.73% |
▷ Private methods | 1 | 2.27% |
Functions | 910 | |
▷ Named functions | 898 | 98.68% |
▷ Anonymous functions | 12 | 1.32% |
Constants | 19 | |
▷ Global constants | 19 | 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
14 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/jquery-ui/themes/booking-activities/images/ui-icons_418FB6_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
img/add-ons/points-of-sale.png | 13.61KB | 14.51KB | 0.00% |
img/add-ons/prices-and-credits.png | 6.49KB | 6.90KB | 0.00% |
lib/jquery-ui/themes/booking-activities/images/ui-icons_272727_256x240.png | 6.89KB | 4.18KB | ▼ 39.29% |
img/add-ons/resource-availability.png | 9.20KB | 9.92KB | 0.00% |