Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲4.36MB] [CPU: ▲29.26ms] Passed 4 tests
Analyzing server-side resources used by Booking Package
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.92 ▲4.45 | 64.92 ▲22.82 |
Dashboard /wp-admin | 7.94 ▲4.63 | 94.85 ▲42.06 |
Posts /wp-admin/edit.php | 7.94 ▲4.57 | 83.45 ▲36.72 |
Add New Post /wp-admin/post-new.php | 9.68 ▲3.79 | 121.81 ▲23.83 |
Media Library /wp-admin/upload.php | 7.94 ▲4.70 | 66.94 ▲33.65 |
Calendar Accounts /wp-admin/admin.php?page=booking-package_schedule_page | 7.94 | 89.28 |
General Settings /wp-admin/admin.php?page=booking-package_setting_page | 7.94 | 117.02 |
Booked Customers /wp-admin/admin.php?page=booking-package/index.php | 7.94 | 80.66 |
Users /wp-admin/admin.php?page=booking-package_members_page | 7.95 | 95.47 |
Server storage [IO: ▲3.90MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 51 new files
Database: 17 new tables, 34 new options
New tables |
---|
wp_booking_package_booked_customers |
wp_booking_package_template_schedules |
wp_booking_package_taxes |
wp_booking_package_form |
wp_booking_package_webhook |
wp_booking_package_error |
wp_booking_package_calendar_accounts |
wp_booking_package_guests |
wp_booking_package_coupons |
wp_booking_package_services |
... |
New WordPress options |
---|
_booking-package_css_v |
_booking-package_javascript_v |
booking_package_db_version |
booking_package_lost_password |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_booking_package_widget |
_booking_package_siteToken |
... |
Browser metrics Passed 4 tests
Booking Package: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲206 | 14.35 ▲0.11 | 1.63 ▼0.07 | 27.85 ▼17.03 |
Dashboard /wp-admin | 2,349 ▲175 | 5.60 ▼0.12 | 96.65 ▼2.75 | 47.61 ▲4.18 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 1.96 ▲0.00 | 40.12 ▲1.46 | 36.25 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,572 ▲47 | 23.01 ▼0.07 | 625.11 ▼30.59 | 51.10 ▼3.19 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.20 ▼0.10 | 94.33 ▼8.29 | 41.68 ▲0.09 |
Calendar Accounts /wp-admin/admin.php?page=booking-package_schedule_page | 8,931 | 2.56 | 42.42 | 30.53 |
General Settings /wp-admin/admin.php?page=booking-package_setting_page | 5,877 | 2.89 | 42.72 | 55.84 |
Booked Customers /wp-admin/admin.php?page=booking-package/index.php | 1,286 | 2.11 | 38.62 | 39.52 |
Users /wp-admin/admin.php?page=booking-package_members_page | 1,299 | 1.84 | 28.01 | 26.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/booking-package/uninstall.php+7
Constant BOOKING_PACKAGE_EXTENSION_URL already defined
- The uninstall procedure has failed, leaving 22 options in the database
- _booking-package_css_v
- _booking_package_siteToken
- booking_package_accept_subscribers_as_users
- booking_package_visitors_registration_for_member
- booking_package_ical_token
- widget_theysaidso_widget
- theysaidso_admin_options
- _booking_package_databaseUpdateErrors
- booking_package_reject_non_membder
- booking_package_lost_password
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: booking system, reservation system, appointment system, appointment, reservation...
booking-package/index.php 92% from 13 tests
The principal PHP file in "Booking Package" v. 1.6.23 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("booking-package.php" instead of "index.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected54,797 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 15,162 | 1,144 | 26,603 |
PHP | 11 | 9,152 | 1,740 | 19,003 |
CSS | 7 | 3,924 | 419 | 6,813 |
SVG | 1 | 0 | 3 | 2,370 |
Markdown | 1 | 2 | 0 | 7 |
JSON | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,551)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 225.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,551.00 |
Average method complexity | 7.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 384 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 372 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 3.12% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin