Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.47ms] Passed 4 tests
Server-side resources used by Gecko Google Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.34 ▼8.13 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.27 ▼2.07 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.73 ▲4.32 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.65 ▲9.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.80 ▲0.01 |
Server storage [IO: ▲7.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 583 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Gecko Google Calendar: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲196 | 14.82 ▲0.52 | 38.00 ▲35.84 | 39.57 ▼0.05 |
Dashboard /wp-admin | 2,229 ▲41 | 5.89 ▲0.00 | 108.73 ▲5.58 | 42.82 ▼3.62 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.01 ▼0.03 | 40.90 ▲4.40 | 35.38 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 18.39 ▼5.00 | 592.80 ▼84.48 | 57.56 ▼6.96 |
Media Library /wp-admin/upload.php | 1,408 ▲26 | 4.19 ▲0.10 | 101.69 ▼3.12 | 43.54 ▲0.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gecko-google-calendar/admin/partials/active-calendars.php
- > /wp-content/plugins/gecko-google-calendar/admin/partials/unavailable.php
- 311× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/gecko-google-calendar/vendor/google/apiclient-services/src/Google/Service/Calendar/FreeBusyGroup.php:18
- > PHP Notice
Undefined variable: isAuth in wp-content/plugins/gecko-google-calendar/admin/partials/header.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\Tests\\BaseTest' not found in wp-content/plugins/gecko-google-calendar/vendor/google/auth/tests/HttpHandler/HttpHandlerFactoryTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/gecko-google-calendar/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\Tests\\BaseTest' not found in wp-content/plugins/gecko-google-calendar/vendor/google/auth/tests/HttpHandler/Guzzle5HttpHandlerTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Rijndael' not found in wp-content/plugins/gecko-google-calendar/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php:59
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/gecko-google-calendar/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/gecko-google-calendar/vendor/google/apiclient-services/src/Google/Service/Oauth2/Resource/Userinfo.php:26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/gecko-google-calendar/vendor/monolog/monolog/tests/Monolog/LoggerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/gecko-google-calendar/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
3 plugin tags: calendar, google-calendar, skeleton
gecko-google-calendar/gecko-google-calendar.php Passed 13 tests
"Gecko Google Calendar" version 1.6.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
120 characters long description:
Gecko Google Calendar connects your site to Google Calendar and allows events to be displayed on pages using shortcodes.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin81,077 lines of code in 537 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 443 | 42,979 | 80,488 | 51,946 |
JavaScript | 4 | 1,567 | 1,107 | 11,092 |
TypeScript | 24 | 958 | 4,317 | 5,486 |
JSON | 21 | 0 | 0 | 4,704 |
Markdown | 28 | 1,403 | 0 | 4,583 |
CSS | 2 | 712 | 9 | 3,003 |
Sass | 9 | 45 | 2 | 175 |
XML | 3 | 3 | 0 | 43 |
YAML | 2 | 9 | 0 | 36 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 592.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 25 | |
Traits | 6 | |
Classes | 425 | |
▷ Abstract classes | 10 | 2.35% |
▷ Concrete classes | 415 | 97.65% |
▷ Final classes | 9 | 2.17% |
Methods | 3,407 | |
▷ Static methods | 134 | 3.93% |
▷ Public methods | 2,949 | 86.56% |
▷ Protected methods | 204 | 5.99% |
▷ Private methods | 254 | 7.46% |
Functions | 245 | |
▷ Named functions | 72 | 29.39% |
▷ Anonymous functions | 173 | 70.61% |
Constants | 322 | |
▷ Global constants | 21 | 6.52% |
▷ Class constants | 301 | 93.48% |
▷ Public constants | 301 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin