89% easy-simple-contact-form

Code Review | Easy Simple Contact Form

WordPress plugin Easy Simple Contact Form scored 89% from 54 tests.

About plugin

  • Plugin page: easy-simple-conta...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 5.8.1
  • First release: Feb 25, 2017
  • Latest release: Feb 25, 2017
  • Number of updates: 16
  • Update frequency: every 2.0 days
  • Top authors: dialadoors (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼168.98ms] Passed 4 tests

Analyzing server-side resources used by Easy Simple Contact Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0845.48 ▲8.07
Dashboard /wp-admin3.13 ▲0.0848.43 ▲8.40
Posts /wp-admin/edit.php3.19 ▲0.0845.05 ▲1.39
Add New Post /wp-admin/post-new.php5.49 ▲0.0691.85 ▼689.93
Media Library /wp-admin/upload.php3.08 ▲0.0835.57 ▲4.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_cform-widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Simple Contact Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,704 ▲10815.71 ▼0.149.31 ▲1.7753.99 ▲4.73
Dashboard /wp-admin2,973 ▲395.91 ▼0.02135.16 ▼13.36109.45 ▼2.62
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0263.52 ▼1.1190.75 ▲0.63
Add New Post /wp-admin/post-new.php1,683 ▼018.76 ▼0.01369.93 ▼15.78119.44 ▲9.77
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.01164.07 ▲0.33116.83 ▼9.44

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_cform-widget

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Contact form)
You can look at the official readme.txt

easy-simple-contact-form/index.php 85% from 13 tests

The entry point to "Easy Simple Contact Form" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-simple-contact-form.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected371 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP58060356
CSS1101015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png72.36KB18.24KB▼ 74.80%