78% cf7-responses

Code Review | Contact Form 7 Responses

WordPress plugin Contact Form 7 Responses scored 78% from 54 tests.

About plugin

  • Plugin page: cf7-responses
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Dec 18, 2018
  • Latest release: Apr 17, 2019
  • Number of updates: 16
  • Update frequency: every 7.6 days
  • Top authors: pluginrox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,201 total downloads


Plugin footprint 83% 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.00MB] [CPU: ▼142.60ms] Passed 4 tests

A check of server-side resources used by Contact Form 7 Responses
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.47 ▲3.75
Dashboard /wp-admin3.06 ▲0.0041.70 ▼5.41
Posts /wp-admin/edit.php3.11 ▲0.0048.40 ▲2.74
Add New Post /wp-admin/post-new.php5.42 ▼0.0287.81 ▼568.59
Media Library /wp-admin/upload.php3.00 ▲0.0034.45 ▲0.88
Responses /wp-admin/admin.php?page=cf7-responses2.7421.91

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 Responses
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲16316.61 ▲1.148.28 ▼0.6050.59 ▲3.39
Dashboard /wp-admin2,995 ▲645.96 ▼0.00141.92 ▼12.03116.77 ▲5.36
Posts /wp-admin/edit.php2,739 ▼02.80 ▲0.0068.34 ▼0.1594.52 ▼6.17
Add New Post /wp-admin/post-new.php1,604 ▲1318.63 ▼0.11375.08 ▼15.48109.08 ▼8.01
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02154.25 ▲1.63125.43 ▲3.52
Responses /wp-admin/admin.php?page=cf7-responses280.900.1611.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • pick_settings_latest_version

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 50% 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-responses/includes/classes/class-responses-list.php on line 8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-responses/includes/classes/class-responses-list.php on line 8
    • > 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/cf7-responses/includes/classes/class-responses-list.php on line 8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=cf7-responses
    • > Network (severe)
    wp-admin/admin.php?page=cf7-responses - Failed to load resource: the server responded with a status of 403 (Forbidden)


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Responses List), #2 (View Response Details), #3 (Export Responses)
Please take inspiration from this readme.txt

cf7-responses/cf7-responses.php Passed 13 tests

The entry point to "Contact Form 7 Responses" version 1.0.5 is a PHP file that has certain tags in its header comment area
55 characters long description:
Easy solutions to view responses from Csssontact Corm 7

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
No dangerous file extensions were detected3,514 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity28.00
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods11.37%
▷ Public methods5575.34%
▷ Protected methods34.11%
▷ Private methods1520.55%
▷ Named functions1890.00%
▷ Anonymous functions210.00%
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected