10% gsheetconnector-for-elementor-forms

Code Review | Elementor Forms Google Sheet Connector

WordPress plugin Elementor Forms Google Sheet Connector scored10%from 54 tests.

About plugin

  • Plugin page: gsheetconnector-f...
  • Plugin version: 1.0.11
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2022
  • Latest release: Oct 26, 2023
  • Number of updates: 34
  • Update frequency: every 10.9 days
  • Top authors: abdullah17 (70.59%)westerndeal (32.35%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /7,442 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/gsheetconnector-for-elementor-forms/gsheetconnector-for-elementor-forms.php+38
    Undefined variable: pro_element

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.77ms] Passed 4 tests

Analyzing server-side resources used by Elementor Forms Google Sheet Connector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.30 ▼4.36
Dashboard /wp-admin3.31 ▲0.0045.91 ▲1.91
Posts /wp-admin/edit.php3.36 ▲0.0042.55 ▼1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.81 ▼19.42
Media Library /wp-admin/upload.php3.23 ▲0.0032.96 ▼1.90

Server storage [IO: ▲9.36MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,681 new files
Database: no new tables, 9 new options
New WordPress options
elefgs_access_code
elefgs_token
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
elefgs_verify
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elementor Forms Google Sheet Connector
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.301.84 ▲0.2042.99 ▼1.37
Dashboard /wp-admin2,198 ▲185.65 ▲0.0388.17 ▼1.5141.43 ▲5.41
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0635.23 ▼0.6932.20 ▼3.33
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▲0.39666.54 ▲14.2851.64 ▲0.43
Media Library /wp-admin/upload.php1,394 ▼64.25 ▲0.0198.25 ▼6.2844.85 ▼1.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • elefgs_token
    • elefgs_access_code
    • widget_recent-comments
    • elefgs_verify
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1028× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/psr/log/Psr/Log/AbstractLogger.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/google/apiclient-services/src/Drive/DriveCapabilities.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/google/apiclient-services/src/Sheets/DataSourceObjectReference.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\OpenSSH' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/OpenSSH.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\SymmetricKey' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/BlockCipher.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/google/apiclient-services/src/Drive/Permission.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gsheetconnector-for-elementor-forms/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/DimensionGroup.php:18

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: Please take inspiration from this readme.txt

gsheetconnector-for-elementor-forms/gsheetconnector-for-elementor-forms.php Passed 13 tests

Analyzing the main PHP file in "Elementor Forms Google Sheet Connector" version 1.0.11
57 characters long description:
Send your Elementor Form data to your Google Spreadsheet.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin147,115 lines of code in 1,590 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,48625,13487,078137,253
Markdown391,94905,758
JSON26002,139
CSS146922875
JavaScript5117162644
YAML11422273
XML63084
Python1222577
make1409
Bourne Shell1203

PHP code 0% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.28
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces89
Interfaces51
Traits14
Classes1,383
▷ Abstract classes21815.76%
▷ Concrete classes1,16584.24%
▷ Final classes534.55%
Methods10,271
▷ Static methods8928.68%
▷ Public methods8,86286.28%
▷ Protected methods4824.69%
▷ Private methods9279.03%
Functions388
▷ Named functions16943.56%
▷ Anonymous functions21956.44%
Constants762
▷ Global constants12115.88%
▷ Class constants64184.12%
▷ Public constants60193.76%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/permission_screen.png29.71KB9.43KB▼ 68.24%
assets/img/help.png1.51KB1.35KB▼ 10.25%
freemius/assets/img/gsheetconnector-for-elementor-forms.png30.67KB4.57KB▼ 85.10%
assets/img/btn_google_signin_dark_pressed_web.png4.14KB2.15KB▼ 48.09%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%