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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.86MB] [CPU: ▲1.11ms] Passed 4 tests
This is a short check of server-side resources used by Events Calendar for Google
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 39.45 ▼0.89 |
Dashboard /wp-admin | 4.29 ▲0.98 | 51.90 ▲2.37 |
Posts /wp-admin/edit.php | 4.35 ▲1.00 | 49.94 ▲2.87 |
Add New Post /wp-admin/post-new.php | 6.85 ▲0.97 | 90.30 ▲0.09 |
Media Library /wp-admin/upload.php | 4.19 ▲0.96 | 40.62 ▲7.99 |
Go Pro /wp-admin/admin.php?page=gc-general-settings&page=gc-pro-features | 4.45 | 44.43 |
Advanced Settings /wp-admin/admin.php?page=gc-general-settings&page=gc-advanced-settings | 4.94 | 41.84 |
Event Attributes /wp-admin/admin.php?page=gc-general-settings&page=gc-event-attributes | 4.49 | 39.36 |
Server storage [IO: ▲5.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Events Calendar for Google
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲212 | 13.81 ▼0.57 | 5.54 ▲3.86 | 39.04 ▼8.87 |
Dashboard /wp-admin | 2,237 ▲52 | 5.14 ▲0.23 | 105.70 ▼8.98 | 41.06 ▼2.49 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.07 ▲0.08 | 35.95 ▼1.91 | 33.90 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 18.33 ▼4.90 | 620.77 ▼64.65 | 49.64 ▼3.18 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.24 ▲0.07 | 102.93 ▲2.42 | 43.01 ▲0.26 |
Go Pro /wp-admin/admin.php?page=gc-general-settings&page=gc-pro-features | 865 | 2.16 | 31.55 | 24.49 |
Advanced Settings /wp-admin/admin.php?page=gc-general-settings&page=gc-advanced-settings | 4,702 | 3.18 | 94.69 | 27.56 |
Event Attributes /wp-admin/admin.php?page=gc-general-settings&page=gc-event-attributes | 965 | 1.95 | 32.04 | 23.66 |
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: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 39× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_timezone_string() in wp-content/plugins/events-calendar-for-google/admin/cmb2_gc_options_fields.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/events-calendar-for-google/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: calendar, event, event calendar, events, google calendar...
events-calendar-for-google/events_calendar_for_google.php 85% from 13 tests
The principal PHP file in "Events Calendar for Google" v. 2.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("events-calendar-for-google.php" instead of "events_calendar_for_google.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin42,090 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 607 | 1,512 | 15,010 |
SVG | 3 | 0 | 0 | 9,552 |
CSS | 17 | 1,903 | 1,327 | 9,256 |
PHP | 65 | 2,457 | 6,552 | 7,901 |
PO File | 8 | 96 | 104 | 371 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 9 | 12.16% |
▷ Concrete classes | 65 | 87.84% |
▷ Final classes | 0 | 0.00% |
Methods | 582 | |
▷ Static methods | 91 | 15.64% |
▷ Public methods | 484 | 83.16% |
▷ Protected methods | 89 | 15.29% |
▷ Private methods | 9 | 1.55% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.95MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/pro-features.png | 903.63KB | 263.90KB | ▼ 70.80% |
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |