83% simple-secure-contact-form

Code Review | Simple Secure Contact Form

WordPress plugin Simple Secure Contact Form scored83%from 54 tests.

About plugin

  • Plugin page: simple-secure-con...
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Aug 22, 2016
  • Number of updates: 12
  • Update frequency: every 41.7 days
  • Top authors: eugenyh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.48ms] Passed 4 tests

A check of server-side resources used by Simple Secure Contact Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.20 ▼2.16
Dashboard /wp-admin3.45 ▲0.1544.75 ▼3.59
Posts /wp-admin/edit.php3.56 ▲0.2146.53 ▼2.82
Add New Post /wp-admin/post-new.php6.03 ▲0.1583.57 ▼5.33
Media Library /wp-admin/upload.php3.37 ▲0.1437.72 ▲3.98

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_lptw-contact-form-widget
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Secure Contact Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲16213.68 ▼0.449.05 ▲6.8843.01 ▼7.49
Dashboard /wp-admin2,211 ▲234.86 ▼0.20107.19 ▲6.5737.81 ▲0.22
Posts /wp-admin/edit.php2,094 ▲22.16 ▲0.1741.10 ▼4.4034.40 ▼2.48
Add New Post /wp-admin/post-new.php1,529 ▼522.99 ▼0.02676.18 ▼2.4364.26 ▲9.97
Media Library /wp-admin/upload.php1,387 ▼44.20 ▼0.0299.50 ▼2.9940.48 ▼4.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_lptw-contact-form-widget
    • db_upgraded
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-secure-contact-form/simple-secure-contact-form.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === simple-secure-contact-form === )
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

simple-secure-contact-form/simple-secure-contact-form.php 92% from 13 tests

The main PHP file in "Simple Secure Contact Form" ver. 0.2.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 plugin1,723 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG100640
PHP19524370
CSS27722320
PO File284166232
JavaScript33326161

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity13.80
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin