Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲4.68MB] [CPU: ▲27.02ms] 50% from 4 tests
This is a short check of server-side resources used by My Calendar
Please have a look at the following items
- RAM: Total memory usage must be kept under 10MB (currently 11.69MB on /wp-admin/admin.php?page=my-calendar-categories)
- CPU: Total CPU usage must kept under 500.00ms (currently 517.64ms on /wp-admin/admin.php?page=mc-contextual-help)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.15 ▲4.69 | 75.34 ▲35.69 |
Dashboard /wp-admin | 7.99 ▲4.64 | 81.55 ▲20.60 |
Posts /wp-admin/edit.php | 8.12 ▲4.76 | 88.75 ▲42.57 |
Add New Post /wp-admin/post-new.php | 10.60 ▲4.71 | 117.46 ▲16.98 |
Media Library /wp-admin/upload.php | 7.90 ▲4.68 | 67.95 ▲34.82 |
Settings /wp-admin/admin.php?page=my-calendar-config | 7.92 | 81.90 |
Design /wp-admin/admin.php?page=my-calendar-design | 8.01 | 119.52 |
My Calendar Contextual Help /wp-admin/admin.php?page=mc-contextual-help | 12.97 | 517.64 |
Categories /wp-admin/admin.php?page=my-calendar-categories | 11.69 | 410.34 |
Events /wp-admin/admin.php?page=my-calendar-manage | 7.92 | 75.05 |
Add Event /wp-admin/admin.php?page=my-calendar | 7.98 | 81.69 |
Shortcodes /wp-admin/admin.php?page=my-calendar-shortcodes | 7.88 | 83.87 |
Locations /wp-admin/admin.php?page=my-calendar-location-manager | 7.91 | 67.48 |
Help /wp-admin/admin.php?page=my-calendar-help | 7.88 | 74.95 |
Add New Location /wp-admin/admin.php?page=my-calendar-locations | 7.92 | 64.32 |
Server storage [IO: ▲3.07MB] [DB: ▲1.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,174 new files
Database: 6 new tables, 19 new options
New tables |
---|
wp_my_calendar |
wp_my_calendar_locations |
wp_my_calendar_categories |
wp_my_calendar_events |
wp_my_calendar_location_relationships |
wp_my_calendar_category_relationships |
New WordPress options |
---|
mc_db_version |
widget_theysaidso_widget |
mc_category_icon_event_1 |
mc_promotion_scheduled |
can_compress_scripts |
db_upgraded |
widget_my_calendar_simple_search |
mc_count_cache |
widget_my_calendar_today_widget |
mc_version |
... |
Browser metrics Passed 4 tests
Checking browser requirements for My Calendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲289 | 14.01 ▼0.33 | 10.77 ▲9.07 | 37.63 ▼5.55 |
Dashboard /wp-admin | 2,297 ▲123 | 5.82 ▲0.23 | 95.75 ▲3.27 | 43.57 ▼3.55 |
Posts /wp-admin/edit.php | 2,207 ▲110 | 2.25 ▲0.23 | 42.63 ▲4.89 | 34.51 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,606 ▲62 | 23.03 ▼1.87 | 601.61 ▼9.77 | 34.14 ▼30.80 |
Media Library /wp-admin/upload.php | 1,536 ▲136 | 4.57 ▲0.39 | 100.01 ▲3.52 | 42.04 ▼1.42 |
Settings /wp-admin/admin.php?page=my-calendar-config | 3,269 | 2.52 | 70.93 | 39.51 |
Design /wp-admin/admin.php?page=my-calendar-design | 4,379 | 7.33 | 154.53 | 78.71 |
My Calendar Contextual Help /wp-admin/admin.php?page=mc-contextual-help | 797 | 1.94 | 31.34 | 19.21 |
Categories /wp-admin/admin.php?page=my-calendar-categories | 1,432 | 2.39 | 52.98 | 38.14 |
Events /wp-admin/admin.php?page=my-calendar-manage | 1,585 | 2.21 | 32.87 | 33.28 |
Add Event /wp-admin/admin.php?page=my-calendar | 4,404 | 7.56 | 159.99 | 98.28 |
Shortcodes /wp-admin/admin.php?page=my-calendar-shortcodes | 2,499 | 2.13 | 37.50 | 38.05 |
Locations /wp-admin/admin.php?page=my-calendar-location-manager | 1,288 | 2.13 | 36.39 | 33.90 |
Help /wp-admin/admin.php?page=my-calendar-help | 1,250 | 2.15 | 37.88 | 34.90 |
Add New Location /wp-admin/admin.php?page=my-calendar-locations | 1,382 | 2.12 | 35.50 | 34.54 |
Uninstaller [IO: ▲0.06MB] [DB: ▲1.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 6 tables in the database
- wp_my_calendar_categories
- wp_my_calendar_category_relationships
- wp_my_calendar_location_relationships
- wp_my_calendar
- wp_my_calendar_locations
- wp_my_calendar_events
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- mc-event-category_children
- widget_recent-posts
- mc_version
- db_upgraded
- mc_uninstalled
- mc_db_version
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mc-contextual-help
- > Notice in wp-content/plugins/my-calendar/my-calendar-help.php+358
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mc-contextual-help
- > Notice in wp-content/plugins/my-calendar/my-calendar-help.php+358
Trying to access array offset on value of type null
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/my-calendar/mc-templates/location-single.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_event_classes() in wp-content/plugins/my-calendar/mc-templates/event-upcoming.php:13
- > PHP Fatal error
Uncaught Error: Class 'Gamajo_Template_Loader' not found in wp-content/plugins/my-calendar/includes/class-mc-template-loader.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_event_classes() in wp-content/plugins/my-calendar/mc-templates/event-today.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_event_classes() in wp-content/plugins/my-calendar/mc-templates/event-next.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_template_tag() in wp-content/plugins/my-calendar/mc-templates/event-grid.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_template_tag() in wp-content/plugins/my-calendar/mc-templates/event-single.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/my-calendar/templates/my-calendar-template.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_template_tag() in wp-content/plugins/my-calendar/mc-templates/event-list.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_event_classes() in wp-content/plugins/my-calendar/mc-templates/event-now.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function mc_template_tag() in wp-content/plugins/my-calendar/mc-templates/event-mini.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=my-calendar-design
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=my-calendar-design 1128:264 Uncaught ReferenceError: resizeIframe is not defined
- > GET request to /wp-admin/admin.php?page=my-calendar-design
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=my-calendar-design 1116:264 Uncaught ReferenceError: resizeIframe is not defined
- > GET request to /wp-admin/admin.php?page=my-calendar-design
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=my-calendar-design 1104:267 Uncaught ReferenceError: resizeIframe is not defined
- > GET request to /wp-admin/admin.php?page=my-calendar-design
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=my-calendar-design 1140:264 Uncaught ReferenceError: resizeIframe is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
my-calendar/my-calendar.php 85% from 13 tests
The primary PHP file in "My Calendar" version 3.4.23 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/lang")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin36,934 lines of code in 1,113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 1,932 | 8,850 | 22,721 |
CSS | 28 | 1,646 | 283 | 8,549 |
JavaScript | 79 | 1,152 | 1,108 | 4,687 |
SVG | 943 | 0 | 0 | 943 |
Markdown | 2 | 9 | 0 | 19 |
XML | 1 | 0 | 0 | 15 |
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.48 |
Average class complexity | 26.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 8.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 4 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 563 | |
▷ Named functions | 558 | 99.11% |
▷ Anonymous functions | 5 | 0.89% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
42 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/old-icons/ball.png | 0.92KB | 1.00KB | 0.00% |
images/old-icons/32x32/concert.png | 2.06KB | 1.37KB | ▼ 33.63% |
images/old-icons/tickets.png | 0.76KB | 0.80KB | 0.00% |
images/old-icons/rehearsal.png | 0.60KB | 0.59KB | ▼ 0.82% |
images/old-icons/appointment.png | 0.95KB | 1.00KB | 0.00% |