83% gsheetconnector-forminator

Code Review | GSheetConnector for Forminator Forms

WordPress plugin GSheetConnector for Forminator Forms scored83%from 54 tests.

About plugin

  • Plugin page: gsheetconnector-f...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 7.4-6.4.1
  • WordPress version: 6.3.1
  • First release: May 13, 2023
  • Latest release: Nov 18, 2023
  • Number of updates: 15
  • Update frequency: every 12.6 days
  • Top authors: abdullah17 (93.33%)westerndeal (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by GSheetConnector for Forminator Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.81 ▼3.42
Dashboard /wp-admin3.31 ▼0.0343.67 ▼17.19
Posts /wp-admin/edit.php3.37 ▲0.0144.98 ▼2.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.88 ▼1.28
Media Library /wp-admin/upload.php3.24 ▲0.0131.10 ▼4.86

Server storage [IO: ▲8.26MB] [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,256 new files
Database: no new tables, 17 new options
New WordPress options
theysaidso_admin_options
gs_formntr_tab_roles_setting
gs_formntr_token
fs_active_plugins
db_upgraded
widget_recent-comments
gs_formntr_access_code
fs_accounts
widget_theysaidso_widget
gs_formntr_feeds
...

Browser metrics Passed 4 tests

An overview of browser requirements for GSheetConnector for Forminator Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▲0.001.61 ▼0.0439.70 ▼3.58
Dashboard /wp-admin2,195 ▲185.62 ▼0.0991.67 ▼9.4541.60 ▼5.52
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0439.30 ▲0.2336.50 ▼0.22
Add New Post /wp-admin/post-new.php1,529 ▲323.35 ▲0.34579.98 ▼119.6862.07 ▲2.85
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.0195.14 ▼10.7042.52 ▼0.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 17 options in the database
    • gs_formntr_feeds
    • gs_formntr_verify
    • gs_formntr_checkbox_settings
    • gs_formntr_access_code
    • gs_formntr_token
    • gs_formntr_tab_roles_setting
    • fs_accounts
    • theysaidso_admin_options
    • fs_active_plugins
    • gs_formntr_settings
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 663× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php:22
    • > PHP Warning
      Class 'Google\\Service\\Resource' not found in wp-content/plugins/gsheetconnector-forminator/lib/src/aliases.php on line 33
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\OpenSSH' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/OpenSSH.php:31
    • > PHP Fatal error
      Trait 'phpseclib3\\Crypt\\EC\\Formats\\Keys\\Common' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/XML.php on line 40
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/google/apiclient-services/src/Drive/DriveRestrictions.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/google/apiclient-services/src/Sheets/DimensionGroup.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Service\\Resource' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/google/apiclient-services/src/Drive/Resource/Revisions.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/google/apiclient-services/src/Drive/ContentRestriction.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gsheetconnector-forminator/lib/vendor/google/apiclient-services/src/Sheets/TextToColumnsRequest.php:20

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

gsheetconnector-forminator/gsheetconnector-forminator.php Passed 13 tests

The principal PHP file in "GSheetConnector for Forminator Forms" v. 1.0.2 is loaded by WordPress automatically on each request
66 characters long description:
Send your Forminator Forms data to your Google Sheets spreadsheet.

Code Analysis 95% 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
Good job! No executable or dangerous file extensions detected118,002 lines of code in 1,171 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,09721,40773,773108,170
Markdown301,72305,129
JSON19002,065
CSS152272111,819
JavaScript4147133686
YAML332102
XML10019
make1409
Bourne Shell1203

PHP code 0% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity13.27
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces82
Interfaces50
Traits14
Classes957
▷ Abstract classes21622.57%
▷ Concrete classes74177.43%
▷ Final classes537.15%
Methods7,216
▷ Static methods88112.21%
▷ Public methods5,95282.48%
▷ Protected methods4085.65%
▷ Private methods85611.86%
Functions277
▷ Named functions13548.74%
▷ Anonymous functions14251.26%
Constants676
▷ Global constants11817.46%
▷ Class constants55882.54%
▷ Public constants51892.83%

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
10 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/btn_google_signin_dark_pressed_web.png4.14KB2.15KB▼ 48.09%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/img/sync_folder_2.png12.00KB4.87KB▼ 59.40%
assets/img/GSheet-Connector_logo.png23.37KB4.89KB▼ 79.07%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%