90% cf7-coder

Code Review | HTML Editor for Contact Form 7

WordPress plugin HTML Editor for Contact Form 7 scored90%from 54 tests.

About plugin

  • Plugin page: cf7-coder
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 25, 2021
  • Latest release: Aug 7, 2023
  • Number of updates: 10
  • Update frequency: every 74.5 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /2,845 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
Install script ran successfully

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

A check of server-side resources used by HTML Editor for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.49 ▼7.70
Dashboard /wp-admin3.31 ▲0.0062.98 ▲17.32
Posts /wp-admin/edit.php3.36 ▲0.0049.15 ▼15.72
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.38 ▼2.43
Media Library /wp-admin/upload.php3.23 ▲0.0038.53 ▼11.38

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by HTML Editor for Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.61 ▼0.781.73 ▼0.5349.73 ▼9.67
Dashboard /wp-admin2,206 ▲185.89 ▲0.08131.63 ▲9.5559.72 ▲9.06
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0342.55 ▼3.3142.03 ▼1.63
Add New Post /wp-admin/post-new.php1,541 ▲2720.91 ▼0.71713.35 ▼18.8553.71 ▼9.46
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.04122.81 ▲9.22118.65 ▲65.78

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 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 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Contact Form), #2 (HTML editor)
You can look at the official readme.txt

cf7-coder/cf7-coder.php Passed 13 tests

The primary PHP file in "HTML Editor for Contact Form 7" version 0.1 is used by WordPress to initiate all plugin functionality
34 characters long description:
Add HTML editor to Contact Form 7.

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 plugin239 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34666152
JavaScript111076
CSS12011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.00
▷ Minimum class complexity5.00
▷ Maximum class complexity11.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png112.91KB33.69KB▼ 70.16%
screenshot-1.png148.28KB37.69KB▼ 74.58%