84% cf7-element-converter

Code Review | Contact Form 7 Element Converter

WordPress plugin Contact Form 7 Element Converter scored84%from 54 tests.

About plugin

  • Plugin page: cf7-element-conve...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 27, 2019
  • Latest release: Jun 27, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: kenkeydev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,591 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
This plugin's installer ran successfully

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

A check of server-side resources used by Contact Form 7 Element Converter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.16 ▼4.67
Dashboard /wp-admin3.31 ▼0.0442.02 ▼16.36
Posts /wp-admin/edit.php3.36 ▲0.0048.32 ▼3.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.76 ▼28.98
Media Library /wp-admin/upload.php3.23 ▲0.0034.20 ▼0.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Contact Form 7 Element Converter: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.061.51 ▼0.1535.90 ▼4.75
Dashboard /wp-admin2,198 ▲215.64 ▼0.0393.26 ▲9.5941.42 ▼6.87
Posts /wp-admin/edit.php2,100 ▼31.96 ▲0.0039.44 ▼3.1435.77 ▼1.09
Add New Post /wp-admin/post-new.php1,528 ▲223.24 ▲0.44677.78 ▲7.4050.15 ▼2.38
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.0494.94 ▼5.8940.17 ▼7.08

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cf7-element-converter/cf7-element-converter.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: wpcf7, html converter, cf7, contact, contact form

cf7-element-converter/cf7-element-converter.php 92% from 13 tests

The principal PHP file in "Contact Form 7 Element Converter" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin115 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript129096
PHP111819

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected