84% cf7-html-email-template-extension

Code Review | HTML Template for CF7

WordPress plugin HTML Template for CF7 scored84%from 54 tests.

About plugin

  • Plugin page: cf7-html-email-te...
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Aug 18, 2016
  • Latest release: Nov 29, 2021
  • Number of updates: 17
  • Update frequency: every 113.4 days
  • Top authors: mariovalney (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /21,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.35ms] Passed 4 tests

Analyzing server-side resources used by HTML Template for CF7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.19 ▼9.18
Dashboard /wp-admin3.41 ▲0.1146.77 ▼7.99
Posts /wp-admin/edit.php3.52 ▲0.1751.27 ▲1.73
Add New Post /wp-admin/post-new.php6.01 ▲0.1291.55 ▲3.01
Media Library /wp-admin/upload.php3.33 ▲0.1034.29 ▼1.96

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 431 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by HTML Template for CF7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.44 ▼0.941.72 ▼0.3143.44 ▲0.04
Dashboard /wp-admin2,214 ▲265.84 ▼0.04103.95 ▼13.1540.47 ▼6.49
Posts /wp-admin/edit.php2,103 ▲142.00 ▼0.0139.07 ▲1.3237.65 ▲4.60
Add New Post /wp-admin/post-new.php1,544 ▲1123.69 ▲0.56569.81 ▼79.3653.10 ▼3.21
Media Library /wp-admin/upload.php1,393 ▲84.23 ▼0.0297.01 ▼4.8240.68 ▼3.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cf7-html-email-template-extension/modules/cf7/includes/view/html-template-panel-html.php
    • > /wp-content/plugins/cf7-html-email-template-extension/cf7-html-email-template-extension.php
    • > /wp-content/plugins/cf7-html-email-template-extension/modules/cf7/class-module-cf7.php
    • > /wp-content/plugins/cf7-html-email-template-extension/includes/backward-compatibility.php
    • > /wp-content/plugins/cf7-html-email-template-extension/modules/cf7/includes/view/html-misc-pub-section.php
    • > /wp-content/plugins/cf7-html-email-template-extension/modules/dependence/class-module-dependence.php
    • > /wp-content/plugins/cf7-html-email-template-extension/modules/dependence/includes/views/html-notice.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: contact form 7, html email, email template, cf7, contact form...

cf7-html-email-template-extension/cf7-html-email-template-extension.php Passed 13 tests

Analyzing the main PHP file in "HTML Template for CF7" version 2.1.1
56 characters long description:
Improve your Contact Form 7 emails with a HTML Template.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,435 lines of code in 429 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41741212,879
PHP8153352482
HTML36066
CSS1108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.67
▷ Minimum class complexity6.00
▷ Maximum class complexity26.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods12.94%
▷ Public methods2367.65%
▷ Protected methods00.00%
▷ Private methods1132.35%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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