90% add-template-for-contact-form-7

Code Review | Add Template for Contact Form 7

WordPress plugin Add Template for Contact Form 7 scored 90% from 54 tests.

About plugin

  • Plugin page: add-template-for-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Jun 14, 2022
  • Latest release: Jul 4, 2022
  • Number of updates: 9
  • Update frequency: every 2.2 days
  • Top authors: matorel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 813 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Add Template for Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.18 ▼9.13
Dashboard /wp-admin3.33 ▲0.0345.60 ▼5.75
Posts /wp-admin/edit.php3.38 ▲0.0344.53 ▼4.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.02 ▼11.36
Media Library /wp-admin/upload.php3.25 ▲0.0236.10 ▲2.01

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Add Template for Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.48 ▲0.101.80 ▲0.0340.14 ▼11.47
Dashboard /wp-admin2,200 ▲95.80 ▲0.8899.95 ▼15.4840.88 ▼3.75
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0339.45 ▼2.5438.00 ▲2.37
Add New Post /wp-admin/post-new.php1,533 ▼923.41 ▲5.05607.01 ▼33.3755.76 ▼1.88
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0395.33 ▲1.1641.14 ▲0.16

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: contact, contact form 7, template, contact form, form...

add-template-for-contact-form-7/add-template-for-contact-form-7.php Passed 13 tests

The primary PHP file in "Add Template for Contact Form 7" version 1.0.3 is used by WordPress to initiate all plugin functionality
79 characters long description:
This plugin adds a template function to "Contact Form 7" using a template file.

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
Everything looks great! No dangerous files found in this plugin571 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File16635

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin