Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/another-events-calendar/widgets/search/search.php+160
Function create_function() is deprecated
Server metrics [RAM: ▼1.15MB] [CPU: ▼338.49ms] Passed 4 tests
Server-side resources used by Another Events Calendar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.23 ▼0.29 | 9.98 ▼43.58 |
Dashboard /wp-admin | 3.25 ▼0.16 | 10.94 ▼28.27 |
Posts /wp-admin/edit.php | 3.25 ▼0.39 | 9.50 ▼30.03 |
Add New Post /wp-admin/post-new.php | 3.25 ▼3.75 | 10.30 ▼1,252.09 |
Media Library /wp-admin/upload.php | 3.25 ▼0.05 | 9.67 ▼21.34 |
Organizers /wp-admin/edit.php?post_type=aec_organizers | 3.25 | 10.05 |
Settings /wp-admin/edit.php?post_type=aec_events&page=aec_settings | 3.25 | 11.00 |
Event Categories /wp-admin/edit-tags.php?taxonomy=aec_categories&post_type=aec_events | 3.25 | 10.76 |
Add New /wp-admin/post-new.php?post_type=aec_events | 3.25 | 9.47 |
Venues /wp-admin/edit.php?post_type=aec_venues | 3.25 | 15.40 |
Event Tags /wp-admin/edit-tags.php?taxonomy=aec_tags&post_type=aec_events | 3.25 | 9.43 |
Recurring Events /wp-admin/edit.php?post_type=aec_recurring_events | 3.25 | 9.36 |
All Events /wp-admin/edit.php?post_type=aec_events | 3.25 | 9.94 |
Server storage [IO: ▲1.06MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 126 new files
Database: no new tables, 14 new options
New WordPress options |
---|
aec_currency_settings |
aec_socialshare_settings |
widget_aec-widget-upcoming-events |
widget_aec-widget-mini-calendar |
aec_version |
aec_general_settings |
aec_calendar_settings |
aec_page_settings |
aec_map_settings |
aec_events_settings |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Another Events Calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,936 ▲182 | 16.61 ▲0.83 | 5.68 ▼1.34 | 2.61 ▲0.07 |
Dashboard /wp-admin | 2,987 ▲126 | 7.28 ▲1.16 | 132.98 ▼1.77 | 170.92 ▲2.55 |
Posts /wp-admin/edit.php | 2,756 ▲68 | 3.51 ▲0.27 | 70.28 ▲8.25 | 142.00 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,708 ▼44 | 22.42 ▲1.48 | 426.74 ▼22.74 | 161.25 ▲1.46 |
Media Library /wp-admin/upload.php | 1,795 ▲97 | 6.21 ▲0.72 | 131.79 ▼15.64 | 188.09 ▼105.36 |
Organizers /wp-admin/edit.php?post_type=aec_organizers | 1,521 | 3.53 | 67.17 | 121.82 |
Settings /wp-admin/edit.php?post_type=aec_events&page=aec_settings | 2,571 | 3.30 | 63.23 | 117.49 |
Event Categories /wp-admin/edit-tags.php?taxonomy=aec_categories&post_type=aec_events | 1,726 | 3.21 | 63.02 | 114.73 |
Add New /wp-admin/post-new.php?post_type=aec_events | 6,619 | 13.35 | 282.51 | 412.90 |
Venues /wp-admin/edit.php?post_type=aec_venues | 1,490 | 3.37 | 67.78 | 111.25 |
Event Tags /wp-admin/edit-tags.php?taxonomy=aec_tags&post_type=aec_events | 1,684 | 3.41 | 64.26 | 98.48 |
Recurring Events /wp-admin/edit.php?post_type=aec_recurring_events | 1,558 | 3.50 | 67.72 | 118.31 |
All Events /wp-admin/edit.php?post_type=aec_events | 1,553 | 3.54 | 69.44 | 116.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/another-events-calendar/widgets/search/search.php+160
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 4 options
- widget_aec-widget-past-events
- widget_aec-widget-search
- widget_aec-widget-upcoming-events
- widget_aec-widget-mini-calendar
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 56 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=aec_events
- > POST request to /wp-admin/admin-ajax.php
- > 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/another-events-calendar/public/partials/tags/aec-public-tag-header-display.php
- > /wp-content/plugins/another-events-calendar/public/partials/categories/aec-public-category-header-display.php
- 65× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/another-events-calendar/public/partials/events/aec-public-events-table-display.php:42
- > PHP Notice
Undefined variable: aec_query in wp-content/plugins/another-events-calendar/public/partials/events/aec-public-events-table-display.php on line 42
- > PHP Notice
Undefined variable: has_header in wp-content/plugins/another-events-calendar/public/partials/events/aec-public-events-blog-display.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/another-events-calendar/admin/partials/venues/aec-admin-venues-display.php:12
- > PHP Notice
Undefined variable: month in wp-content/plugins/another-events-calendar/widgets/mini-calender/views/widget.php on line 23
- > PHP Notice
Undefined variable: year in wp-content/plugins/another-events-calendar/widgets/mini-calender/views/widget.php on line 12
- > PHP Notice
Undefined variable: description in wp-content/plugins/another-events-calendar/public/partials/organizers/aec-public-organizer-header-display.php on line 27
- > PHP Notice
Undefined variable: widget_id in wp-content/plugins/another-events-calendar/widgets/upcoming-events/views/widget.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function aec_organizer_form_page_link() in wp-content/plugins/another-events-calendar/public/partials/user/aec-public-edit-organizer-display.php:9
- > PHP Notice
Undefined variable: widget_id in wp-content/plugins/another-events-calendar/widgets/mini-calender/views/widget.php on line 8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > 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=5.9.2 65:174 "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
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: map, booking, calendar, events, venue...
another-events-calendar/another-events-calendar.php 92% from 13 tests
The principal PHP file in "Another Events Calendar" v. 1.7.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 240 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
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 logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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
PNG files should be compressed to save space and 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/m2.png | 3.18KB | 2.36KB | ▼ 25.77% |
public/images/m1.png | 2.93KB | 2.20KB | ▼ 25.07% |
public/images/placeholder-profile.png | 7.40KB | 2.00KB | ▼ 73.04% |
public/images/m5.png | 6.68KB | 5.10KB | ▼ 23.66% |
public/images/m4.png | 5.57KB | 4.23KB | ▼ 24.08% |