Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.73ms] Passed 4 tests
A check of server-side resources used by WPForms Google Sheet Connector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.21 ▼6.61 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.86 ▼16.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.19 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.75 ▼23.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.72 ▲2.84 |
Google Sheet /wp-admin/admin.php?page=wpform-google-sheet-config | 3.00 | 23.95 |
Server storage [IO: ▲6.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,463 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
wpform_gs_verify |
wpform_uninstall |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
wpform_gs_token |
wpform_gs_access_code |
Browser metrics Passed 4 tests
A check of browser resources used by WPForms Google Sheet Connector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.17 ▼0.18 | 1.82 ▲0.15 | 39.99 ▼3.64 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.01 | 86.42 ▼4.05 | 39.21 ▼2.13 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 35.99 ▼1.58 | 29.03 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.02 ▼0.07 | 601.63 ▼74.82 | 48.83 ▼2.71 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.26 ▲0.03 | 95.38 ▼2.56 | 40.94 ▼4.09 |
Google Sheet /wp-admin/admin.php?page=wpform-google-sheet-config | 28 | 0.42 | 0.09 | 3.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- wpform_uninstall
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 992× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/google/apiclient-services/src/Sheets/IterativeCalculationSettings.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/CopySheetToAnotherSpreadsheetRequest.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/guzzlehttp/psr7/src/FnStream.php:15
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp224r1' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistp224.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/DeleteDuplicatesResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/google/apiclient-services/src/Sheets/Padding.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/PKCS8.php:42
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/google/apiclient-services/src/Sheets/UpdateProtectedRangeRequest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/gsheetconnector-wpforms/lib/vendor/google/apiclient-services/src/Drive/ReplyList.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=wpform-google-sheet-config
- > Network (severe)
wp-admin/admin.php?page=wpform-google-sheet-config - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #4, #5, #6, #7, #8 in gsheetconnector-wpforms/assets to your readme.txt
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
gsheetconnector-wpforms/gsheetconnector-wpforms.php 85% from 13 tests
"WPForms Google Sheet Connector" version 3.4.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected107,644 lines of code in 1,408 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,319 | 15,067 | 68,776 | 94,982 |
Markdown | 34 | 1,839 | 0 | 5,381 |
PO File | 5 | 680 | 735 | 2,610 |
JSON | 23 | 0 | 0 | 2,099 |
CSS | 5 | 137 | 81 | 1,936 |
JavaScript | 4 | 68 | 76 | 238 |
YAML | 9 | 33 | 2 | 235 |
Python | 1 | 22 | 25 | 77 |
XML | 4 | 0 | 0 | 56 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
SVG | 1 | 0 | 0 | 8 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 662.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 50 | |
Traits | 15 | |
Classes | 1,242 | |
▷ Abstract classes | 218 | 17.55% |
▷ Concrete classes | 1,024 | 82.45% |
▷ Final classes | 55 | 5.37% |
Methods | 8,695 | |
▷ Static methods | 692 | 7.96% |
▷ Public methods | 7,800 | 89.71% |
▷ Protected methods | 399 | 4.59% |
▷ Private methods | 496 | 5.70% |
Functions | 201 | |
▷ Named functions | 59 | 29.35% |
▷ Anonymous functions | 142 | 70.65% |
Constants | 584 | |
▷ Global constants | 18 | 3.08% |
▷ Class constants | 566 | 96.92% |
▷ 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.22MB with 0.11MB 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/permission_screen.png | 29.71KB | 9.43KB | ▼ 68.24% |
assets/img/faq-screenshot1.png | 7.26KB | 3.17KB | ▼ 56.39% |
assets/img/new_settings_screenshot.png | 54.61KB | 20.78KB | ▼ 61.95% |
assets/img/btn_google_signin_dark_pressed_web.png | 4.14KB | 2.15KB | ▼ 48.09% |