53% getresponse-integration

Code Review | GetResponse for WordPress

WordPress plugin GetResponse for WordPress scored53%from 54 tests.

About plugin

  • Plugin page: getresponse-integ...
  • Plugin version: 5.5.33
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 2, 2010
  • Latest release: May 29, 2023
  • Number of updates: 186
  • Update frequency: every 25.5 days
  • Top authors: GetResponse (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

10,000+ active /579,441 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.69MB] [CPU: ▲4.40ms] Passed 4 tests

This is a short check of server-side resources used by GetResponse for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.17 ▲0.7144.42 ▲3.64
Dashboard /wp-admin4.00 ▲0.6947.68 ▼0.46
Posts /wp-admin/edit.php4.06 ▲0.7053.06 ▲8.45
Add New Post /wp-admin/post-new.php6.58 ▲0.6999.26 ▲9.74
Media Library /wp-admin/upload.php3.92 ▲0.6940.15 ▲5.98
/wp-admin/admin.php?page=gr-integration-error3.8335.36
Help /wp-admin/admin.php?page=gr-integration-help3.9738.17
Account /wp-admin/admin.php?page=gr-integration-status3.9940.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 157 new files
Database: 5 new tables, 7 new options
New tables
wp_gr_variants_map
wp_gr_orders_map
wp_gr_configuration
wp_gr_schedule_jobs_queue
wp_gr_products_map
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_getresponse-widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for GetResponse for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10013.50 ▼0.741.82 ▼0.1541.65 ▼2.81
Dashboard /wp-admin2,240 ▲494.87 ▼1.16107.75 ▼9.9774.41 ▲32.33
Posts /wp-admin/edit.php2,129 ▲432.02 ▼0.0039.74 ▲3.9636.52 ▲1.25
Add New Post /wp-admin/post-new.php1,549 ▲1623.00 ▼0.32662.40 ▼19.9238.94 ▼16.84
Media Library /wp-admin/upload.php1,422 ▲344.27 ▲0.06113.23 ▲5.9381.06 ▲32.87
/wp-admin/admin.php?page=gr-integration-error9672.2730.1126.13
Help /wp-admin/admin.php?page=gr-integration-help9002.0325.2426.60
Account /wp-admin/admin.php?page=gr-integration-status9502.0624.3124.79

Uninstaller [IO: ▲0.74MB] [DB: ▲0.01MB] 0% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Compile error in wp-content/plugins/getresponse-integration/gr-loader.php+45
    Cannot redeclare gr() (previously declared in wp-content/plugins/getresponse-integration/gr-loader.php:46)
  • Uninstaller has failed for this plugin, leaving 157 files (0.74MB) in the plugin directory
    • (new file) getresponse/customer/classes/class-gr-contact-alread-exists-exception.php
    • (new file) getresponse/customer/classes/class-gr-customer-service.php
    • (new file) getresponse/configuration/classes/class--configuration-service.php
    • (new file) getresponse/ecommerce/classes/class-gr-address-factory.php
    • (new file) getresponse/customer/classes/class-gr-custom-fields-service.php
    • (new file) class-getresponse.php
    • (new file) getresponse/ecommerce/classes/class-gr-address.php
    • (new file) README.txt
    • (new file) composer.json
    • (new file) getresponse/ecommerce/classes/class-gr-account-service.php
    • ...
  • Zombie tables detected upon uninstall: 5 tables
    • wp_gr_orders_map
    • wp_gr_schedule_jobs_queue
    • wp_gr_variants_map
    • wp_gr_products_map
    • wp_gr_configuration
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • widget_getresponse-widget
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/getresponse-integration/gr-settings/gr-settings-filters.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/getresponse-integration/gr-templates/admin/settings/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/getresponse-integration/gr-templates/admin/widgets/admin/scripts.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/getresponse-integration/gr-templates/admin/settings/footer.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

getresponse-integration/gr-loader.php 85% from 13 tests

The entry point to "GetResponse for WordPress" version 5.5.33 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("getresponse-integration.php" instead of "gr-loader.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 305 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin10,900 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PHP1292,2442,6169,445
CSS313034712
JavaScript7756389
PO File1155240297
JSON20051
SVG1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.53
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes77
▷ Abstract classes00.00%
▷ Concrete classes77100.00%
▷ Final classes00.00%
Methods399
▷ Static methods297.27%
▷ Public methods36892.23%
▷ Protected methods20.50%
▷ Private methods297.27%
Functions97
▷ Named functions9395.88%
▷ Anonymous functions44.12%
Constants61
▷ Global constants11.64%
▷ Class constants6098.36%
▷ Public constants60100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gr-assets/img/getresponse-web-form-widget.png89.57KB28.59KB▼ 68.08%
gr-assets/img/getresponse_logo.png22.18KB11.53KB▼ 48.01%
gr-assets/img/gr_shortcode.png21.58KB8.88KB▼ 58.84%
gr-assets/img/getresponse-add-widget.png58.96KB15.55KB▼ 73.63%
gr-assets/img/buddypress_icon.png23.82KB10.90KB▼ 54.22%