Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▲0.44ms] 75% from 4 tests
Server-side resources used by Event Calendar AutoPOP
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 581.19ms on /wp-admin/admin.php?page=autopop_draft_events)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.42 ▲0.57 |
Dashboard /wp-admin | 3.51 ▲0.21 | 48.93 ▲1.21 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 47.37 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 90.03 ▼1.17 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 39.79 ▲8.08 |
AutoPOP /wp-admin/admin.php?page=autopop_menu | 3.40 | 31.53 |
Add Event /wp-admin/admin.php?page=autopop_add_update_event | 3.47 | 39.08 |
Draft Events /wp-admin/admin.php?page=autopop_draft_events | 3.42 | 581.19 |
Settings /wp-admin/admin.php?page=autopop_settings | 3.40 | 32.66 |
Live Events /wp-admin/admin.php?page=autopop_live_events | 3.42 | 497.57 |
Past Events /wp-admin/admin.php?page=autopop_past_events | 3.42 | 494.37 |
EventUpon Calendar /wp-admin/options-general.php?page=eventupon_calendar | 3.40 | 31.24 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
eventupon_calendar_header_text_color |
eventupon_calendar_background_color |
eventupon_calendar_agenda_date_bg |
eventupon_calendar_header_background_color |
widget_recent-posts |
eventupon_calendar_grid_color |
db_upgraded |
eventupon_calendar_view_mode |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Event Calendar AutoPOP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲147 | 13.78 ▼0.60 | 1.82 ▲0.26 | 39.78 ▼2.83 |
Dashboard /wp-admin | 2,290 ▲102 | 5.36 ▲0.50 | 120.05 ▲8.30 | 41.21 ▼2.29 |
Posts /wp-admin/edit.php | 2,178 ▲89 | 3.14 ▲1.10 | 51.61 ▲16.71 | 31.62 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,580 ▲60 | 23.51 ▲0.26 | 620.16 ▼48.14 | 36.05 ▼11.72 |
Media Library /wp-admin/upload.php | 1,479 ▲91 | 5.81 ▲1.60 | 115.48 ▲16.91 | 45.30 ▲3.26 |
AutoPOP /wp-admin/admin.php?page=autopop_menu | 905 | 2.93 | 37.32 | 26.01 |
Add Event /wp-admin/admin.php?page=autopop_add_update_event | 2,576 | 8.16 | 152.37 | 50.19 |
Draft Events /wp-admin/admin.php?page=autopop_draft_events | 912 | 2.94 | 36.64 | 25.00 |
Settings /wp-admin/admin.php?page=autopop_settings | 737 | 1.57 | 6.91 | 21.40 |
Live Events /wp-admin/admin.php?page=autopop_live_events | 916 | 2.94 | 41.71 | 32.64 |
Past Events /wp-admin/admin.php?page=autopop_past_events | 909 | 3.10 | 37.29 | 25.38 |
EventUpon Calendar /wp-admin/options-general.php?page=eventupon_calendar | 737 | 1.57 | 7.35 | 17.28 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=autopop_settings
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/eventupon-calendar/templates/settings.tpl.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/eventupon-calendar/templates/settings.tpl.php(5): do_settings_fields()
#1 wp-content/plugins/eventupon-calendar/settings.php(410): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): EventUpon_Calendar_Settings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown- > GET request to /wp-admin/options-general.php?page=eventupon_calendar
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/eventupon-calendar/templates/settings.tpl.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/eventupon-calendar/templates/settings.tpl.php(5): do_settings_fields()
#1 wp-content/plugins/eventupon-calendar/settings.php(410): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): EventUpon_Calendar_Settings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/eventupon-calendar/templates/_delete_event.tpl.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/eventupon-calendar/templates/add_update_event.tpl.php:62
- > PHP Notice
Undefined variable: eventType in wp-content/plugins/eventupon-calendar/templates/event_list_header.tpl.php on line 1
- > PHP Notice
Undefined variable: event_update_id in wp-content/plugins/eventupon-calendar/templates/add_update_event.tpl.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eventupon-calendar/settings.php:416
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/eventupon-calendar/templates/settings.tpl.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/eventupon-calendar/templates/dashboard.tpl.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/eventupon-calendar/eventupon-calendar.php:548
- > PHP Fatal error
Uncaught Error: Class 'EventUpon_Calendar' not found in wp-content/plugins/eventupon-calendar/templates/event_list_header.tpl.php:1
- > PHP Notice
Undefined variable: page in wp-content/plugins/eventupon-calendar/templates/_delete_event.tpl.php on line 17
- > PHP Notice
Undefined variable: event_id2delete in wp-content/plugins/eventupon-calendar/templates/_delete_event.tpl.php on line 24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=autopop_add_update_event
- > Javascript (severe) in unknown
/wp-content/plugins/eventupon-calendar/_inc/form-validator/security.js 8:7872 Uncaught TypeError: Cannot read properties of undefined (reading 'validationConfig')
Optimizations
Plugin configuration 97% 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: Please reduce the number of tags, currently 23 tag instead of maximum 10
eventupon-calendar/eventupon-calendar.php Passed 13 tests
The main PHP script in "Event Calendar AutoPOP" version 1.5 is automatically included on every request by WordPress
113 characters long description:
Displays events from EventUpon.com, activate and place [eu-calendar] tag to a page you want to have the calendar.
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
Good job! No executable or dangerous file extensions detected2,950 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 281 | 579 | 1,568 |
PHP | 8 | 134 | 94 | 1,162 |
CSS | 5 | 36 | 27 | 220 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
_inc/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
_inc/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
_inc/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
_inc/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |