84% contact-form-7-dynamic-text-extension

Code Review | Contact Form 7 - Dynamic Text Extension

WordPress plugin Contact Form 7 - Dynamic Text Extension scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-dy...
  • Plugin version: 4.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2010
  • Latest release: Sep 18, 2023
  • Number of updates: 92
  • Update frequency: every 51.5 days
  • Top authors: sevenspark (57.61%)tessawatkinsllc (43.48%)

Code review

54 tests

User reviews

96 reviews

Install metrics

100,000+ active /1,119,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼1.30ms] Passed 4 tests

An overview of server-side resources used by Contact Form 7 - Dynamic Text Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2840.82 ▼4.89
Dashboard /wp-admin3.65 ▲0.3454.42 ▲2.79
Posts /wp-admin/edit.php3.76 ▲0.4051.95 ▲3.51
Add New Post /wp-admin/post-new.php6.23 ▲0.3496.26 ▼5.42
Media Library /wp-admin/upload.php3.57 ▲0.3437.73 ▲2.32

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 - Dynamic Text Extension
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.491.74 ▼0.3344.29 ▲1.04
Dashboard /wp-admin2,189 ▲95.56 ▼0.0984.66 ▼5.2137.84 ▼0.54
Posts /wp-admin/edit.php2,103 ▼01.97 ▲0.0136.98 ▼4.8536.00 ▲0.30
Add New Post /wp-admin/post-new.php1,540 ▲1418.15 ▼4.81657.69 ▲38.2553.31 ▲1.12
Media Library /wp-admin/upload.php1,394 ▼94.18 ▼0.0397.74 ▼9.0447.61 ▲2.53

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
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
Almost there! Just fix the following items
  • 5× 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/contact-form-7-dynamic-text-extension/includes/shortcodes.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7-dynamic-text-extension/includes/validation.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7-dynamic-text-extension/includes/utilities.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-dynamic-text-extension/includes/admin.php:40

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php 92% from 13 tests

The entry point to "Contact Form 7 - Dynamic Text Extension" version 4.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

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
There were no executable files found in this plugin1,943 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP61136141,684
JavaScript4443222
CSS27337

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.66
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%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin