99% acf-contact-form-7

Code Review | Advanced Custom Fields Contact Form 7

WordPress plugin Advanced Custom Fields Contact Form 7 scored 99% from 54 tests.

About plugin

  • Plugin page: acf-contact-form-7
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 5.9.2
  • First release: May 28, 2018
  • Latest release: Oct 12, 2019
  • Number of updates: 17
  • Update frequency: every 29.6 days
  • Top authors: imbeetle (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 7,364 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Advanced Custom Fields Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0155.96 ▲2.35
Dashboard /wp-admin3.45 ▲0.0134.32 ▲1.40
Posts /wp-admin/edit.php3.68 ▲0.0136.04 ▼0.37
Add New Post /wp-admin/post-new.php6.92 ▼0.0892.49 ▼1,188.21
Media Library /wp-admin/upload.php3.33 ▲0.0125.31 ▲1.13

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • There were 4 files (0.00KB) illegally modified outside of "wp-content/plugins/acf-contact-form-7/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/acf-contact-form-7/lang/acf-contact-form-7-ig\320\261\320\276.mo"
    • (new file) "wp-content/plugins/acf-contact-form-7/lang/acf-contact-form-7-ko\321\200\320\265.po"
    • (new file) "wp-content/plugins/acf-contact-form-7/lang/acf-contact-form-7-ko\321\200\320\265.mo"
    • (new file) "wp-content/plugins/acf-contact-form-7/lang/acf-contact-form-7-ig\320\261\320\276.po"
Filesystem: 184 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Custom Fields Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.89 ▲0.016.61 ▲0.432.47 ▼0.14
Dashboard /wp-admin2,895 ▲406.14 ▼0.02120.12 ▼15.69167.28 ▲4.19
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0063.61 ▼2.09141.95 ▼0.49
Add New Post /wp-admin/post-new.php1,711 ▼621.63 ▲0.17441.66 ▲9.29155.68 ▼2.09
Media Library /wp-admin/upload.php1,698 ▲35.48 ▼0.04148.23 ▲1.23186.16 ▼6.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: advanced custom fields, advanced custom fields contact form 7, contact form 7, acf contact form 7, acf

acf-contact-form-7/advanced-custom-fields-contact-form-7.php 92% from 13 tests

The main PHP script in "Advanced Custom Fields Contact Form 7" version 1.1.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-contact-form-7.php" instead of "advanced-custom-fields-contact-form-7.php")

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
No dangerous file extensions were detected1,964 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PO File891781781,778

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin