Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲6.84MB] [CPU: ▲42.39ms] 50% from 4 tests
Server-side resources used by Events Manager
Please take the time to fix the following items
- RAM: Try to keep total memory usage under 10MB (currently 11.42MB on /wp-admin/edit.php?post_type=event&page=events-manager-options)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 6.84MB on /wp-admin/edit.php?post_type=event&page=events-manager-options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.03 ▲5.57 | 75.31 ▲30.33 |
Dashboard /wp-admin | 10.65 ▲7.34 | 95.80 ▲50.03 |
Posts /wp-admin/edit.php | 10.67 ▲7.31 | 106.14 ▲63.10 |
Add New Post /wp-admin/post-new.php | 13.13 ▲7.24 | 124.78 ▲33.90 |
Media Library /wp-admin/upload.php | 10.47 ▲7.24 | 86.26 ▲55.29 |
Help /wp-admin/edit.php?post_type=event&page=events-manager-help | 10.51 | 80.40 |
Settings /wp-admin/edit.php?post_type=event&page=events-manager-options | 11.42 | 130.24 |
Server storage [IO: ▲12.69MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 645 new files
Database: 8 new tables, 432 new options
New tables |
---|
wp_em_meta |
wp_em_locations |
wp_em_tickets |
wp_em_events |
wp_em_bookings |
wp_em_tickets_bookings_meta |
wp_em_bookings_meta |
wp_em_tickets_bookings |
New WordPress options |
---|
dbem_booking_button_msg_event_cancelled |
dbem_data_privacy_export_events |
can_compress_scripts |
dbem_display_calendar_events_limit_msg |
dbem_locations_default_order |
dbem_categories_default_archive_orderby |
dbem_events_page_title |
dbem_ical_description_format |
dbem_single_event_format |
dbem_bookings_summary_message |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Events Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,575 ▲2,813 | 17.98 ▲3.64 | 13.52 ▲11.66 | 14.20 ▼31.85 |
Dashboard /wp-admin | 4,845 ▲2,671 | 7.78 ▲2.12 | 182.94 ▲82.45 | 52.22 ▲5.28 |
Posts /wp-admin/edit.php | 2,179 ▲82 | 2.03 ▲0.05 | 48.76 ▲12.49 | 44.06 ▲8.22 |
Add New Post /wp-admin/post-new.php | 1,593 ▲63 | 23.53 ▲0.18 | 737.23 ▲64.79 | 55.42 ▲3.27 |
Media Library /wp-admin/upload.php | 1,481 ▲87 | 4.20 ▼0.00 | 97.62 ▼1.40 | 42.13 ▼1.68 |
Help /wp-admin/edit.php?post_type=event&page=events-manager-help | 2,857 | 2.59 | 46.10 | 65.15 |
Settings /wp-admin/edit.php?post_type=event&page=events-manager-options | 24,080 | 6.25 | 212.03 | 104.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 tables in the database
- wp_em_bookings_meta
- wp_em_tickets
- wp_em_tickets_bookings_meta
- wp_em_tickets_bookings
- wp_em_locations
- wp_em_bookings
- wp_em_meta
- wp_em_events
- The uninstall procedure has failed, leaving 432 options in the database
- dbem_data_privacy_consent_bookings
- dbem_location_grid_item_format_footer
- dbem_cp_events_formats
- dbem_events_anonymous_submissions
- dbem_timezone_default
- dbem_categories_list_item_format_header
- dbem_bookings_submit_button
- dbem_rsvp_mail_port
- dbem_events_page_ajax
- dbem_events_default_limit
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
- 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/events-manager/templates/formats/category_event_list_item_header_format.php
- > /wp-content/plugins/events-manager/templates/formats/tag_event_list_item_footer_format.php
- > /wp-content/plugins/events-manager/templates/formats/map_text_format.php
- > /wp-content/plugins/events-manager/templates/formats/event_excerpt_format.php
- > /wp-content/plugins/events-manager/templates/formats/tag_event_list_item_format.php
- > /wp-content/plugins/events-manager/templates/calendar/section-header-weekdays.php
- > /wp-content/plugins/events-manager/templates/formats/block_event_list_item_format.php
- > /wp-content/plugins/events-manager/templates/formats/category_event_list_item_footer_format.php
- > /wp-content/plugins/events-manager/templates/formats/location_event_list_item_format.php
- > /wp-content/plugins/events-manager/templates/formats/location_event_list_item_header_format.php
- 233× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_categories() on null in wp-content/plugins/events-manager/templates/placeholders/eventcategoriesimages.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/events-manager/templates/templates/my-bookings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/events-manager/templates/formats/calendar_preview_tooltip_event_format.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function em_get_days_names() in wp-content/plugins/events-manager/templates/forms/event/recurring-when.php:4
- > PHP Warning
Creating default object from empty value in wp-content/plugins/events-manager/em-upgrade.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/events-manager/em-debug.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/events-manager/templates/forms/event/when/recurrence-duration.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function em_bookings_admin() in wp-content/plugins/events-manager/templates/buddypress/my-bookings.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/events-manager/templates/calendar/section-header-weekdays.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/events-manager/templates/templates/search/form-sort.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
events-manager/events-manager.php 92% from 13 tests
The entry point to "Events Manager" version 6.4.6.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin110,610 lines of code in 560 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 298 | 2,533 | 8,570 | 40,162 |
JavaScript | 184 | 1,528 | 2,784 | 39,990 |
CSS | 36 | 976 | 975 | 21,439 |
Sass | 29 | 817 | 351 | 5,256 |
TypeScript | 3 | 499 | 3,468 | 3,438 |
HTML | 5 | 11 | 0 | 173 |
SVG | 4 | 0 | 0 | 138 |
JSON | 1 | 0 | 0 | 14 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,091)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 363)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 46.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,091.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 363.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 131 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 131 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,344 | |
▷ Static methods | 751 | 55.88% |
▷ Public methods | 1,338 | 99.55% |
▷ Protected methods | 6 | 0.45% |
▷ Private methods | 0 | 0.00% |
Functions | 321 | |
▷ Named functions | 314 | 97.82% |
▷ Anonymous functions | 7 | 2.18% |
Constants | 62 | |
▷ Global constants | 62 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 0.54MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/jquery-ui/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
includes/css/jquery-ui/images/ui-icons_777620_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
includes/css/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
includes/images/search-geo.png | 0.59KB | 0.48KB | ▼ 19.41% |
includes/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |