10% simplest-contact-form

Code Review | Simplest Contact Form

WordPress plugin Simplest Contact Form scored10%from 54 tests.

About plugin

  • Plugin page: simplest-contact-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2015
  • Latest release: Aug 10, 2016
  • Number of updates: 11
  • Update frequency: every 50.4 days
  • Top authors: utkarsh.shinde (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /890 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/simplest-contact-form/simplest-contact-form.php+209
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼57.86ms] Passed 4 tests

Server-side resources used by Simplest Contact Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.31 ▼41.49
Dashboard /wp-admin2.08 ▼1.225.52 ▼48.05
Posts /wp-admin/edit.php2.08 ▼1.276.40 ▼42.99
Add New Post /wp-admin/post-new.php2.08 ▼3.805.78 ▼98.91
Media Library /wp-admin/upload.php2.08 ▼1.155.28 ▼32.86

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

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

Browser metrics Passed 4 tests

Simplest Contact Form: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.611.75 ▼0.4043.67 ▼1.00
Dashboard /wp-admin2,200 ▲95.81 ▼0.09101.91 ▲1.6240.81 ▼1.64
Posts /wp-admin/edit.php2,092 ▼02.03 ▲0.0134.82 ▼7.7234.69 ▼1.72
Add New Post /wp-admin/post-new.php1,544 ▲1118.23 ▼4.68630.02 ▲38.2652.48 ▲0.47
Media Library /wp-admin/upload.php1,391 ▲94.25 ▲0.0299.66 ▼0.2146.41 ▼0.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simplest-contact-form/simplest-contact-form.php+209
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_contactform
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simplest-contact-form/simplest-contact-form.php:69

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
3 plugin tags: comments, spam, simplest-contact-form

simplest-contact-form/simplest-contact-form.php Passed 13 tests

"Simplest Contact Form" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
29 characters long description:
Simple WordPress Contact Form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11042384

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin