Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-gcalendar/admin/partials/widgets.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; WPGCWidget has a deprecated constructor
Server metrics [RAM: ▼1.76MB] [CPU: ▼52.58ms] Passed 4 tests
An overview of server-side resources used by WP Google Calendar Manager - Google Calendar Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.24 | 6.69 ▼33.32 |
Dashboard /wp-admin | 2.25 ▼1.06 | 6.16 ▼41.55 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 7.17 ▼41.68 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.64 | 8.75 ▼93.75 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 5.84 ▼28.30 |
All Events /wp-admin/admin.php?page=google-calendar-plg | 2.25 | 6.88 |
Documentation /wp-admin/admin.php?page=wpgc-documentation | 2.25 | 8.62 |
Settings /wp-admin/admin.php?page=google-calendar-settings | 2.25 | 8.12 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 78 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_events |
wp_api_setting |
New WordPress options |
---|
widget_recent-posts |
events_database_version |
widget_wpgc_widget |
widget_theysaidso_widget |
api_setting_database_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Google Calendar Manager - Google Calendar Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲235 | 15.72 ▲0.96 | 18.65 ▲16.93 | 42.47 ▼3.30 |
Dashboard /wp-admin | 2,249 ▲61 | 6.08 ▲1.20 | 111.13 ▼1.09 | 73.98 ▲28.06 |
Posts /wp-admin/edit.php | 2,150 ▲58 | 2.83 ▲0.83 | 43.29 ▼0.28 | 33.96 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,560 ▲46 | 23.74 ▲6.17 | 682.91 ▲64.12 | 37.28 ▼10.98 |
Media Library /wp-admin/upload.php | 1,434 ▲43 | 5.31 ▲1.11 | 114.23 ▲15.19 | 85.37 ▲42.68 |
All Events /wp-admin/admin.php?page=google-calendar-plg | 713 | 2.11 | 16.98 | 20.68 |
Documentation /wp-admin/admin.php?page=wpgc-documentation | 1,539 | 9.81 | 264.70 | 112.13 |
Settings /wp-admin/admin.php?page=google-calendar-settings | 996 | 2.40 | 32.15 | 27.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-gcalendar/admin/partials/widgets.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; WPGCWidget has a deprecated constructor
- The uninstall procedure failed, leaving 2 tables in the database
- wp_api_setting
- wp_events
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- events_database_version
- widget_wpgc_widget
- widget_recent-comments
- api_setting_database_version
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=google-calendar-settings
- > Deprecated in wp-content/plugins/wp-gcalendar/admin/partials/widgets.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; WPGCWidget has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=google-calendar-settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WPGCWidget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gcalendar/admin/partials/ajax-callback.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-gcalendar/admin/partials/shortcodes.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gcalendar/admin/partials/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-gcalendar/admin/partials/wp-gcalendar-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-gcalendar/admin/partials/trans.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-gcalendar/admin/partials/widgets.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: google calendar, calendar, wp google calendar, calnedar events, google calendar event manager...
wp-gcalendar/wp-gcalendar.php Passed 13 tests
This is the main PHP file of "WP Google Calendar Manager - Google Calendar Plugin" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Wordpress plugin to manage your google calendar events.
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
There were no executable files found in this plugin4,342 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 405 | 413 | 1,672 |
CSS | 10 | 327 | 209 | 1,359 |
PHP | 20 | 186 | 520 | 1,017 |
PO File | 2 | 130 | 130 | 294 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 13 | |
▷ Named functions | 13 | 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
19 PNG files occupy 0.83MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/1.png | 27.88KB | 13.15KB | ▼ 52.82% |
admin/img/7.png | 104.98KB | 37.76KB | ▼ 64.03% |
admin/img/18.png | 36.22KB | 12.91KB | ▼ 64.35% |
admin/img/3.png | 50.04KB | 21.09KB | ▼ 57.86% |
admin/img/calendar.png | 3.23KB | 0.84KB | ▼ 74.01% |