84% wysiwyg-editor-for-contact-form-7

Code Review | WYSIWYG Editor for Contact Form 7

WordPress plugin WYSIWYG Editor for Contact Form 7 scored 84% from 54 tests.

About plugin

  • Plugin page: wysiwyg-editor-fo...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Aug 28, 2021
  • Number of updates: 9
  • Update frequency: every 32.2 days
  • Top authors: dimchtz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 1,979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.99ms] Passed 4 tests

An overview of server-side resources used by WYSIWYG Editor for Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.79 ▲0.30
Dashboard /wp-admin3.35 ▲0.0546.77 ▼1.40
Posts /wp-admin/edit.php3.46 ▲0.1149.07 ▼1.63
Add New Post /wp-admin/post-new.php5.93 ▲0.0597.04 ▼5.21
Media Library /wp-admin/upload.php3.27 ▲0.0434.43 ▲0.86

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WYSIWYG Editor for Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.19 ▼1.191.78 ▲0.2343.71 ▲4.47
Dashboard /wp-admin2,215 ▲305.86 ▼0.04112.44 ▲8.9642.29 ▼0.70
Posts /wp-admin/edit.php2,098 ▲91.98 ▼0.0338.82 ▼1.2035.80 ▲0.59
Add New Post /wp-admin/post-new.php1,551 ▲1818.55 ▼4.56612.86 ▲12.0647.48 ▼0.44
Media Library /wp-admin/upload.php1,394 ▲64.22 ▼0.0495.24 ▼14.1342.23 ▲0.50

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 were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wysiwyg-editor-for-contact-form-7/templates/generator.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
8 plugin tags: editor, form, cf7, rich, contact...

wysiwyg-editor-for-contact-form-7/contact-form-7-wysiwyg.php 85% from 13 tests

"WYSIWYG Editor for Contact Form 7" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wysiwyg-editor-for-contact-form-7.php" instead of "contact-form-7-wysiwyg.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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin315 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10121170243
JavaScript120140
PO File181332

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin