77% cf7-widget-elementor

Code Review | Void Contact Form 7 Widget For Elementor Page Builder

WordPress plugin Void Contact Form 7 Widget For Elementor Page Builder scored77%from 54 tests.

About plugin

  • Plugin page: cf7-widget-elementor
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2017
  • Latest release: Aug 21, 2023
  • Number of updates: 84
  • Update frequency: every 27.0 days
  • Top authors: voidthemes (78.57%)voidcoders (21.43%)shawon786 (2.38%)

Code review

54 tests

User reviews

101 reviews

Install metrics

30,000+ active /642,134 total downloads

Benchmarks

Plugin footprint 83% 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.06MB] [CPU: ▲2.29ms] Passed 4 tests

A check of server-side resources used by Void Contact Form 7 Widget For Elementor Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.38 ▲0.74
Dashboard /wp-admin3.37 ▲0.0646.25 ▼1.89
Posts /wp-admin/edit.php3.42 ▲0.0650.81 ▲2.87
Add New Post /wp-admin/post-new.php5.97 ▲0.08100.86 ▲11.73
Media Library /wp-admin/upload.php3.29 ▲0.0643.06 ▲7.42

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 94 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
void_cf7_elementor_activation_time

Browser metrics Passed 4 tests

This is an overview of browser requirements for Void Contact Form 7 Widget For Elementor Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10214.73 ▲0.131.69 ▲0.0542.69 ▲2.35
Dashboard /wp-admin2,269 ▲895.73 ▲0.1382.36 ▼3.5073.66 ▲32.84
Posts /wp-admin/edit.php2,178 ▲782.01 ▲0.0539.77 ▲0.9937.52 ▲2.96
Add New Post /wp-admin/post-new.php1,759 ▲23124.34 ▲0.94714.46 ▲24.5055.39 ▲0.86
Media Library /wp-admin/upload.php1,474 ▲774.18 ▼0.0493.90 ▼8.6474.43 ▲32.01

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 7 options in the database
    • void_cf7_elementor_activation_time
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/cf7-widget-elementor/analyst/templates/optout.php
    • > /wp-content/plugins/cf7-widget-elementor/analyst/templates/optin.php
    • > /wp-content/plugins/cf7-widget-elementor/analyst/templates/forms/install.php
    • > /wp-content/plugins/cf7-widget-elementor/custom-editor/modal-editor.php
    • > /wp-content/plugins/cf7-widget-elementor/analyst/templates/forms/deactivate.php
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/cf7-widget-elementor/analyst/src/Http/DummyHttpClient.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\RequestContract' not found in wp-content/plugins/cf7-widget-elementor/analyst/src/Http/Requests/AbstractLoggerRequest.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\CacheContract' not found in wp-content/plugins/cf7-widget-elementor/analyst/src/Cache/DatabaseCache.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Core\\AbstractFactory' not found in wp-content/plugins/cf7-widget-elementor/analyst/src/Notices/NoticeFactory.php:7
    • > PHP Notice
      Undefined variable: shieldImage in wp-content/plugins/cf7-widget-elementor/analyst/templates/forms/install.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-widget-elementor/helper/helper.php:35
    • > PHP Notice
      Undefined variable: shieldImage in wp-content/plugins/cf7-widget-elementor/analyst/templates/optout.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/cf7-widget-elementor/analyst/src/Http/Requests/DeactivateRequest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/cf7-widget-elementor/analyst/src/Http/Requests/UninstallRequest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/cf7-widget-elementor/analyst/src/Http/Requests/OptInRequest.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #5 (/assets/screenshot-3.jpg) image missing
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

cf7-widget-elementor/void-cf7-widget-elementor.php 85% from 13 tests

The entry point to "Void Contact Form 7 Widget For Elementor Page Builder" version 2.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-widget-elementor.php" instead of "void-cf7-widget-elementor.php")

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected5,534 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP691,0931,8854,332
CSS612828878
JavaScript658122324

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces10
Interfaces12
Traits0
Classes36
▷ Abstract classes411.11%
▷ Concrete classes3288.89%
▷ Final classes00.00%
Methods258
▷ Static methods3814.73%
▷ Public methods23189.53%
▷ Protected methods145.43%
▷ Private methods135.04%
Functions42
▷ Named functions2559.52%
▷ Anonymous functions1740.48%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ 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
12 PNG files occupy 0.28MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png105.24KB37.09KB▼ 64.76%
analyst/assets/img/shield_question.png22.05KB11.19KB▼ 49.26%
assets/elemailer-logo.png1.53KB1.58KB0.00%
analyst/assets/img/pencil.png6.47KB4.04KB▼ 37.53%
analyst/assets/img/smile 2.png3.00KB2.29KB▼ 23.66%