84% dynamic-text-field-for-contact-form-7

Code Review | Dynamic Text Field For Contact Form 7

WordPress plugin Dynamic Text Field For Contact Form 7 scored 84% from 54 tests.

About plugin

  • Plugin page: dynamic-text-fiel...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.1
  • WordPress version: 6.3.1
  • First release: May 25, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 7
  • Update frequency: every 70.0 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 2,431 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.28ms] Passed 4 tests

Analyzing server-side resources used by Dynamic Text Field For Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0048.97 ▲5.92
Dashboard /wp-admin3.31 ▲0.0045.89 ▼3.89
Posts /wp-admin/edit.php3.36 ▲0.0049.60 ▲1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.04 ▼2.98
Media Library /wp-admin/upload.php3.23 ▲0.0034.11 ▼4.12

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Dynamic Text Field For Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲5213.61 ▼0.991.85 ▼0.0942.56 ▼9.15
Dashboard /wp-admin2,206 ▲155.91 ▲1.04106.36 ▲4.7940.48 ▲0.07
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0639.42 ▼0.8634.03 ▼1.57
Add New Post /wp-admin/post-new.php1,547 ▲518.58 ▲0.05597.27 ▼28.8466.18 ▲7.75
Media Library /wp-admin/upload.php1,388 ▼04.17 ▲0.0195.68 ▼0.6740.98 ▼6.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-text-field-for-contact-form-7/main/resources/DYFCF7-language.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dynamic-text-field-for-contact-form-7/dynamic-text-field-for-contact-form-7.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-text-field-for-contact-form-7/main/resources/DYFCF7-installation-require.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-text-field-for-contact-form-7/main/backend/DYFCF7_frontend.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

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

Analyzing the main PHP file in "Dynamic Text Field For Contact Form 7" version 1.0
60 characters long description:
This plugin allows Dynamic text and field for contact form 7

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 detected285 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46859285

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin