Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/another-events-calendar/widgets/search/search.php+160
Function create_function() is deprecated
Server metrics [RAM: ▼0.56MB] [CPU: ▼44.88ms] Passed 4 tests
Analyzing server-side resources used by Another Events Calendar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.04 | 11.52 ▼33.71 |
Dashboard /wp-admin | 3.45 ▲0.14 | 14.77 ▼38.06 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 17.01 ▼30.84 |
Add New Post /wp-admin/post-new.php | 3.45 ▼2.44 | 14.24 ▼76.91 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 14.80 ▼21.43 |
Event Tags /wp-admin/edit-tags.php?taxonomy=aec_tags&post_type=aec_events | 3.45 | 17.67 |
Settings /wp-admin/edit.php?post_type=aec_events&page=aec_settings | 3.45 | 13.61 |
Organizers /wp-admin/edit.php?post_type=aec_organizers | 3.45 | 13.98 |
Venues /wp-admin/edit.php?post_type=aec_venues | 3.45 | 14.34 |
All Events /wp-admin/edit.php?post_type=aec_events | 3.45 | 15.33 |
Event Categories /wp-admin/edit-tags.php?taxonomy=aec_categories&post_type=aec_events | 3.45 | 17.05 |
Recurring Events /wp-admin/edit.php?post_type=aec_recurring_events | 3.45 | 14.96 |
Add New /wp-admin/post-new.php?post_type=aec_events | 3.45 | 13.79 |
Server storage [IO: ▲1.06MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 20 new options
New WordPress options |
---|
aec_general_settings |
widget_aec-widget-upcoming-events |
can_compress_scripts |
aec_calendar_settings |
aec_version |
widget_theysaidso_widget |
widget_recent-comments |
widget_aec-widget-search |
widget_aec-widget-mini-calendar |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Another Events Calendar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲185 | 14.66 ▼0.12 | 1.97 ▼0.03 | 38.49 ▼9.24 |
Dashboard /wp-admin | 2,280 ▲89 | 5.98 ▲1.08 | 137.15 ▲27.46 | 44.32 ▲3.41 |
Posts /wp-admin/edit.php | 2,172 ▲83 | 2.66 ▲0.68 | 48.50 ▲12.99 | 35.37 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,462 ▼74 | 18.57 ▼4.60 | 603.87 ▼80.28 | 30.26 ▼25.09 |
Media Library /wp-admin/upload.php | 1,471 ▲86 | 5.12 ▲0.83 | 102.64 ▼4.08 | 42.18 ▼4.82 |
Event Tags /wp-admin/edit-tags.php?taxonomy=aec_tags&post_type=aec_events | 1,320 | 2.48 | 39.20 | 28.39 |
Settings /wp-admin/edit.php?post_type=aec_events&page=aec_settings | 2,287 | 2.65 | 38.99 | 33.85 |
Organizers /wp-admin/edit.php?post_type=aec_organizers | 1,135 | 2.69 | 41.80 | 27.06 |
Venues /wp-admin/edit.php?post_type=aec_venues | 1,135 | 2.74 | 38.23 | 27.71 |
All Events /wp-admin/edit.php?post_type=aec_events | 1,200 | 2.66 | 39.97 | 32.98 |
Event Categories /wp-admin/edit-tags.php?taxonomy=aec_categories&post_type=aec_events | 1,348 | 2.49 | 38.94 | 30.61 |
Recurring Events /wp-admin/edit.php?post_type=aec_recurring_events | 1,206 | 2.68 | 41.07 | 30.12 |
Add New /wp-admin/post-new.php?post_type=aec_events | 5,072 | 9.08 | 301.79 | 219.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/another-events-calendar/widgets/search/search.php+160
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 10 options in the database
- db_upgraded
- widget_recent-comments
- widget_aec-widget-past-events
- widget_aec-widget-mini-calendar
- can_compress_scripts
- widget_aec-widget-search
- widget_aec-widget-upcoming-events
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 48 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=aec_events
- > Deprecated in wp-content/plugins/another-events-calendar/widgets/mini-calender/mini-calendar.php+288
Function create_function() is deprecated
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/another-events-calendar/public/partials/categories/aec-public-category-header-display.php
- > /wp-content/plugins/another-events-calendar/public/partials/tags/aec-public-tag-header-display.php
- 65× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: phone in wp-content/plugins/another-events-calendar/public/partials/organizers/aec-public-organizer-header-display.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/another-events-calendar/admin/partials/settings/aec-admin-settings-display.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/another-events-calendar/widgets/mini-calender/views/widget.php:37
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/another-events-calendar/widgets/upcoming-events/views/form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/another-events-calendar/admin/partials/recurring-events/aec-admin-recurring-settings-display.php:12
- > PHP Notice
Undefined variable: widget_id in wp-content/plugins/another-events-calendar/widgets/mini-calender/views/widget.php on line 32
- > PHP Notice
Undefined variable: description in wp-content/plugins/another-events-calendar/public/partials/events/aec-public-single-event-display.php on line 23
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/another-events-calendar/widgets/search/views/form.php:9
- > PHP Notice
Undefined variable: aec_query in wp-content/plugins/another-events-calendar/widgets/upcoming-events/views/widget.php on line 9
- > PHP Notice
Undefined variable: year in wp-content/plugins/another-events-calendar/widgets/mini-calender/views/widget.php on line 15
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=aec_events
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3.exp&ver=6.3.1 208:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/post-new.php?post_type=aec_events
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?v=3.exp&ver=6.3.1 128:245 "Geocoding Service: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account"
Optimizations
Plugin configuration 96% from 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
9 plugin tags: events, event management, event, map, venue...
another-events-calendar/another-events-calendar.php 92% from 13 tests
The main PHP file in "Another Events Calendar" ver. 1.7.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 240 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin18,141 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 2,599 | 2,298 | 9,491 |
CSS | 3 | 70 | 14 | 7,131 |
JavaScript | 5 | 441 | 641 | 1,231 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 6.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 2 | 1.30% |
▷ Public methods | 148 | 96.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 3.90% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
public/images/m3.png | 3.86KB | 3.06KB | ▼ 20.80% |
public/images/m1.png | 2.93KB | 2.20KB | ▼ 25.07% |
public/images/m4.png | 5.57KB | 4.23KB | ▼ 24.08% |
public/images/placeholder-profile.png | 7.40KB | 2.00KB | ▼ 73.04% |
public/images/m2.png | 3.18KB | 2.36KB | ▼ 25.77% |