89% cf7-email-template-builder

Code Review | Nonaki – Contact Form 7 email template customizer

WordPress plugin Nonaki – Contact Form 7 email template customizer scored89%from 54 tests.

About plugin

  • Plugin page: cf7-email-templat...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2023
  • Latest release: Jul 10, 2023
  • Number of updates: 3
  • Update frequency: every 11.3 days
  • Top authors: prappo_p (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /78 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.73ms] Passed 4 tests

Analyzing server-side resources used by Nonaki – Contact Form 7 email template customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.25 ▲2.91
Dashboard /wp-admin3.31 ▲0.0152.36 ▼2.12
Posts /wp-admin/edit.php3.36 ▲0.0155.64 ▲4.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.49 ▼18.47
Media Library /wp-admin/upload.php3.23 ▲0.0036.92 ▼1.25

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
nonaki_addon_cf7_forms
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Nonaki – Contact Form 7 email template customizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.44 ▲0.061.73 ▼0.2146.96 ▲5.08
Dashboard /wp-admin2,217 ▲435.64 ▼0.0189.87 ▼1.6338.80 ▼6.79
Posts /wp-admin/edit.php2,119 ▲192.03 ▲0.0142.63 ▲8.7937.67 ▲1.20
Add New Post /wp-admin/post-new.php1,540 ▼517.48 ▼5.63637.97 ▼72.1455.99 ▲2.83
Media Library /wp-admin/upload.php1,419 ▲194.22 ▲0.0798.81 ▼6.2547.10 ▲0.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • nonaki_addon_cf7_forms
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: email, customization, builder, cf7, drag and drop...

cf7-email-template-builder/nonaki-cf7.php 85% from 13 tests

The primary PHP file in "Nonaki – Contact Form 7 email template customizer" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-email-template-builder.php" instead of "nonaki-cf7.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin292 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP485124291
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.67
▷ Minimum class complexity9.00
▷ Maximum class complexity13.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods15
▷ Static methods320.00%
▷ Public methods1386.67%
▷ Protected methods16.67%
▷ Private methods16.67%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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