Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼41.42ms] Passed 4 tests
Server-side resources used by Google Sheets Integration for Caldera Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 42.22 ▼5.25 |
Dashboard /wp-admin | 3.42 ▲0.07 | 27.90 ▼70.83 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 28.55 ▼24.25 |
Add New Post /wp-admin/post-new.php | 3.42 ▼2.47 | 35.59 ▼64.55 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 25.16 ▼6.06 |
Google Sheets /wp-admin/admin.php?page=caldera-forms-google-sheet-config | 3.42 | 27.97 |
Server storage [IO: ▲28.14MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Try to limit filesystem usage to 25MB (currently using 28.14MB)
Filesystem: 11,643 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
gs2_token_v4 |
gs2_client_id |
gs2_client_secret |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Sheets Integration for Caldera Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.62 ▼0.75 | 1.84 ▼0.14 | 46.94 ▼0.18 |
Dashboard /wp-admin | 2,206 ▲24 | 5.79 ▼0.06 | 108.55 ▼76.16 | 39.29 ▼15.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.05 | 38.44 ▼9.05 | 36.13 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.66 ▼0.38 | 677.37 ▲32.31 | 59.00 ▲5.52 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.39 ▲0.24 | 95.63 ▼5.93 | 39.68 ▼4.22 |
Google Sheets /wp-admin/admin.php?page=caldera-forms-google-sheet-config | 857 | 2.04 | 26.00 | 24.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/cf-google-sheets/cf-google-sheets.php+110
Use of undefined constant CFCORE_VER - assumed 'CFCORE_VER' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=caldera-forms-google-sheet-config
- > Warning in wp-content/plugins/cf-google-sheets/cf-google-sheets.php+110
Use of undefined constant CFCORE_VER - assumed 'CFCORE_VER' (this will throw an Error in a future version of PHP)
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
- 4095× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Reviews.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/Appengine/RepairApplicationRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/Slides/UpdateVideoPropertiesRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/PosInventoryResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/cf-google-sheets/lib/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/Pubsub/Topic.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/HangoutsChat/UserMentionMetadata.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/cf-google-sheets/lib/vendor/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached/Resource/ProjectsLocationsOperations.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: caldera forms, google sheets, google, sheets
cf-google-sheets/cf-google-sheets.php Passed 13 tests
Analyzing the main PHP file in "Google Sheets Integration for Caldera Forms" version 2.5
45 characters long description:
Send data to Google Sheets on form submission
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin569,815 lines of code in 11,618 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11,556 | 29,336 | 348,630 | 563,109 |
Markdown | 40 | 1,830 | 0 | 5,214 |
JSON | 15 | 0 | 0 | 1,316 |
CSS | 1 | 1 | 0 | 74 |
YAML | 2 | 6 | 0 | 43 |
JavaScript | 1 | 3 | 4 | 29 |
XML | 1 | 0 | 0 | 11 |
Dockerfile | 1 | 8 | 0 | 10 |
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
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 632.00 |
Average method complexity | 1.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 33 | |
Traits | 9 | |
Classes | 11,498 | |
▷ Abstract classes | 10 | 0.09% |
▷ Concrete classes | 11,488 | 99.91% |
▷ Final classes | 13 | 0.11% |
Methods | 81,528 | |
▷ Static methods | 156 | 0.19% |
▷ Public methods | 81,097 | 99.47% |
▷ Protected methods | 174 | 0.21% |
▷ Private methods | 257 | 0.32% |
Functions | 173 | |
▷ Named functions | 60 | 34.68% |
▷ Anonymous functions | 113 | 65.32% |
Constants | 888 | |
▷ Global constants | 32 | 3.60% |
▷ Class constants | 856 | 96.40% |
▷ Public constants | 837 | 97.78% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/sheets-logo.png | 3.11KB | 2.06KB | ▼ 33.55% |