68% cf7-builder

Code Review | Builder for Contact Form 7 by Webconstruct - Drag & Drop Contact Form Builder

WordPress plugin Builder for Contact Form 7 by Webconstruct - Drag & Drop Contact Form Builder scored68%from 54 tests.

About plugin

  • Plugin page: cf7-builder
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: May 6, 2023
  • Number of updates: 52
  • Update frequency: every 15.9 days
  • Top authors: webconstructio (76.92%)planetstudio (25%)

Code review

54 tests

User reviews

9 reviews

Install metrics

800+ active /8,801 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▲4.21ms] Passed 4 tests

An overview of server-side resources used by Builder for Contact Form 7 by Webconstruct - Drag & Drop Contact Form Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1754.53 ▲10.98
Dashboard /wp-admin3.57 ▲0.1861.64 ▼2.27
Posts /wp-admin/edit.php3.64 ▲0.2462.36 ▲14.12
Add New Post /wp-admin/post-new.php6.14 ▲0.2196.88 ▲1.45
Media Library /wp-admin/upload.php3.46 ▲0.1946.71 ▲6.66
Overview /wp-admin/admin.php?page=overview_cf7b3.4444.02
Submissions /wp-admin/admin.php?page=submissions_cf7b3.4845.37
Themes /wp-admin/admin.php?page=themes_cf7b3.9546.30

Server storage [IO: ▲0.63MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: 3 new tables, 7 new options
New tables
wp_cf7b_submissions
wp_cf7b_themes
wp_cf7b_builder
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
cf7b_preview_permalink
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Builder for Contact Form 7 by Webconstruct - Drag & Drop Contact Form Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲10214.26 ▼0.291.81 ▼0.4843.86 ▲1.42
Dashboard /wp-admin2,294 ▲1235.61 ▲0.0385.57 ▼3.2943.36 ▲1.35
Posts /wp-admin/edit.php2,203 ▲1032.03 ▲0.0335.52 ▼1.1338.01 ▲4.54
Add New Post /wp-admin/post-new.php1,620 ▲9423.20 ▼0.01673.19 ▼1.7157.85 ▼3.72
Media Library /wp-admin/upload.php1,499 ▲1084.23 ▼0.03105.28 ▲0.8046.72 ▲2.89
Overview /wp-admin/admin.php?page=overview_cf7b9621.9629.8239.44
Submissions /wp-admin/admin.php?page=submissions_cf7b9672.1027.2029.45
Themes /wp-admin/admin.php?page=themes_cf7b9491.7030.3427.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_cf7b_submissions
    • wp_cf7b_builder
    • wp_cf7b_themes
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • cf7b_preview_permalink
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cf7-builder/cf7-builder.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cf7-builder/deactivate/deactivation_popup.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

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

"Builder for Contact Form 7 by Webconstruct - Drag & Drop Contact Form Builder" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
140 characters long description:
Builder for Contact Form 7 is a user-friendly form builder plugin which makes Contact Form 7 form easy to build just using drag & drop tool.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,956 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP224125213,652
CSS8239782,297
JavaScript614472991
SVG10016

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 130)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.52
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity130.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes14.76%
Methods129
▷ Static methods96.98%
▷ Public methods12596.90%
▷ Protected methods21.55%
▷ Private methods21.55%
Functions42
▷ Named functions24.76%
▷ Anonymous functions4095.24%
Constants15
▷ Global constants960.00%
▷ Class constants640.00%
▷ Public constants6100.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
No PNG images were found in this plugin