Benchmarks
Plugin footprint 83% 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: ▲1.41MB] [CPU: ▲12.24ms] Passed 4 tests
An overview of server-side resources used by Simple Calendar - Google Calendar Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.23 ▲2.76 | 59.42 ▲21.88 |
Dashboard /wp-admin | 4.70 ▲1.35 | 61.61 ▲1.24 |
Posts /wp-admin/edit.php | 4.82 ▲1.46 | 59.17 ▲13.47 |
Add New Post /wp-admin/post-new.php | 7.31 ▲1.42 | 108.29 ▲12.83 |
Media Library /wp-admin/upload.php | 4.62 ▲1.39 | 62.83 ▲21.41 |
Server storage [IO: ▲7.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,605 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_gce_widget |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
simple-calendar_version |
widget_recent-posts |
simple-calendar_admin_notices |
Browser metrics Passed 4 tests
Simple Calendar - Google Calendar Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,885 ▼876 | 11.07 ▼3.50 | 11.95 ▲10.27 | 35.37 ▼4.71 |
Dashboard /wp-admin | 2,248 ▲71 | 5.55 ▼0.01 | 89.39 ▲2.77 | 57.60 ▲20.37 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.03 ▲0.09 | 38.06 ▲4.21 | 30.22 ▼8.47 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.76 ▲0.83 | 664.65 ▼23.42 | 36.39 ▼19.18 |
Media Library /wp-admin/upload.php | 1,459 ▲56 | 4.29 ▲0.08 | 131.91 ▲33.45 | 48.53 ▲5.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_gce_widget
- widget_theysaidso_widget
- simple-calendar_admin_notices
- db_upgraded
- simple-calendar_version
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 440× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'SimpleCalendar\\plugin_deps\\Carbon\\Exceptions\\RuntimeException' not found in wp-content/plugins/google-calendar-events/third-party/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php:14
- > PHP Fatal error
Uncaught Error: Class 'SimpleCalendar\\plugin_deps\\GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/google-calendar-events/third-party/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Class 'SimpleCalendar\\plugin_deps\\Symfony\\Component\\Translation\\Exception\\RuntimeException' not found in wp-content/plugins/google-calendar-events/third-party/symfony/translation/Exception/ProviderException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'SimpleCalendar\\plugin_deps\\Symfony\\Component\\Translation\\Provider\\ProviderFactoryInterface' not found in wp-content/plugins/google-calendar-events/third-party/symfony/translation/Provider/AbstractProviderFactory.php:14
- > PHP Fatal error
Uncaught Error: Class 'SimpleCalendar\\plugin_deps\\Google\\Model' not found in wp-content/plugins/google-calendar-events/third-party/google/apiclient-services/src/Calendar/Setting.php:20
- > PHP Fatal error
Uncaught Error: Class 'SimpleCalendar\\plugin_deps\\Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/google-calendar-events/third-party/monolog/monolog/src/Monolog/Handler/SyslogHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'SimpleCalendar\\plugin_deps\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/google-calendar-events/third-party/monolog/monolog/src/Monolog/Handler/SamplingHandler.php:32
- > PHP Warning
require_once(wp-content/plugins/google-calendar-events/third-party/nesbot/carbon/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/google-calendar-events/third-party/nesbot/carbon/sponsors.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'SimpleCalendar\\plugin_deps\\Google\\Model' not found in wp-content/plugins/google-calendar-events/third-party/google/apiclient-services/src/Drive/User.php:20
- > PHP Fatal error
Uncaught ReflectionException: Class SimpleCalendar\\plugin_deps\\Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface does not exist in wp-content/plugins/google-calendar-events/third-party/nesbot/carbon/src/Carbon/MessageFormatter/MessageFormatterMapper.php:17
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: event calendar, google, events, calendar, calendars...
google-calendar-events/google-calendar-events.php Passed 13 tests
The main file in "Simple Calendar - Google Calendar Plugin" v. 3.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/google-calendar-events/third-party/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,338 | 4,712 | 56,993 | 62,212 |
JavaScript | 11 | 1,816 | 967 | 7,170 |
XSD | 3 | 92 | 48 | 2,803 |
CSS | 12 | 463 | 266 | 1,803 |
PO File | 1 | 379 | 455 | 783 |
JSON | 1 | 0 | 0 | 141 |
SVG | 1 | 0 | 0 | 33 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 351.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 84 | |
Interfaces | 78 | |
Traits | 39 | |
Classes | 581 | |
▷ Abstract classes | 28 | 4.82% |
▷ Concrete classes | 553 | 95.18% |
▷ Final classes | 57 | 10.31% |
Methods | 5,443 | |
▷ Static methods | 642 | 11.79% |
▷ Public methods | 4,570 | 83.96% |
▷ Protected methods | 404 | 7.42% |
▷ Private methods | 469 | 8.62% |
Functions | 530 | |
▷ Named functions | 153 | 28.87% |
▷ Anonymous functions | 377 | 71.13% |
Constants | 376 | |
▷ Global constants | 12 | 3.19% |
▷ Class constants | 364 | 96.81% |
▷ Public constants | 315 | 86.54% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.79MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pages/settings/green-tick.png | 0.52KB | 0.33KB | ▼ 36.07% |
assets/images/pages/settings/rating.png | 2.59KB | 1.89KB | ▼ 27.21% |
assets/images/pages/welcome/cof-house.png | 32.17KB | 12.50KB | ▼ 61.14% |
assets/images/pages/settings/black-tick.png | 0.41KB | 0.41KB | 0.00% |
assets/images/pages/welcome/banner-right.png | 154.92KB | 66.45KB | ▼ 57.11% |