74% cf7-submissions

Code Review | CF7 Submissions - Securely Store Contact Form 7 Data and Attachments, Reply to the Sender and more

WordPress plugin CF7 Submissions - Securely Store Contact Form 7 Data and Attachments, Reply to the Sender and more scored74%from 54 tests.

About plugin

  • Plugin page: cf7-submissions
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 13, 2023
  • Latest release: Nov 13, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: codexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.58MB] [CPU: ▲0.30ms] Passed 4 tests

This is a short check of server-side resources used by CF7 Submissions - Securely Store Contact Form 7 Data and Attachments, Reply to the Sender and more
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5345.18 ▼1.92
Dashboard /wp-admin3.90 ▲0.5949.98 ▲0.66
Posts /wp-admin/edit.php3.95 ▲0.5953.50 ▲3.65
Add New Post /wp-admin/post-new.php6.50 ▲0.6195.43 ▼1.20
Media Library /wp-admin/upload.php3.83 ▲0.5941.31 ▲4.84
Submissions /wp-admin/admin.php?page=cf7-submissions3.8540.06

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 70 new files
Database: 3 new tables, 9 new options
New tables
wp_cf7_submission_data
wp_cf7_submission_files
wp_cf7_submissions
New WordPress options
widget_recent-comments
cf7s-submissions_version
widget_recent-posts
theysaidso_admin_options
pl-survey_cf7-submissions-activated
widget_theysaidso_widget
cf7s-submissions_install_time
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for CF7 Submissions - Securely Store Contact Form 7 Data and Attachments, Reply to the Sender and more
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲14213.83 ▼0.527.46 ▲5.5840.44 ▼3.44
Dashboard /wp-admin2,244 ▲705.76 ▲0.1987.30 ▼18.8777.65 ▲34.43
Posts /wp-admin/edit.php2,150 ▲532.09 ▲0.0840.64 ▲3.0539.07 ▲5.93
Add New Post /wp-admin/post-new.php1,728 ▲20222.64 ▼0.64674.47 ▼22.6859.56 ▲4.43
Media Library /wp-admin/upload.php1,446 ▲494.22 ▲0.02100.43 ▼17.6476.09 ▲28.46
Submissions /wp-admin/admin.php?page=cf7-submissions1,1261.9029.6428.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_cf7_submissions
    • wp_cf7_submission_files
    • wp_cf7_submission_data
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-submissions/inc/functions.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-submissions/inc/functions.php on line 6
    • > 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-submissions/inc/functions.php on line 6
    • > 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-submissions/inc/functions.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-submissions/inc/functions.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-submissions/inc/functions.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: contact form 7 entries, submissions for contact form 7, contact form 7

cf7-submissions/cf7-submissions.php 92% from 13 tests

"CF7 Submissions - Securely Store Contact Form 7 Data and Attachments, Reply to the Sender and more" version 0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,789 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP369391,0473,450
CSS7313898
JavaScript7221268
JSON400171
Markdown2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes24
▷ Abstract classes28.33%
▷ Concrete classes2291.67%
▷ Final classes14.55%
Methods196
▷ Static methods2412.24%
▷ Public methods18694.90%
▷ Protected methods21.02%
▷ Private methods84.08%
Functions19
▷ Named functions1052.63%
▷ Anonymous functions947.37%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.38MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshots/screenshot-3.png150.14KB41.51KB▼ 72.35%
vendor/codexpert/plugin/src/assets/img/survey.png7.31KB3.08KB▼ 57.88%
vendor/codexpert/plugin/src/assets/img/checked.png18.81KB9.90KB▼ 47.36%
assets/screenshots/screenshot-4.png36.23KB10.71KB▼ 70.44%
assets/screenshots/screenshot-2.png86.01KB26.13KB▼ 69.62%