78% responder

Code Review | Responder

WordPress plugin Responder scored 78% from 54 tests.

About plugin

  • Plugin page: responder
  • Plugin version: 4.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 2, 2017
  • Latest release: Feb 5, 2023
  • Number of updates: 109
  • Update frequency: every 20.4 days
  • Top authors: tomerkcs (84.4%)idangoldman (16.51%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active / 27,732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼2.26ms] Passed 4 tests

This is a short check of server-side resources used by Responder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2039.19 ▼4.08
Dashboard /wp-admin3.48 ▲0.1746.02 ▼3.65
Posts /wp-admin/edit.php3.59 ▲0.2349.04 ▲3.20
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.36 ▼1.98
Media Library /wp-admin/upload.php3.40 ▲0.1734.92 ▲0.67

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 123 new files
Database: no new tables, 15 new options
New WordPress options
responder_live_user_token
widget_theysaidso_widget
Responder_Plugin_EnterUsername
responder_live_auth_token
theysaidso_admin_options
responder_live_enabled
Responder_Plugin__installed
responder_settings_advanced
Responder_Plugin_EnterPassword
Responder_Plugin__version
...

Browser metrics Passed 4 tests

An overview of browser requirements for Responder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18414.04 ▼0.135.58 ▲3.8544.78 ▼1.27
Dashboard /wp-admin2,243 ▲555.84 ▲0.8299.04 ▼15.3842.60 ▼6.17
Posts /wp-admin/edit.php2,122 ▲332.06 ▲0.0841.17 ▲5.7337.86 ▲7.71
Add New Post /wp-admin/post-new.php1,527 ▲1317.74 ▲0.17674.39 ▲20.8260.89 ▲13.74
Media Library /wp-admin/upload.php1,421 ▲304.23 ▲0.0495.59 ▲0.1343.41 ▼2.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 15 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • responder_settings_elementor
    • Responder_Plugin_EnterPassword
    • responder_live_auth_token
    • responder_live_enabled
    • Responder_Plugin_EnterUsername
    • responder_live_user_token
    • widget_recent-posts
    • responder_settings_advanced
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 48× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/responder/plugin/AJAX.php
    • > /wp-content/plugins/responder/integrations/ElementorPro/Controls/SystemChoice.php
    • > /wp-content/plugins/responder/integrations/PojoForms/DataManager.php
    • > /wp-content/plugins/responder/integrations/ContactForm7/Custom/PhoneValidation.php
    • > /wp-content/plugins/responder/responder.php
    • > /wp-content/plugins/responder/integrations/Elementor/Controls/StyleControls.php
    • > /wp-content/plugins/responder/api/SystemApi.php
    • > /wp-content/plugins/responder/plugin/AdminNotices.php
    • > /wp-content/plugins/responder/integrations/Version.php
    • > /wp-content/plugins/responder/integrations/Elementor/FormWidget.php
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RavMesser\\Plugin\\API' not found in wp-content/plugins/responder/templates/integrations/elementor/tab/forms.tpl.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/responder/templates/footer.tpl.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/responder/templates/integrations/pojo_forms/metabox.tpl.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/responder/templates/settings_page.tpl.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/responder/templates/integrations/elementor/controls/field_type.tpl.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'RavMesser\\Plugin\\API' not found in wp-content/plugins/responder/templates/integrations/pojo_forms/tab.tpl.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'RavMesser\\Plugin\\SettingsPage' not found in wp-content/plugins/responder/templates/tabs/getting_started.tpl.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/responder/templates/integrations/elementor/controls/hidden_field.tpl.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/responder/templates/integrations/elementor/tab/index.tpl.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/responder/templates/integrations/elementor_pro/controls/tags.tpl.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: responder, rav messer

responder/responder.php 92% from 13 tests

The primary PHP file in "Responder" version 4.3.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)

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
Everything looks great! No dangerous files found in this plugin15,908 lines of code in 108 files:
LanguageFilesBlank linesComment linesLines of code
PHP771,7367768,016
SVG2002,674
CSS10495602,555
JavaScript164331042,114
PO File1251420516
XML1121028
JSON1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.32
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces15
Interfaces0
Traits2
Classes57
▷ Abstract classes35.26%
▷ Concrete classes5494.74%
▷ Final classes00.00%
Methods433
▷ Static methods21449.42%
▷ Public methods32575.06%
▷ Protected methods245.54%
▷ Private methods8419.40%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants33
▷ Global constants1030.30%
▷ Class constants2369.70%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.43MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/vendors/DataTables/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/vendors/DataTables/images/sort_desc.png0.15KB0.25KB0.00%
assets/vendors/DataTables/images/sort_both.png0.20KB0.29KB0.00%
assets/vendors/DataTables/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/plugins_structure.png437.98KB108.99KB▼ 75.11%