Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.11ms] Passed 4 tests
An overview of server-side resources used by The Events Calendar Shortcode & Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.36 ▼2.02 |
Dashboard /wp-admin | 3.45 ▲0.11 | 48.18 ▼14.64 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 41.84 ▼7.85 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 88.34 ▼3.94 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 33.94 ▲2.62 |
Welcome to The Events Calendar Shortcode & Block /wp-admin/index.php?page=the-events-calendar-shortcode-getting-started | 3.57 | 36.24 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
ecs_activation_date |
Browser metrics Passed 4 tests
An overview of browser requirements for The Events Calendar Shortcode & Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.31 ▼0.40 | 1.71 ▲0.02 | 44.37 ▲0.93 |
Dashboard /wp-admin | 2,198 ▲20 | 5.62 ▲0.00 | 83.47 ▼34.59 | 40.26 ▼3.39 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.01 | 36.25 ▼0.76 | 30.80 ▼4.69 |
Add New Post /wp-admin/post-new.php | 1,546 ▲12 | 23.16 ▼1.77 | 579.89 ▼16.78 | 51.02 ▼9.07 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.19 ▼0.05 | 98.92 ▼1.57 | 42.76 ▼2.50 |
Welcome to The Events Calendar Shortcode & Block /wp-admin/index.php?page=the-events-calendar-shortcode-getting-started | 1,652 | 8.81 | 269.23 | 92.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- ecs_activation_date
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/the-events-calendar-shortcode/templates/getting-started.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/the-events-calendar-shortcode/templates/admin-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-events-calendar-shortcode/block/init.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/the-events-calendar-shortcode/templates/getting-started.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-events-calendar-shortcode/includes/notices/rating.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-events-calendar-shortcode/includes/ajax-endpoints.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/index.php?page=the-events-calendar-shortcode-getting-started
- > Other (warning) in unknown
/wp-admin/index.php?page=the-events-calendar-shortcode-getting-started 151 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: shortcode, calendar, the events calendar, events, event
the-events-calendar-shortcode/the-events-calendar-shortcode.php 92% from 13 tests
"The Events Calendar Shortcode & Block" version 2.8.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("5.8.6" instead of "5.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,635 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 182 | 222 | 1,138 |
PHP | 7 | 164 | 102 | 985 |
CSS | 6 | 92 | 0 | 336 |
Sass | 1 | 41 | 10 | 163 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.66MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/images/the-events-calendar-block.png | 38.75KB | 9.21KB | ▼ 76.24% |
static/the-events-calendar-shortcode-columns-photo-horizontal-design.png | 72.82KB | 26.72KB | ▼ 63.31% |
static/images/barry-harris.png | 30.93KB | 11.57KB | ▼ 62.61% |
static/event-calendar-shortcode-compact-design.png | 35.01KB | 35.35KB | 0.00% |
static/the-events-calendar-shortcode-grouped-design.png | 99.88KB | 30.43KB | ▼ 69.53% |