Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼10.81ms] Passed 4 tests
A check of server-side resources used by Awesome Event Booking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 42.46 ▲4.01 |
Dashboard /wp-admin | 3.58 ▲0.24 | 54.12 ▼5.03 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 31.09 ▼15.33 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 85.83 ▼26.88 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 38.48 ▲4.47 |
All Events /wp-admin/edit.php?post_type=cpt_events | 3.58 | 40.31 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cpt_events | 3.58 | 39.61 |
Attendees /wp-admin/admin.php?page=attendees | 3.45 | 32.11 |
Regions /wp-admin/edit.php?post_type=location_region | 3.56 | 48.23 |
Locations /wp-admin/edit.php?post_type=event_location | 3.56 | 57.25 |
Event Bookings /wp-admin/edit.php?post_type=event_booking | 3.54 | 41.40 |
Event Managers /wp-admin/edit.php?post_type=event_manager | 3.56 | 40.73 |
Add New Event /wp-admin/post-new.php?post_type=cpt_events | 3.70 | 91.06 |
Documentation /wp-admin/edit.php?post_type=cpt_events&page=wp_event_booking_doc | 3.56 | 51.77 |
Settings /wp-admin/edit.php?post_type=cpt_events&page=wp_event_booking_settings | 3.67 | 33.86 |
Server storage [IO: ▲95.71MB] [DB: ▲0.08MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The filesystem usage should be lower than 25MB (currently using 95.71MB)
Filesystem: 769 new files
Database: no new tables, 60 new options
New WordPress options |
---|
signUpAdminNotificationSubject |
show_attendant_e_mail_address |
AdminAddCustomerAdminNotification |
cancelCustomerNotification |
AdminAddCustomerCustomerNotification |
AvailableSeats |
cancelAdminNotification |
show_attendant_last_name |
usercancelCustomerNotificationSubject |
wpeb_checkout_page |
... |
Browser metrics Passed 4 tests
Awesome Event Booking: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,079 ▲333 | 14.43 ▲0.07 | 6.75 ▲4.99 | 43.27 ▼1.95 |
Dashboard /wp-admin | 2,332 ▲143 | 5.63 ▼0.30 | 143.55 ▲34.57 | 47.12 ▲4.07 |
Posts /wp-admin/edit.php | 2,226 ▲137 | 2.44 ▲0.38 | 49.18 ▲12.61 | 42.25 ▲8.16 |
Add New Post /wp-admin/post-new.php | 1,628 ▲100 | 23.77 ▲5.63 | 750.25 ▲109.65 | 41.36 ▼12.38 |
Media Library /wp-admin/upload.php | 1,548 ▲160 | 4.90 ▲0.69 | 99.33 ▲0.21 | 41.17 ▼3.48 |
All Events /wp-admin/edit.php?post_type=cpt_events | 2,129 | 2.92 | 54.27 | 32.37 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cpt_events | 1,582 | 2.20 | 40.75 | 34.83 |
Attendees /wp-admin/admin.php?page=attendees | 900 | 2.35 | 31.99 | 24.65 |
Regions /wp-admin/edit.php?post_type=location_region | 1,193 | 2.36 | 53.33 | 35.51 |
Locations /wp-admin/edit.php?post_type=event_location | 1,190 | 2.41 | 53.90 | 44.65 |
Event Bookings /wp-admin/edit.php?post_type=event_booking | 1,215 | 2.42 | 52.49 | 33.76 |
Event Managers /wp-admin/edit.php?post_type=event_manager | 1,187 | 2.41 | 48.28 | 34.59 |
Add New Event /wp-admin/post-new.php?post_type=cpt_events | 5,139 | 10.49 | 303.62 | 102.06 |
Documentation /wp-admin/edit.php?post_type=cpt_events&page=wp_event_booking_doc | 1,276 | 2.29 | 52.82 | 48.52 |
Settings /wp-admin/edit.php?post_type=cpt_events&page=wp_event_booking_settings | 1,561 | 2.42 | 32.47 | 42.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 60 options in the database
- wpeb_my_accounts_page
- sendReminderBeforeMessage
- usercancelCustomerNotificationSubject
- AvailableSeats
- usercancelAdminNotification
- widget_theysaidso_widget
- show_event_manager_phone
- timeRangeSeparator
- wpeb_events_page
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=attendees
- > Notice in wp-content/plugins/awesome-event-booking/admin/functions.php+1426
Undefined variable: permalink
- > GET request to /wp-admin/edit.php?post_type=event_booking
- > Notice in wp-content/plugins/awesome-event-booking/admin/functions.php+1646
Undefined index: booking_status
- > GET request to /wp-admin/edit.php?post_type=event_booking
- > Notice in wp-content/plugins/awesome-event-booking/admin/functions.php+1688
Undefined index: all_posts
- > GET request to /wp-admin/edit.php?post_type=event_booking
- > Notice in wp-content/plugins/awesome-event-booking/admin/functions.php+1691
Undefined index: post_status
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cpt_events&page=wp_event_booking_settings
- > Notice in wp-content/plugins/awesome-event-booking/captcha/admin/admin_functions.php+41
Trying to access array offset on value of type bool
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cpt_events&page=wp_event_booking_settings
- > Notice in wp-content/plugins/awesome-event-booking/captcha/admin/admin_functions.php+41
Trying to access array offset on value of type null
- > GET request to /wp-admin/edit.php?post_type=cpt_events&page=wp_event_booking_settings
- > Notice in wp-content/plugins/awesome-event-booking/captcha/admin/admin_functions.php+16
Undefined index: tab
SRP 50% 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
Almost there! Just fix the following items
- 258× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Tag/Acronym.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Tag/Time.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Barcode/Rm4Scc.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Tag/Br.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Barcode/EanExt.php:10
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Otl.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Tag/U.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/awesome-event-booking/library/mpdf/mpdf/src/Tag/Strike.php:5
- > PHP Warning
Use of undefined constant WPEB_DIR - assumed 'WPEB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-event-booking/admin/init.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/awesome-event-booking/public/not-in-use--shortcodes.php:3
- > PHP Fatal error
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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
awesome-event-booking/wp_event_booking.php 85% from 13 tests
"Awesome Event Booking" version 2.6.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-event-booking.php" instead of "wp_event_booking.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin103,915 lines of code in 484 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 430 | 11,781 | 12,175 | 82,253 |
JavaScript | 14 | 1,796 | 874 | 8,810 |
CSS | 13 | 570 | 191 | 6,396 |
SVG | 1 | 0 | 0 | 2,671 |
PO File | 3 | 635 | 807 | 1,501 |
Markdown | 7 | 395 | 0 | 1,217 |
JSON | 8 | 3 | 0 | 503 |
HTML | 1 | 84 | 15 | 414 |
XML | 3 | 10 | 0 | 75 |
YAML | 3 | 20 | 2 | 72 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 7,027)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 58.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,027.00 |
Average method complexity | 14.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 288 | |
▷ Abstract classes | 9 | 3.12% |
▷ Concrete classes | 279 | 96.88% |
▷ Final classes | 11 | 3.94% |
Methods | 1,358 | |
▷ Static methods | 123 | 9.06% |
▷ Public methods | 1,173 | 86.38% |
▷ Protected methods | 55 | 4.05% |
▷ Private methods | 130 | 9.57% |
Functions | 208 | |
▷ Named functions | 185 | 88.94% |
▷ Anonymous functions | 23 | 11.06% |
Constants | 436 | |
▷ Global constants | 13 | 2.98% |
▷ Class constants | 423 | 97.02% |
▷ Public constants | 423 | 100.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
18 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/css/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
src/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
src/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
library/myclabs/deep-copy/doc/clone.png | 12.09KB | 5.48KB | ▼ 54.70% |
src/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |