Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲7.27ms] 75% from 4 tests
Server-side resources used by Events Shortcodes For The Events Calendar
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,005.38ms on /wp-admin/admin.php?page=cool-plugins-events-addon)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 44.26 ▲3.07 |
Dashboard /wp-admin | 4.66 ▲1.35 | 58.90 ▲10.05 |
Posts /wp-admin/edit.php | 4.71 ▲1.35 | 56.35 ▲5.26 |
Add New Post /wp-admin/post-new.php | 9.64 ▲3.75 | 110.80 ▲10.69 |
Media Library /wp-admin/upload.php | 4.52 ▲1.28 | 49.73 ▲15.34 |
Shortcodes Settings /wp-admin/admin.php?page=tribe_events-events-template-settings | 7.38 | 51.59 |
Dashboard /wp-admin/admin.php?page=cool-plugins-events-addon | 4.61 | 1,005.38 |
Server storage [IO: ▲2.50MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 205 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
cool-plugins-events-addon-the-events-calendar-pro |
cool-plugins-events-addon-the-events-calendar |
ect-type |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
ects_options |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics 75% from 4 tests
A check of browser resources used by Events Shortcodes For The Events Calendar
You may want to improve the following
- Nodes: You must limit the number of DOM nodes under 25,000 (currently 25,887 on /wp-admin/admin.php?page=tribe_events-events-template-settings)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲81 | 14.33 ▼0.01 | 1.74 ▼0.08 | 44.57 ▼3.02 |
Dashboard /wp-admin | 2,227 ▲53 | 5.58 ▼0.04 | 88.17 ▼10.50 | 41.58 ▼5.41 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 1.98 ▼0.05 | 39.94 ▲3.15 | 36.98 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,793 ▲267 | 26.34 ▲2.63 | 655.70 ▼53.60 | 36.63 ▼18.34 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.21 ▲0.01 | 98.23 ▼21.27 | 41.27 ▼6.20 |
Shortcodes Settings /wp-admin/admin.php?page=tribe_events-events-template-settings | 25,887 | 7.56 | 1,491.41 | 62.79 |
Dashboard /wp-admin/admin.php?page=cool-plugins-events-addon | 1,613 | 2.09 | 25.11 | 48.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- cool-plugins-events-addon-the-events-calendar
- theysaidso_admin_options
- db_upgraded
- ects_options
- can_compress_scripts
- widget_theysaidso_widget
- cool-plugins-events-addon-the-events-calendar-pro
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/template-events-calendar/admin/ect-event-shortcode.php
- > /wp-content/plugins/template-events-calendar/admin/ect-codestar-settings.php
- > /wp-content/plugins/template-events-calendar/admin/events-addon-page/includes/cool_plugins_downloader.php
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function tribe_get_start_date() in wp-content/plugins/template-events-calendar/templates/list/list.php:2
- > PHP Notice
Undefined variable: template in wp-content/plugins/template-events-calendar/templates/timeline/timeline.php on line 6
- > PHP Notice
Undefined variable: template in wp-content/plugins/template-events-calendar/templates/timeline/timeline.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/template-events-calendar/templates/timeline/timeline.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function tinycolor() in wp-content/plugins/template-events-calendar/templates/list/list-css.php:138
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/template-events-calendar/admin/visual-composer/ect-class-vc.php:12
- > PHP Notice
Undefined variable: style in wp-content/plugins/template-events-calendar/templates/timeline/timeline-css.php on line 6
- > PHP Notice
Undefined variable: featured_event_font_color in wp-content/plugins/template-events-calendar/templates/minimal-list/minimal-list-css.php on line 121
- > PHP Fatal error
Uncaught Error: Call to undefined function tribe_get_start_date() in wp-content/plugins/template-events-calendar/templates/minimal-list/minimal-list.php:2
- > PHP Fatal error
Trait 'TinyColor\\Traits\\Convert' not found in wp-content/plugins/template-events-calendar/includes/ect-tinycolor/Color.php on line 10
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: event calendar, booking, coolplugins, event manager, shortcode...
template-events-calendar/events-calendar-templates.php 77% from 13 tests
"Events Shortcodes For The Events Calendar" version 2.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("template-events-calendar.php" instead of "events-calendar-templates.php")
- Description: The description should be shorter than 140 characters (currently 196 characters long)
Code Analysis Passed 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
No dangerous file extensions were detected34,652 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,724 | 1,264 | 8,466 |
JavaScript | 19 | 1,369 | 532 | 7,233 |
CSS | 19 | 547 | 603 | 6,551 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 17 | 971 | 3 | 5,778 |
SVG | 13 | 65 | 0 | 89 |
JSON | 1 | 0 | 0 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 27.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 2 | 5.71% |
Methods | 234 | |
▷ Static methods | 58 | 24.79% |
▷ Public methods | 216 | 92.31% |
▷ Protected methods | 12 | 5.13% |
▷ Private methods | 6 | 2.56% |
Functions | 45 | |
▷ Named functions | 43 | 95.56% |
▷ Anonymous functions | 2 | 4.44% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/events-addon-page/assets/images/events-search-addon-for-the-events-calendar.png | 10.59KB | 3.76KB | ▼ 64.51% |
admin/events-addon-page/assets/images/events-widgets-for-elementor-and-the-events-calendar.png | 16.05KB | 4.20KB | ▼ 73.84% |
assets/images/ect-icon.png | 4.59KB | 2.16KB | ▼ 53.05% |
admin/events-addon-page/assets/images/the-events-calendar-countdown-addon.png | 11.88KB | 4.09KB | ▼ 65.54% |
admin/events-addon-page/assets/images/events-block-for-the-events-calendar.png | 12.89KB | 3.97KB | ▼ 69.20% |