Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.09MB] [CPU: ▲28.33ms] 75% from 4 tests
Server-side resources used by Elegant Calendar Lite - WordPress Events Calendar Plugin
The following require your attention
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.09MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.44 | 60.30 ▲15.36 |
Dashboard /wp-admin | 8.92 ▲5.62 | 79.92 ▲30.29 |
Posts /wp-admin/edit.php | 8.92 ▲5.57 | 81.11 ▲34.90 |
Add New Post /wp-admin/post-new.php | 9.63 ▲3.74 | 121.85 ▲36.17 |
Media Library /wp-admin/upload.php | 8.92 ▲5.69 | 67.20 ▲32.75 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 8.92 | 63.41 |
Server storage [IO: ▲6.98MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2,925 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
fs_debug_mode |
fs_accounts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Elegant Calendar Lite - WordPress Events Calendar Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲270 | 15.20 ▲0.56 | 29.39 ▲27.59 | 27.96 ▼16.43 |
Dashboard /wp-admin | 2,240 ▲69 | 5.86 ▲0.96 | 102.98 ▼22.71 | 45.04 ▼2.89 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.00 ▼0.01 | 40.29 ▲3.74 | 38.63 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 23.10 ▲5.42 | 652.01 ▼41.03 | 55.94 ▲5.52 |
Media Library /wp-admin/upload.php | 1,422 ▲43 | 4.25 ▲0.07 | 94.53 ▼3.16 | 46.17 ▲0.71 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 1,084 | 1.84 | 26.77 | 28.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/elegant-calendar-lite/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_accounts
- fs_debug_mode
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- fs_active_plugins
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/elegant-calendar-lite/admin/views/calendar/map.php
- > /wp-content/plugins/elegant-calendar-lite/admin/views/calendar/list.php
- > /wp-content/plugins/elegant-calendar-lite/admin/views/calendar/day.php
- > /wp-content/plugins/elegant-calendar-lite/admin/views/calendar/month.php
- > /wp-content/plugins/elegant-calendar-lite/admin/views/calendar/grid.php
- > /wp-content/plugins/elegant-calendar-lite/admin/views/calendar/week.php
- 31× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elegant-calendar-lite/admin/views/settings/content.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elegant-calendar-lite/admin/views/settings/sections/tab-general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/elegant-calendar-lite/admin/views/calendar/filter.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elegant-calendar-lite/admin/views/settings/header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elegant-calendar-lite/admin/views/event/wizard/sections/tab-color.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elegant-calendar-lite/admin/views/event/list/header.php:1
- > PHP Notice
Undefined variable: filter in wp-content/plugins/elegant-calendar-lite/admin/views/calendar/grid.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/elegant-calendar-lite/admin/views/event/wizard/sections/tab-organizer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elegant-calendar-lite/admin/views/settings/sections/tab-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function elegant_single_event_meta_data() in wp-content/plugins/elegant-calendar-lite/templates/single-event-meta.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #2, #3, #4, #5, #6, #7, #8, #9 in elegant-calendar-lite/assets to your readme.txt
elegant-calendar-lite/elegant-calendar-lite.php Passed 13 tests
The main PHP file in "Elegant Calendar Lite - WordPress Events Calendar Plugin" ver. 1.6.6 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Elegant Calendar is a flexible plugin that make you easily manage and share events.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected44,364 lines of code in 1,974 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 170 | 8,773 | 18,529 | 36,147 |
CSS | 27 | 705 | 98 | 4,972 |
SVG | 1,736 | 0 | 0 | 1,752 |
JavaScript | 40 | 282 | 532 | 1,279 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 67.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 5 | 7.25% |
▷ Concrete classes | 64 | 92.75% |
▷ Final classes | 0 | 0.00% |
Methods | 1,395 | |
▷ Static methods | 205 | 14.70% |
▷ Public methods | 989 | 70.90% |
▷ Protected methods | 25 | 1.79% |
▷ Private methods | 381 | 27.31% |
Functions | 122 | |
▷ Named functions | 122 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 152 | |
▷ Global constants | 101 | 66.45% |
▷ Class constants | 51 | 33.55% |
▷ Public constants | 51 | 100.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
40 PNG files occupy 0.38MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/elegant-calendar-event-details.png | 184.10KB | 58.04KB | ▼ 68.47% |
assets/css/admin/images/ui-icons_228ef1_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
assets/images/img-bi@2x.png | 6.72KB | 3.40KB | ▼ 49.34% |
assets/css/admin/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |