84% acf-field-for-contact-form-7

Code Review | ACF Field For Contact Form 7

WordPress plugin ACF Field For Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: acf-field-for-con...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2018
  • Latest release: Nov 18, 2022
  • Number of updates: 22
  • Update frequency: every 74.0 days
  • Top authors: krishaweb (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active /39,690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.72ms] Passed 4 tests

A check of server-side resources used by ACF Field For Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.52 ▼4.99
Dashboard /wp-admin3.33 ▲0.0347.26 ▼5.07
Posts /wp-admin/edit.php3.38 ▲0.0347.76 ▼3.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.42 ▼9.67
Media Library /wp-admin/upload.php3.26 ▲0.0335.14 ▼1.44

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by ACF Field For Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.45 ▲0.091.78 ▼0.0442.86 ▼2.95
Dashboard /wp-admin2,221 ▲364.84 ▼1.01100.21 ▼17.4539.04 ▼6.09
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0336.22 ▼1.7036.60 ▲1.76
Add New Post /wp-admin/post-new.php1,540 ▲2122.99 ▼0.04664.99 ▼3.8356.34 ▼0.40
Media Library /wp-admin/upload.php1,397 ▲94.24 ▲0.02101.55 ▼6.5647.81 ▼1.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-field-for-contact-form-7/includes/acf-fields/acf-contact-form-7-v5.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'acf_Field' not found in wp-content/plugins/acf-field-for-contact-form-7/includes/acf-fields/acf-contact-form-7-v3.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-field-for-contact-form-7/includes/acf-fields/acf-contact-form-7-v4.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can look at the official readme.txt

acf-field-for-contact-form-7/acf-field-for-contact-form-7.php Passed 13 tests

The principal PHP file in "ACF Field For Contact Form 7" v. 1.6 is loaded by WordPress automatically on each request
79 characters long description:
Adds a new 'Contact Form 7' field to the popular Advanced Custom Fields plugin.

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
Everything looks great! No dangerous files found in this plugin517 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP665289517

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.00
▷ Minimum class complexity8.00
▷ Maximum class complexity24.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin