Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲3.26MB] [CPU: ▲15.25ms] Passed 4 tests
Analyzing server-side resources used by Simple Event Management – Sugar Calendar (Lite)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.79 ▲2.33 | 53.63 ▲16.10 |
Dashboard /wp-admin | 6.91 ▲3.61 | 66.85 ▲20.60 |
Posts /wp-admin/edit.php | 6.97 ▲3.61 | 88.50 ▲46.91 |
Add New Post /wp-admin/post-new.php | 9.44 ▲3.55 | 100.91 ▼2.55 |
Media Library /wp-admin/upload.php | 6.77 ▲3.54 | 60.98 ▲26.85 |
Calendar /wp-admin/admin.php?page=sugar-calendar | 6.95 | 62.90 |
Settings /wp-admin/admin.php?page=sc-settings | 6.76 | 54.24 |
Sugar Calendar Upgrade /wp-admin/admin.php?page=sc-upgrades | 6.74 | 49.64 |
Add New /wp-admin/post-new.php?post_type=sc_event | 7.00 | 75.85 |
Server storage [IO: ▲1.34MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 124 new files
Database: 2 new tables, 14 new options
New tables |
---|
wp_sc_eventmeta |
wp_sc_events |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
wpdb_sc_events_version |
widget_theysaidso_widget |
wpdb_sc_eventmeta_version |
widget_sc_calendar_widget |
theysaidso_admin_options |
widget_sc_event_list_widget |
widget_sc_category_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Event Management – Sugar Calendar (Lite)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.33 ▼1.05 | 1.80 ▲0.19 | 37.94 ▼3.47 |
Dashboard /wp-admin | 2,239 ▲47 | 4.87 ▼0.11 | 111.71 ▼11.36 | 42.41 ▼4.69 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.05 ▲0.05 | 39.17 ▲0.10 | 37.55 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,543 ▲23 | 23.28 ▲0.28 | 633.27 ▼36.89 | 65.64 ▲5.72 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.22 ▲0.03 | 96.02 ▼29.05 | 44.68 ▼6.02 |
Calendar /wp-admin/admin.php?page=sugar-calendar | 2,354 | 2.64 | 53.12 | 50.81 |
Settings /wp-admin/admin.php?page=sc-settings | 2,283 | 2.15 | 45.42 | 33.13 |
Sugar Calendar Upgrade /wp-admin/admin.php?page=sc-upgrades | 3,120 | 3.39 | 55.99 | 38.45 |
Add New /wp-admin/post-new.php?post_type=sc_event | 3,625 | 7.56 | 191.48 | 69.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_sc_events
- wp_sc_eventmeta
- Zombie WordPress options detected upon uninstall: 14 options
- sc_completed_upgrades
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- wpdb_sc_eventmeta_version
- theysaidso_admin_options
- widget_sc_category_widget
- widget_sc_calendar_widget
- widget_recent-posts
- ...
Smoke tests 75% 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 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sugar-calendar-lite/sugar-calendar/includes/themes/legacy/widgets.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: A description for screenshot #5 is required in sugar-calendar-lite/assets to your readme.txt
sugar-calendar-lite/sugar-calendar-lite.php 92% from 13 tests
"Simple Event Management – Sugar Calendar (Lite)" version 2.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected22,745 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 6,270 | 14,220 | 15,753 |
CSS | 37 | 831 | 367 | 6,460 |
JavaScript | 10 | 166 | 183 | 530 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 46.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 334.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 34 | |
▷ Abstract classes | 1 | 2.94% |
▷ Concrete classes | 33 | 97.06% |
▷ Final classes | 10 | 30.30% |
Methods | 585 | |
▷ Static methods | 8 | 1.37% |
▷ Public methods | 212 | 36.24% |
▷ Protected methods | 217 | 37.09% |
▷ Private methods | 156 | 26.67% |
Functions | 292 | |
▷ Named functions | 290 | 99.32% |
▷ Anonymous functions | 2 | 0.68% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin