Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.78MB] [CPU: ▼315.66ms] Passed 4 tests
This is a short check of server-side resources used by Event Calendar With Map View(ECWMV)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 55.95 ▲4.61 |
Dashboard /wp-admin | 3.57 ▲0.16 | 34.95 ▲1.92 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 39.67 ▼1.68 |
Add New Post /wp-admin/post-new.php | 3.38 ▼3.59 | 30.12 ▼1,265.37 |
Media Library /wp-admin/upload.php | 3.45 ▲0.16 | 25.68 ▲2.51 |
Event Category /wp-admin/edit-tags.php?taxonomy=ecwmv-category&post_type=ecwmv-event | 3.45 | 26.49 |
All Events /wp-admin/edit.php?post_type=ecwmv-event | 3.49 | 26.10 |
Add New /wp-admin/post-new.php?post_type=ecwmv-event | 3.64 | 37.31 |
Settings /wp-admin/edit.php?post_type=ecwmv-event&page=ecwmv-settings | 3.46 | 22.70 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 9 new options
New WordPress options |
---|
ecwmv_default_settings |
ecwmv_view_display |
widget_ecwmv_widget |
ecwmv_meta_fields |
ecwmv_map_center_lng |
ecwmv_curr_symbol |
ecwmv_theme_style |
ecwmv_map_center_lat |
ecwmv_map_zoom |
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 / | 3,818 ▲96 | 16.05 ▲0.06 | 11.12 ▲5.61 | 2.16 ▼0.09 |
Dashboard /wp-admin | 2,939 ▲81 | 6.11 ▼0.04 | 116.13 ▼22.87 | 157.17 ▼7.55 |
Posts /wp-admin/edit.php | 2,733 ▲42 | 3.25 ▲0.02 | 62.78 ▼1.78 | 141.97 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,789 ▲128 | 17.25 ▼0.27 | 419.03 ▲15.51 | 156.07 ▼1.14 |
Media Library /wp-admin/upload.php | 1,742 ▲41 | 5.46 ▼0.06 | 142.84 ▲4.65 | 189.54 ▲8.22 |
Event Category /wp-admin/edit-tags.php?taxonomy=ecwmv-category&post_type=ecwmv-event | 1,664 | 2.78 | 55.07 | 109.42 |
All Events /wp-admin/edit.php?post_type=ecwmv-event | 1,442 | 3.16 | 58.42 | 110.00 |
Add New /wp-admin/post-new.php?post_type=ecwmv-event | 4,647 | 13.98 | 274.75 | 381.31 |
Settings /wp-admin/edit.php?post_type=ecwmv-event&page=ecwmv-settings | 1,247 | 2.41 | 53.20 | 117.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- ecwmv_meta_fields
- ecwmv_theme_style
- ecwmv_map_center_lat
- ecwmv_view_display
- ecwmv_default_settings
- ecwmv_map_center_lng
- ecwmv_curr_symbol
- ecwmv_map_zoom
- widget_ecwmv_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > 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
- > 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
SRP 50% 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > 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
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/event-calendar-with-map-view/register_widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #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)
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
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
You should first fix the following items:
- Main file name: Name the main plugin file 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
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 is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 1.41MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 306.32KB | 118.79KB | ▼ 61.22% |
screenshot-4.png | 50.70KB | 19.36KB | ▼ 61.82% |
screenshot-8.png | 336.68KB | 141.43KB | ▼ 57.99% |
screenshot-1.png | 57.41KB | 22.23KB | ▼ 61.28% |
view/img/marker-icon-old.png | 10.36KB | 5.12KB | ▼ 50.60% |