Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲16.62MB] [CPU: ▲161.83ms] 25% from 4 tests
Server-side resources used by The Events Calendar
Please have a look at the following items
- RAM: Total memory usage must be kept under 10MB (currently 19.96MB on /wp-admin/post-new.php?post_type=tribe_venue)
- CPU: Total CPU usage should be kept under 500.00ms (currently 10,215.91ms on /wp-admin/edit.php?post_type=tribe_events&page=aggregator)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 16.62MB on /wp-admin/post-new.php?post_type=tribe_venue)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 19.49 ▲16.03 | 180.72 ▲139.83 |
Dashboard /wp-admin | 20.91 ▲17.57 | 771.47 ▲706.76 |
Posts /wp-admin/edit.php | 19.86 ▲16.50 | 224.07 ▲180.78 |
Add New Post /wp-admin/post-new.php | 23.75 ▲17.87 | 246.77 ▲151.14 |
Media Library /wp-admin/upload.php | 19.62 ▲16.39 | 209.21 ▲175.57 |
Venues /wp-admin/edit.php?post_type=tribe_venue | 19.74 | 181.21 |
Help /wp-admin/edit.php?post_type=tribe_events&page=tec-events-help | 19.69 | 181.79 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 19.78 | 190.39 |
Event Add-Ons /wp-admin/admin.php?page=tribe-app-shop | 19.67 | 181.81 |
Add New /wp-admin/post-new.php?post_type=tribe_events | 20.57 | 250.29 |
Troubleshooting /wp-admin/edit.php?post_type=tribe_events&page=tec-troubleshooting | 19.74 | 188.42 |
Import /wp-admin/edit.php?post_type=tribe_events&page=aggregator | 20.10 | 10,215.91 |
Event Add-Ons /wp-admin/edit.php?post_type=tribe_events&page=tribe-app-shop | 19.69 | 171.86 |
Organizers /wp-admin/edit.php?post_type=tribe_organizer | 19.73 | 176.34 |
Add New Venue /wp-admin/post-new.php?post_type=tribe_venue | 19.96 | 201.49 |
Server storage [IO: ▲24.77MB] [DB: ▲0.11MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2,167 new files
Database: 6 new tables, 25 new options
New tables |
---|
wp_actionscheduler_actions |
wp_tec_occurrences |
wp_actionscheduler_claims |
wp_actionscheduler_logs |
wp_tec_events |
wp_actionscheduler_groups |
New WordPress options |
---|
tribe_events_calendar_options |
tribe_last_updated_option |
tec_ct1_occurrences_table_schema_version |
can_compress_scripts |
tec_ct1_events_table_schema_version |
db_upgraded |
widget_theysaidso_widget |
tribe_pue_key_notices |
action_scheduler_hybrid_store_demarkation |
stellarwp_telemetry_the-events-calendar_show_optin |
... |
Browser metrics Passed 4 tests
Checking browser requirements for The Events Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,117 ▼645 | 12.61 ▼1.73 | 2.34 ▲0.74 | 43.31 ▲0.61 |
Dashboard /wp-admin | 2,471 ▲294 | 5.73 ▲0.15 | 99.44 ▲7.35 | 109.91 ▲68.51 |
Posts /wp-admin/edit.php | 2,320 ▲220 | 2.33 ▲0.31 | 38.74 ▲2.19 | 31.97 ▼6.41 |
Add New Post /wp-admin/post-new.php | 1,862 ▲327 | 25.28 ▲0.03 | 703.17 ▲97.22 | 38.50 ▼28.98 |
Media Library /wp-admin/upload.php | 1,691 ▲297 | 4.27 ▲0.11 | 114.48 ▲17.32 | 86.33 ▲41.90 |
Venues /wp-admin/edit.php?post_type=tribe_venue | 1,482 | 3.96 | 89.25 | 102.18 |
Help /wp-admin/edit.php?post_type=tribe_events&page=tec-events-help | 2,502 | 3.75 | 67.79 | 142.01 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,468 | 2.33 | 36.12 | 36.67 |
Event Add-Ons /wp-admin/admin.php?page=tribe-app-shop | 3,324 | 3.60 | 66.60 | 175.90 |
Add New /wp-admin/post-new.php?post_type=tribe_events | 7,827 | 10.88 | 275.98 | 193.15 |
Troubleshooting /wp-admin/edit.php?post_type=tribe_events&page=tec-troubleshooting | 2,134 | 4.27 | 77.48 | 122.40 |
Import /wp-admin/edit.php?post_type=tribe_events&page=aggregator | 5,068 | 6.42 | 470.24 | 145.73 |
Event Add-Ons /wp-admin/edit.php?post_type=tribe_events&page=tribe-app-shop | 3,356 | 3.64 | 67.23 | 165.92 |
Organizers /wp-admin/edit.php?post_type=tribe_organizer | 1,479 | 3.90 | 78.46 | 89.52 |
Add New Venue /wp-admin/post-new.php?post_type=tribe_venue | 4,205 | 9.69 | 235.49 | 192.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_actionscheduler_actions
- wp_tec_events
- wp_tec_occurrences
- wp_actionscheduler_logs
- wp_actionscheduler_claims
- wp_actionscheduler_groups
- Zombie WordPress options were found after uninstall: 24 options
- action_scheduler_hybrid_store_demarkation
- schema-ActionScheduler_LoggerSchema
- db_upgraded
- tec_ct1_occurrences_table_schema_version
- tec_ct1_migration_state
- widget_recent-comments
- tribe_last_generate_rewrite_rules
- tec_timed_tribe_supports_async_process
- tec_timed_tec_custom_tables_v1_initialized
- tribe_last_save_post
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 72× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/the-events-calendar/src/views/embed/meta.php
- > /wp-content/plugins/the-events-calendar/common/src/Tribe/Main.php
- > /wp-content/plugins/the-events-calendar/src/Tribe/Cost_Utils.php
- > /wp-content/plugins/the-events-calendar/src/admin-views/organizer-meta-box.php
- > /wp-content/plugins/the-events-calendar/src/Tribe/Options_Exception.php
- > /wp-content/plugins/the-events-calendar/src/views/v2/components/events-bar/views/list.php
- > /wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/functions/classes.php
- > /wp-content/plugins/the-events-calendar/src/views/v2/month/calendar-body/day/multiday-events/multiday-event/bar/title.php
- > /wp-content/plugins/the-events-calendar/src/Tribe/Customizer/Single_Event.php
- > /wp-content/plugins/the-events-calendar/common/src/Tribe/Admin/Help_Page.php
- 965× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TEC\\Events\\Custom_Tables\\V1\\Migration\\State' not found in wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/admin-views/migration/phase/cancel-in-progress.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/the-events-calendar/common/src/admin-views/widgets/components/fields/dropdown.php:35
- > PHP Fatal error
Uncaught Error: Class 'TEC\\Common\\Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'TEC\\Common\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php:27
- > PHP Notice
Trying to get property 'exists' of non-object in wp-content/plugins/the-events-calendar/src/views/v2/latest-past/event/featured-image.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function tribe() in wp-content/plugins/the-events-calendar/common/src/admin-views/help-calendar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/admin-views/migration/icons/rerun.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/the-events-calendar/common/src/views/v2/components/icons/virtual.php:24
- > PHP Notice
Undefined variable: event in wp-content/plugins/the-events-calendar/src/views/v2/event-status/status-label.php on line 22
- > PHP Fatal error
Uncaught Error: Interface 'Tribe__Events__REST__Interfaces__Post_Repository' not found in wp-content/plugins/the-events-calendar/src/Tribe/REST/V1/Post_Repository.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: events, calendar, schedule, organizer, event
the-events-calendar/the-events-calendar.php Passed 13 tests
Analyzing the main PHP file in "The Events Calendar" version 6.2.8.1
128 characters long description:
The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected172,110 lines of code in 1,872 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,525 | 31,422 | 101,416 | 120,155 |
JavaScript | 154 | 11,840 | 17,776 | 45,332 |
CSS | 75 | 536 | 471 | 4,962 |
Markdown | 9 | 271 | 0 | 814 |
JSON | 2 | 0 | 0 | 609 |
SVG | 105 | 0 | 1 | 238 |
HTML | 2 | 0 | 6 | 0 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 343.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.00 |
Code structure | ||
---|---|---|
Namespaces | 160 | |
Interfaces | 75 | |
Traits | 51 | |
Classes | 936 | |
▷ Abstract classes | 76 | 8.12% |
▷ Concrete classes | 860 | 91.88% |
▷ Final classes | 11 | 1.28% |
Methods | 7,926 | |
▷ Static methods | 868 | 10.95% |
▷ Public methods | 6,372 | 80.39% |
▷ Protected methods | 1,194 | 15.06% |
▷ Private methods | 360 | 4.54% |
Functions | 675 | |
▷ Named functions | 388 | 57.48% |
▷ Anonymous functions | 287 | 42.52% |
Constants | 338 | |
▷ Global constants | 14 | 4.14% |
▷ Class constants | 324 | 95.86% |
▷ Public constants | 314 | 96.91% |
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
125 compressed PNG files occupy 1.76MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/jquery/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
src/resources/images/events-bar/icon-day-hover@2x.png | 0.34KB | 0.65KB | 0.00% |
common/src/resources/images/help/customizing.png | 93.87KB | 98.84KB | 0.00% |
common/src/resources/images/help/getting-started.png | 67.13KB | 71.76KB | 0.00% |
src/resources/images/migration/preview-prompt-screenshot.png | 66.29KB | 25.83KB | ▼ 61.03% |