Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/gsheetconnector-caldera-forms/gsheetconnector-caldera-forms.php+273
Undefined variable: google_sheet_info
Server metrics [RAM: ▲0.43MB] [CPU: ▼4.36ms] Passed 4 tests
An overview of server-side resources used by Caldera Forms Google Sheets Connector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 46.57 ▲5.33 |
Dashboard /wp-admin | 3.77 ▲0.46 | 52.79 ▼5.28 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 49.41 ▼2.18 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 86.72 ▼15.32 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 41.51 ▲7.36 |
Google Sheets /wp-admin/admin.php?page=caldera-forms-gsheet-sheet-config | 3.62 | 35.83 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 710 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
cf_gs_verify |
db_upgraded |
widget_recent-posts |
cf_gs_access_code |
can_compress_scripts |
cf_gs_token |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Caldera Forms Google Sheets Connector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.32 ▼1.05 | 5.12 ▲3.10 | 46.27 ▼2.90 |
Dashboard /wp-admin | 2,203 ▲18 | 4.85 ▼1.03 | 113.41 ▼8.76 | 43.11 ▼6.09 |
Posts /wp-admin/edit.php | 2,089 ▲18 | 2.01 ▼0.01 | 36.76 ▼0.80 | 33.18 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.25 ▲5.17 | 690.35 ▲36.41 | 49.53 ▼16.08 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.37 ▲0.17 | 102.89 ▼7.65 | 45.36 ▼3.50 |
Google Sheets /wp-admin/admin.php?page=caldera-forms-gsheet-sheet-config | 862 | 2.03 | 30.28 | 35.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- cf_gs_token
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- cf_gs_access_code
- theysaidso_admin_options
- widget_theysaidso_widget
- cf_gs_verify
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 495× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/UpdateFilterViewRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/BasicChartSpec.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/google/apiclient-services/src/Google/Service/Oauth2/Userinfoplus.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php:33
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/PivotValue.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gsheetconnector-caldera-forms/includes/pages/caldera-integration-demo-info.php:4
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/Padding.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: google sheets integrations, google sheet, contact forms, caldera forms, google...
gsheetconnector-caldera-forms/gsheetconnector-caldera-forms.php 92% from 13 tests
Analyzing the main PHP file in "Caldera Forms Google Sheets Connector" version 1.3
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected67,767 lines of code in 675 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 623 | 10,071 | 33,415 | 61,134 |
Markdown | 27 | 1,318 | 0 | 4,361 |
JSON | 14 | 0 | 0 | 1,072 |
CSS | 2 | 46 | 16 | 768 |
JavaScript | 2 | 18 | 64 | 192 |
PO File | 1 | 53 | 56 | 150 |
XML | 3 | 3 | 0 | 43 |
YAML | 2 | 9 | 0 | 38 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 626.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 613 | |
▷ Abstract classes | 10 | 1.63% |
▷ Concrete classes | 603 | 98.37% |
▷ Final classes | 9 | 1.49% |
Methods | 4,936 | |
▷ Static methods | 147 | 2.98% |
▷ Public methods | 4,479 | 90.74% |
▷ Protected methods | 205 | 4.15% |
▷ Private methods | 252 | 5.11% |
Functions | 250 | |
▷ Named functions | 69 | 27.60% |
▷ Anonymous functions | 181 | 72.40% |
Constants | 351 | |
▷ Global constants | 29 | 8.26% |
▷ Class constants | 322 | 91.74% |
▷ Public constants | 322 | 100.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
5 PNG files occupy 0.49MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/help.png | 1.51KB | 1.35KB | ▼ 10.25% |
assets/img/google-sheet-logo.png | 3.11KB | 2.06KB | ▼ 33.55% |
assets/img/GSheet-Connector_1.png | 5.61KB | 5.57KB | ▼ 0.66% |
assets/img/caldera.png | 486.26KB | 142.77KB | ▼ 70.64% |
assets/img/btn_google_signin_dark_pressed_web.png | 4.14KB | 2.15KB | ▼ 48.09% |