68% getresponse

Code Review | GetResponse Forms by Optin Cat

WordPress plugin GetResponse Forms by Optin Cat scored68%from 54 tests.

About plugin

  • Plugin page: getresponse
  • Plugin version: 2.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2015
  • Latest release: Sep 27, 2023
  • Number of updates: 123
  • Update frequency: every 24.6 days
  • Top authors: davidhme (62.6%)fatcatapps (29.27%)flippy101 (7.32%)RyanNovotny (3.25%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /72,494 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.95MB] [CPU: ▲4.54ms] Passed 4 tests

Server-side resources used by GetResponse Forms by Optin Cat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9751.64 ▲4.72
Dashboard /wp-admin4.26 ▲0.9661.25 ▲5.98
Posts /wp-admin/edit.php4.30 ▲0.9561.47 ▲9.18
Add New Post /wp-admin/post-new.php6.84 ▲0.95100.53 ▲0.50
Media Library /wp-admin/upload.php4.17 ▲0.9445.84 ▲6.96
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page4.0841.09
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade3.9834.74
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins4.2250.83
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page4.0943.39
Add New /wp-admin/post-new.php?post_type=easy-opt-ins7.2791.72

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 239 new files
Database: 2 new tables, 10 new options
New tables
wp_fca_eoi_subscribers
wp_fca_eoi_activity
New WordPress options
fca_eoi_allow_customform
widget_recent-posts
fca_eoi_subscribers_table_ver
widget_recent-comments
fca_eoi_settings
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_easy-opt-in-widget
can_compress_scripts

Browser metrics Passed 4 tests

GetResponse Forms by Optin Cat: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,086 ▲32514.17 ▼0.202.72 ▲0.8339.74 ▼4.29
Dashboard /wp-admin2,472 ▲2926.06 ▲0.39111.10 ▲24.0285.16 ▲43.79
Posts /wp-admin/edit.php2,252 ▲1492.07 ▲0.0940.98 ▼4.6233.64 ▼5.24
Add New Post /wp-admin/post-new.php6,414 ▲4,88627.95 ▲4.60847.43 ▲151.5439.51 ▼19.96
Media Library /wp-admin/upload.php1,454 ▲574.27 ▲0.03106.72 ▲5.5468.75 ▲24.39
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page9801.6627.7727.92
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade1,0896.27334.95154.91
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins1,2692.1737.9643.23
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page1,2573.2676.3139.92
Add New /wp-admin/post-new.php?post_type=easy-opt-ins6,8497.25283.55193.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_fca_eoi_subscribers
    • wp_fca_eoi_activity
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • fca_eoi_settings
    • db_upgraded
    • widget_easy-opt-in-widget
    • theysaidso_admin_options
    • fca_eoi_subscribers_table_ver

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 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
Please fix the following
  • 62× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/getresponse/layouts/common/layout_1/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/getresponse/layouts/common/layout_2/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/getresponse/layouts/common/layout_16/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/getresponse/layouts/common/layout_15/layout.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getresponse/includes/classes/k/k.php:420
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/getresponse/layouts/common/layout_5/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/getresponse/layouts/common/layout_15/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/getresponse/layouts/common/layout_16/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/getresponse/layouts/common/layout_2/layout.php on line 4
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/getresponse/layouts/common/layout_2/layout.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=easy-opt-ins
    • > Deprecation (warning) in unknown
    /wp-content/plugins/getresponse/assets/vendor/wysi/wysihtml.min.js?ver=2.5.6 9 Listener added for a synchronous 'DOMNodeRemoved' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Examples of the GetResponse form designs), #2 (The GetResponse Opt-in Form Builder), #3 (GetResponse Post Box), #4 (GetResponse Popup), #5 (Another GetResponse Post Box), #6 (GetResponse Form Analytics), #7 (The whole settings screen)
Please take inspiration from this readme.txt

getresponse/getresponse-wp.php 92% from 13 tests

"GetResponse Forms by Optin Cat" version 2.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("getresponse.php" instead of "getresponse-wp.php")

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin9,329 lines of code in 147 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,4011,0305,475
JavaScript344081901,911
CSS27145221,102
Sass201060534
HTML22170306
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity36.50
▷ Minimum class complexity1.00
▷ Maximum class complexity208.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods153
▷ Static methods149.15%
▷ Public methods12179.08%
▷ Protected methods00.00%
▷ Private methods3220.92%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
68 compressed PNG files occupy 1.28MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
layouts/screenshots/layout_18.png27.84KB30.22KB0.00%
layouts/screenshots/lightbox_20.png81.82KB88.74KB0.00%
layouts/screenshots/layout_8.png10.47KB11.71KB0.00%
layouts/screenshots/banner_11.png7.49KB8.32KB0.00%
layouts/screenshots/postbox_1.png14.37KB16.23KB0.00%