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
Install script ran successfully
Server metrics [RAM: ▼1.32MB] [CPU: ▼52.79ms] Passed 4 tests
This is a short check of server-side resources used by Legacy Google Calendar Events 2.4
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.63 ▼0.83 | 8.78 ▼31.24 |
Dashboard /wp-admin | 2.70 ▼0.61 | 8.71 ▼42.06 |
Posts /wp-admin/edit.php | 2.70 ▼0.66 | 8.13 ▼44.39 |
Add New Post /wp-admin/post-new.php | 2.70 ▼3.19 | 10.48 ▼93.45 |
Media Library /wp-admin/upload.php | 2.70 ▼0.53 | 9.32 ▼27.34 |
General Settings /wp-admin/edit.php?post_type=gce_feed&page=google-calendar-events_general_settings | 2.70 | 8.41 |
All GCal Feeds /wp-admin/edit.php?post_type=gce_feed | 2.70 | 11.76 |
Add New /wp-admin/post-new.php?post_type=gce_feed | 2.70 | 8.82 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 12 new options
New WordPress options |
---|
gce_cpt_setup |
gce_admin_update_notices |
theysaidso_admin_options |
widget_recent-comments |
gce_version |
widget_recent-posts |
gce_upgrade_has_run |
can_compress_scripts |
gce_settings_general |
widget_gce_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Legacy Google Calendar Events 2.4
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲211 | 13.64 ▼1.09 | 12.10 ▲10.29 | 39.15 ▼4.59 |
Dashboard /wp-admin | 2,240 ▲63 | 5.63 ▼0.03 | 83.67 ▼9.24 | 65.62 ▲24.11 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.16 ▲0.13 | 37.18 ▼0.21 | 32.37 ▼7.11 |
Add New Post /wp-admin/post-new.php | 1,730 ▲204 | 22.36 ▼0.67 | 665.81 ▲42.65 | 58.51 ▼27.08 |
Media Library /wp-admin/upload.php | 1,454 ▲51 | 4.28 ▲0.16 | 102.78 ▲2.69 | 104.99 ▲60.44 |
General Settings /wp-admin/edit.php?post_type=gce_feed&page=google-calendar-events_general_settings | 954 | 2.34 | 30.87 | 28.89 |
All GCal Feeds /wp-admin/edit.php?post_type=gce_feed | 1,178 | 2.34 | 38.13 | 31.48 |
Add New /wp-admin/post-new.php?post_type=gce_feed | 3,155 | 8.19 | 184.48 | 153.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/legacy-google-calendar-events/views/widgets.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; GCE_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 12 options
- can_compress_scripts
- widget_recent-comments
- gce_cpt_setup
- gce_version
- db_upgraded
- theysaidso_admin_options
- gce_admin_update_notices
- gce_upgrade_has_run
- gce_settings_general
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gce_feed
- > Deprecated in wp-content/plugins/legacy-google-calendar-events/views/widgets.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; GCE_Widget has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gce_feed
- > Deprecated in wp-content/plugins/legacy-google-calendar-events/views/widgets.php+333
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function gce_ga_campaign_url() in wp-content/plugins/legacy-google-calendar-events/views/admin/gce-feed-sidebar-help.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/legacy-google-calendar-events/views/admin/display-options-meta.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/legacy-google-calendar-events/includes/misc-functions.php:200
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/legacy-google-calendar-events/includes/gce-feed-cpt.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/legacy-google-calendar-events/views/admin/gce-feed-meta-display.php:22
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/legacy-google-calendar-events/views/admin/display-options-meta.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/legacy-google-calendar-events/includes/admin/admin-functions.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/legacy-google-calendar-events/includes/shortcodes.php:165
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/legacy-google-calendar-events/views/admin/gce-feed-meta-display.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/legacy-google-calendar-events/includes/admin/upgrade.php:13
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in legacy-google-calendar-events/assets to your readme.txt
legacy-google-calendar-events/legacy-google-calendar-events.php 92% from 13 tests
The main file in "Legacy Google Calendar Events 2.4" v. 2.4.1 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:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin13,584 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 13 | 3,060 | 4,542 | 7,273 |
PHP | 21 | 921 | 980 | 3,172 |
JavaScript | 7 | 658 | 755 | 2,508 |
CSS | 5 | 180 | 100 | 631 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 53.86 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 7.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 5 | 8.77% |
▷ Public methods | 46 | 80.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 19.30% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 44.55KB | 19.37KB | ▼ 56.52% |
assets/gcal-icon-16x16.png | 4.37KB | 0.79KB | ▼ 81.81% |
assets/icon-256x256.png | 18.54KB | 5.67KB | ▼ 69.39% |
assets/screenshot-2.png | 11.97KB | 5.61KB | ▼ 53.12% |
assets/screenshot-1.png | 33.84KB | 16.35KB | ▼ 51.69% |