89% acf-contact-form-7

Code Review | Advanced Custom Fields Contact Form 7

WordPress plugin Advanced Custom Fields Contact Form 7 scored 89% 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: 6.3.1
  • 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 / 8,777 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.39ms] Passed 4 tests

Analyzing server-side resources used by Advanced Custom Fields Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.81 ▼1.38
Dashboard /wp-admin3.31 ▲0.0148.22 ▲0.03
Posts /wp-admin/edit.php3.36 ▲0.0145.86 ▼2.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.39 ▼18.01
Media Library /wp-admin/upload.php3.23 ▲0.0138.46 ▲0.16

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

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • You have illegally modified 4 files (0.00KB) 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-ko\321\200\320\265.po"
    • (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.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, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Custom Fields Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.27 ▼1.021.72 ▼0.2943.29 ▼1.22
Dashboard /wp-admin2,206 ▲214.80 ▼1.17110.55 ▼4.1642.53 ▼4.31
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0534.05 ▼6.4935.05 ▼0.23
Add New Post /wp-admin/post-new.php1,533 ▼1122.76 ▲4.23640.93 ▼3.7961.45 ▲3.43
Media Library /wp-admin/upload.php1,382 ▼94.17 ▼0.0394.77 ▼5.6041.38 ▼3.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

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: contact form 7, acf contact form 7, advanced custom fields contact form 7, advanced custom fields, acf

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

Analyzing the main PHP file in "Advanced Custom Fields Contact Form 7" version 1.1.6
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,964 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PO File891781781,778
XML500129
PHP291157

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin