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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.75ms] Passed 4 tests
A check of server-side resources used by Gravity Forms Google Sheet Connector
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.22 ▼8.74 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.67 ▼17.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.79 ▲3.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.22 ▼10.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.38 ▲1.83 |
Server storage [IO: ▲5.91MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,395 new files
Database: no new tables, 10 new options
New WordPress options |
---|
gfgs_token |
gfgs_access_code |
gfgs_feeds |
gfgs_verify |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms Google Sheet Connector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▼0.09 | 1.76 ▲0.10 | 38.00 ▼5.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.03 | 110.96 ▲15.44 | 39.46 ▼3.88 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.09 | 40.42 ▲0.56 | 36.97 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.34 ▲0.27 | 648.79 ▲5.98 | 61.24 ▲7.72 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.04 | 93.53 ▼4.21 | 41.66 ▲0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 970× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Revisions.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Files.php:26
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\sect233r1' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistb233.php:18
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP224r1.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/google/apiclient-services/src/Sheets/Color.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp112r1.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/google/apiclient-services/src/Sheets/DeveloperMetadataLocation.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:28
- > PHP Fatal error
Trait 'Google\\Auth\\CacheTrait' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/google/auth/src/GCECache.php on line 38
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/gsheetconnector-gravity-forms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect163k1.php:21
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: gravity forms to google sheet, google sheets, gravity forms google sheets, gravity forms google sheet, gravity forms google drive...
gsheetconnector-gravity-forms/gsheetconnector-gravityforms.php 85% from 13 tests
"Gravity Forms Google Sheet Connector" version 1.3.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- 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
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gsheetconnector-gravity-forms.php" instead of "gsheetconnector-gravityforms.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin101,030 lines of code in 1,351 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,290 | 14,455 | 67,692 | 92,340 |
Markdown | 31 | 1,733 | 0 | 5,063 |
JSON | 19 | 0 | 0 | 2,065 |
CSS | 1 | 118 | 57 | 919 |
JavaScript | 1 | 53 | 35 | 242 |
PO File | 1 | 81 | 108 | 228 |
YAML | 4 | 5 | 2 | 127 |
XML | 2 | 0 | 0 | 34 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 662.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 50 | |
Traits | 14 | |
Classes | 1,217 | |
▷ Abstract classes | 215 | 17.67% |
▷ Concrete classes | 1,002 | 82.33% |
▷ Final classes | 53 | 5.29% |
Methods | 8,547 | |
▷ Static methods | 681 | 7.97% |
▷ Public methods | 7,669 | 89.73% |
▷ Protected methods | 391 | 4.57% |
▷ Private methods | 487 | 5.70% |
Functions | 201 | |
▷ Named functions | 59 | 29.35% |
▷ Anonymous functions | 142 | 70.65% |
Constants | 582 | |
▷ Global constants | 16 | 2.75% |
▷ Class constants | 566 | 97.25% |
▷ Public constants | 526 | 92.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/faq-screenshot-3.png | 65.90KB | 20.78KB | ▼ 68.47% |
assets/image/GravityGSheet-Connector-logo.png | 23.37KB | 4.89KB | ▼ 79.07% |
assets/image/btn_google_signin_dark_pressed_web.png | 4.14KB | 2.15KB | ▼ 48.09% |
assets/image/help.png | 1.51KB | 1.35KB | ▼ 10.25% |
assets/image/faq-screenshot-2.png | 26.93KB | 9.91KB | ▼ 63.22% |