78% integration-for-cardconnect-and-gravity-forms

Code Review | Integration for CardConnect and Gravity Forms

WordPress plugin Integration for CardConnect and Gravity Forms scored 78% from 54 tests.

About plugin

  • Plugin page: integration-for-c...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9
  • WordPress version: 6.3.1
  • First release: Mar 19, 2020
  • Latest release: Jan 13, 2023
  • Number of updates: 12
  • Update frequency: every 85.9 days
  • Top authors: kenjigarland (75%)cornershop (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,604 total downloads


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.11MB] [CPU: ▼4.26ms] Passed 4 tests

Server-side resources used by Integration for CardConnect and Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1833.16 ▼10.54
Dashboard /wp-admin3.45 ▲0.1543.78 ▼6.23
Posts /wp-admin/edit.php3.50 ▲0.1446.84 ▲0.87
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.93 ▲5.53
Media Library /wp-admin/upload.php3.31 ▲0.0832.14 ▼1.12
Scheduled Actions /wp-admin/tools.php?page=action-scheduler3.5233.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integration for CardConnect and Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.381.64 ▼0.3841.90 ▼8.25
Dashboard /wp-admin2,210 ▲225.85 ▼0.08107.12 ▼5.5440.17 ▼5.73
Posts /wp-admin/edit.php2,090 ▼22.01 ▼0.0339.77 ▲3.5336.86 ▼0.37
Add New Post /wp-admin/post-new.php1,536 ▲723.30 ▲0.18588.31 ▼85.2445.55 ▼7.08
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0293.35 ▼4.9240.64 ▼4.62
Scheduled Actions /wp-admin/tools.php?page=action-scheduler9742.0324.0527.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/pest/examples/intouch_example.php
  • 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_wpPostStore.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_ListTable' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_ListTable.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_WPCLI_QueueRunner.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_wpCommentLogger.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner_Deprecated' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_Abstract_QueueRunner.php:6
    • > PHP Fatal error
      Uncaught Pest_Curl_Exec: Failed to connect to localhost port 3000: Connection refused in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/pest/Pest.php:232
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_IntervalSchedule.php:6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/integration-for-cardconnect-and-gravity-forms/vendor/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: crm, integration, forms

integration-for-cardconnect-and-gravity-forms/gravityforms-cardconnect.php 85% from 13 tests

"Integration for CardConnect and Gravity Forms" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("integration-for-cardconnect-and-gravity-forms.php" instead of "gravityforms-cardconnect.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,782 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.62
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes811.43%
▷ Concrete classes6288.57%
▷ Final classes00.00%
▷ Static methods389.11%
▷ Public methods30773.62%
▷ Protected methods10224.46%
▷ Private methods81.92%
▷ Named functions17100.00%
▷ Anonymous functions00.00%
▷ Global constants15.00%
▷ Class constants1995.00%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin