83% awesome-contact-form7-for-elementor

Code Review | Awesome Contact Form7 for Elementor

WordPress plugin Awesome Contact Form7 for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: awesome-contact-f...
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2019
  • Latest release: Oct 9, 2023
  • Number of updates: 57
  • Update frequency: every 27.5 days
  • Top authors: rafiul17 (98.25%)codersaiful (3.51%)

Code review

54 tests

User reviews

23 reviews

Install metrics

8,000+ active /82,767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.60ms] Passed 4 tests

Analyzing server-side resources used by Awesome Contact Form7 for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.57 ▼6.01
Dashboard /wp-admin3.33 ▲0.0245.74 ▼3.41
Posts /wp-admin/edit.php3.38 ▲0.0251.83 ▲6.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.98 ▼7.81
Media Library /wp-admin/upload.php3.25 ▲0.0236.89 ▼1.15

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Contact Form7 for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.31 ▼1.081.62 ▼0.1638.14 ▼7.25
Dashboard /wp-admin2,256 ▲685.85 ▲0.9697.20 ▼19.4572.60 ▲24.58
Posts /wp-admin/edit.php2,145 ▲772.14 ▲0.1039.67 ▲2.8444.00 ▲8.51
Add New Post /wp-admin/post-new.php1,577 ▲4318.50 ▼4.64708.37 ▲21.4956.64 ▼1.94
Media Library /wp-admin/upload.php1,441 ▲534.20 ▼0.0693.44 ▼14.8586.81 ▲40.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'CA_Framework\\Require_Control' not found in wp-content/plugins/awesome-contact-form7-for-elementor/includes/admin-notice/ca-framework/example.php:15
    • > PHP Warning
      Use of undefined constant BE_PACK_PATH - assumed 'BE_PACK_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-contact-form7-for-elementor/includes/inc.php on line 2
    • > PHP Warning
      include(wp-content/plugins/awesome-contact-form7-for-elementor/includes/admin-notice/ca-framework/ca-framework/loader.php): failed to open stream: No such file or directory in wp-content/plugins/awesome-contact-form7-for-elementor/includes/admin-notice/ca-framework/example.php on line 11
    • > PHP Warning
      include(): Failed opening 'wp-content/plugins/awesome-contact-form7-for-elementor/includes/admin-notice/ca-framework/ca-framework/loader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/awesome-contact-form7-for-elementor/includes/admin-notice/ca-framework/example.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-contact-form7-for-elementor/includes/aep-notice/admin-notice.php:3

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

awesome-contact-form7-for-elementor/init.php 77% from 13 tests

The entry point to "Awesome Contact Form7 for Elementor" version 2.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-contact-form7-for-elementor.php" instead of "init.php")
  • 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
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,684 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP132103001,254
CSS41622343
Markdown19047
JavaScript23027
SVG10013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods51
▷ Static methods35.88%
▷ Public methods4282.35%
▷ Protected methods23.92%
▷ Private methods713.73%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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
(invalid) includes/admin-notice/ca-framework/assets/img/Ultra-Addons-Loto-for-white.png4.03KB0.00KB▼ 100.00%