Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.65MB] [CPU: ▼16.37ms] Passed 4 tests
Server-side resources used by Event Calendar With Map View(ECWMV)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.75 ▼4.09 |
Dashboard /wp-admin | 3.36 ▲0.05 | 53.91 ▲4.68 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.11 ▼0.64 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.75 | 37.24 ▼65.41 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.53 ▲5.98 |
Settings /wp-admin/edit.php?post_type=ecwmv-event&page=ecwmv-settings | 3.31 | 29.78 |
Add New /wp-admin/post-new.php?post_type=ecwmv-event | 3.28 | 37.06 |
All Events /wp-admin/edit.php?post_type=ecwmv-event | 3.32 | 38.84 |
Event Category /wp-admin/edit-tags.php?taxonomy=ecwmv-category&post_type=ecwmv-event | 3.27 | 33.24 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
ecwmv_theme_style |
ecwmv_default_settings |
ecwmv_curr_symbol |
ecwmv_map_zoom |
widget_ecwmv_widget |
ecwmv_map_center_lat |
widget_recent-posts |
theysaidso_admin_options |
ecwmv_meta_fields |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Event Calendar With Map View(ECWMV)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.43 ▼0.86 | 7.45 ▲5.62 | 36.38 ▼16.55 |
Dashboard /wp-admin | 2,241 ▲50 | 4.91 ▼1.05 | 147.34 ▲40.91 | 54.71 ▲7.95 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▲0.03 | 39.44 ▲0.67 | 36.15 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,563 ▲35 | 23.36 ▲4.86 | 681.25 ▼22.12 | 54.81 ▲4.22 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.19 ▼0.02 | 96.36 ▼0.05 | 41.04 ▼2.26 |
Settings /wp-admin/edit.php?post_type=ecwmv-event&page=ecwmv-settings | 945 | 2.07 | 24.65 | 26.47 |
Add New /wp-admin/post-new.php?post_type=ecwmv-event | 3,507 | 11.95 | 311.75 | 229.95 |
All Events /wp-admin/edit.php?post_type=ecwmv-event | 1,110 | 1.98 | 36.06 | 32.35 |
Event Category /wp-admin/edit-tags.php?taxonomy=ecwmv-category&post_type=ecwmv-event | 1,294 | 2.13 | 25.98 | 27.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 15 options in the database
- theysaidso_admin_options
- ecwmv_map_center_lat
- ecwmv_default_settings
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_ecwmv_widget
- ecwmv_map_center_lng
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=ecwmv-event&page=ecwmv-settings
- > Notice in wp-content/plugins/event-calendar-with-map-view/settings.php+6
Undefined index: setting_nonce
- > GET request to /wp-admin/post-new.php?post_type=ecwmv-event
- > Warning in wp-content/plugins/event-calendar-with-map-view/register_fields.php+19
Use of undefined constant ecwmv_create_field - assumed 'ecwmv_create_field' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=ecwmv-event
- > Notice in wp-content/plugins/event-calendar-with-map-view/js/location-map.php+3
Undefined index: post
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/event-calendar-with-map-view/register_widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/event-calendar-with-map-view/js/location-map.php:3
- > 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)
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=ecwmv-event
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places 232: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=ecwmv-event
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places 163:373 "google.maps.event.addDomListener() is deprecated, use the standard\naddEventListener() method instead:\nhttps://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\nThe feature will continue to work and there is no plan to decommission\nit."
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Calendar View with on hover event details.), #2 (Single Page of Event with all details.), #3 (Edit Event Page on admin side.), #4 (Category add, edit and delete for events.), #5 (Event Setting page in admin side.), #6 (List View of events.), #7 (Grid View of events.), #8 (Map view with each events as marker and on click you can find info window of that event.), #9 (Event Listing Widget)
event-calendar-with-map-view/index.php 92% from 13 tests
The main file in "Event Calendar With Map View(ECWMV)" v. 0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("event-calendar-with-map-view.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin15,105 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 3,081 | 1,725 | 10,228 |
CSS | 12 | 349 | 239 | 3,892 |
PHP | 8 | 135 | 22 | 985 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
11 PNG files occupy 1.41MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/img/marker-icon.png | 1.53KB | 1.51KB | ▼ 0.90% |
screenshot-3.png | 306.32KB | 118.79KB | ▼ 61.22% |
screenshot-2.png | 209.61KB | 69.90KB | ▼ 66.65% |
screenshot-8.png | 336.68KB | 141.43KB | ▼ 57.99% |
screenshot-9.png | 44.63KB | 23.52KB | ▼ 47.31% |