Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without 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.02MB] [CPU: ▼290.67ms] Passed 4 tests
Server-side resources used by Caldera Google Sheets Connector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.40 | 56.39 ▲37.11 |
Dashboard /wp-admin | 3.41 ▲0.00 | 39.23 ▲6.97 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 36.35 ▼2.21 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.57 ▼1,166.88 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.41 ▼0.56 |
Google Sheets /wp-admin/admin.php?page=caldera-forms-gsheet-sheet-config | 3.10 | 18.14 |
Server storage [IO: ▲4.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 709 new files
Database: no new tables, 3 new options
New WordPress options |
---|
cf_gs_token |
cf_gs_verify |
cf_gs_access_code |
Browser metrics Passed 4 tests
A check of browser resources used by Caldera Google Sheets Connector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,749 ▼5 | 15.58 ▼0.40 | 5.91 ▼0.69 | 2.26 ▼0.60 |
Dashboard /wp-admin | 2,874 ▲13 | 6.04 ▼0.12 | 121.66 ▼18.38 | 155.77 ▼11.92 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.23 ▼0.00 | 63.71 ▼2.14 | 137.66 ▼8.03 |
Add New Post /wp-admin/post-new.php | 1,690 ▼21 | 20.63 ▼0.00 | 442.91 ▼5.37 | 161.92 ▲0.77 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▲0.10 | 143.82 ▼7.30 | 187.07 ▼3.24 |
Google Sheets /wp-admin/admin.php?page=caldera-forms-gsheet-sheet-config | 28 | 0.94 | 0.06 | 19.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 3 options
- cf_gs_token
- cf_gs_verify
- cf_gs_access_code
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 495× PHP files trigger errors when accessed directly with GET requests (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/DeleteDimensionRequest.php:18
- > 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/DeleteDimensionGroupResponse.php:18
- > 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/BatchUpdateSpreadsheetRequest.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/Sheets/GridProperties.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php:24
- > 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/AddChartResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/gsheetconnector-caldera-forms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/Resource/Spreadsheets.php:26
- > 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/Drive/TeamDriveList.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/SlackbotHandlerTest.php:22
- > 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/GelfMessageFormatterTest.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=caldera-forms-gsheet-sheet-config
- > Network (severe)
wp-admin/admin.php?page=caldera-forms-gsheet-sheet-config - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
gsheetconnector-caldera-forms/gsheetconnector-caldera-forms.php 92% from 13 tests
The principal PHP file in "Caldera Google Sheets Connector" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected67,630 lines of code in 675 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 623 | 10,034 | 33,394 | 61,019 |
Markdown | 27 | 1,318 | 0 | 4,361 |
JSON | 14 | 0 | 0 | 1,072 |
CSS | 2 | 45 | 16 | 757 |
JavaScript | 2 | 18 | 64 | 190 |
PO File | 1 | 50 | 54 | 141 |
XML | 3 | 3 | 0 | 43 |
YAML | 2 | 9 | 0 | 38 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 626.00 |
Average method complexity | 2.19 |
▷ 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,931 | |
▷ Static methods | 146 | 2.96% |
▷ Public methods | 4,474 | 90.73% |
▷ Protected methods | 205 | 4.16% |
▷ Private methods | 252 | 5.11% |
Functions | 250 | |
▷ Named functions | 69 | 27.60% |
▷ Anonymous functions | 181 | 72.40% |
Constants | 350 | |
▷ Global constants | 29 | 8.29% |
▷ Class constants | 321 | 91.71% |
▷ Public constants | 321 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.48MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/help.png | 1.51KB | 1.35KB | ▼ 10.25% |
assets/img/GSheet-Connector_1.png | 5.61KB | 5.57KB | ▼ 0.66% |
assets/img/caldera.png | 486.26KB | 142.77KB | ▼ 70.64% |
assets/img/google-sheet-logo.png | 3.11KB | 2.06KB | ▼ 33.55% |