84% elementor-contact-form-7

Code Review | Contact Form 7 styler for Elementor Page Builder

WordPress plugin Contact Form 7 styler for Elementor Page Builder scored 84% from 54 tests.

About plugin

  • Plugin page: elementor-contact...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Nov 23, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: re_enter_rupok (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active / 30,910 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.93ms] Passed 4 tests

Server-side resources used by Contact Form 7 styler for Elementor Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.87 ▼1.55
Dashboard /wp-admin3.40 ▲0.1059.10 ▲14.61
Posts /wp-admin/edit.php3.52 ▲0.1648.98 ▲5.66
Add New Post /wp-admin/post-new.php5.98 ▲0.1085.43 ▼7.20
Media Library /wp-admin/upload.php3.32 ▲0.1032.05 ▼0.65

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 styler for Elementor Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.14 ▼1.062.00 ▼0.3941.51 ▼9.28
Dashboard /wp-admin2,233 ▲454.96 ▲0.05118.10 ▲14.0372.50 ▲26.11
Posts /wp-admin/edit.php2,128 ▲392.03 ▲0.0240.01 ▲4.2038.09 ▲6.62
Add New Post /wp-admin/post-new.php1,555 ▲4123.21 ▲5.70756.61 ▲60.3062.54 ▲5.82
Media Library /wp-admin/upload.php1,424 ▲364.26 ▲0.1098.66 ▼8.9575.05 ▲30.00

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/elementor-contact-form-7/includes/elementor-helper.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: elementor, elementor addon, contact form 7, contact form 7 styler, elementor widget

elementor-contact-form-7/elementor-contact-form-7.php Passed 13 tests

Analyzing the main PHP file in "Contact Form 7 styler for Elementor Page Builder" version 1.0.0
71 characters long description:
Style your Contact Form 7 forms right from the Elementor visual editor.

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
Good job! No executable or dangerous file extensions detected7,513 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript39467495,935
PHP61921211,195
CSS32313383

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.67
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1684.21%
▷ Protected methods315.79%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/ea-icon.png1.15KB0.26KB▼ 77.51%