89% simpleform-contact-form-submissions

Code Review | SimpleForm Contact Form Submissions

WordPress plugin SimpleForm Contact Form Submissions scored89%from 54 tests.

About plugin

  • Plugin page: simpleform-contac...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: Mar 29, 2022
  • Number of updates: 33
  • Update frequency: every 24.5 days
  • Top authors: simpleform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,599 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.57MB] [CPU: ▼0.96ms] Passed 4 tests

A check of server-side resources used by SimpleForm Contact Form Submissions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5638.92 ▲1.07
Dashboard /wp-admin3.92 ▲0.6145.07 ▼1.73
Posts /wp-admin/edit.php3.97 ▲0.6151.05 ▲3.62
Add New Post /wp-admin/post-new.php6.44 ▲0.5590.97 ▼6.51
Media Library /wp-admin/upload.php3.78 ▲0.5536.14 ▲3.33

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables
wp_sform_submissions
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
sform_sub_db_version
can_compress_scripts

Browser metrics Passed 4 tests

SimpleForm Contact Form Submissions: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.24 ▼0.291.88 ▲0.3238.26 ▲1.06
Dashboard /wp-admin2,198 ▲215.62 ▼0.0481.94 ▼8.8838.47 ▲1.71
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0839.92 ▲5.9736.21 ▼0.35
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.24632.75 ▼23.4047.95 ▼6.60
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.0093.14 ▼3.0840.97 ▼1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

simpleform-contact-form-submissions/simpleform-submissions.php 77% from 13 tests

The primary PHP file in "SimpleForm Contact Form Submissions" version 2.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("simpleform-contact-form-submissions.php" instead of "simpleform-submissions.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("5.6" instead of "5.2")

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
Everything looks great! No dangerous files found in this plugin3,117 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP126196152,486
CSS13521367
JavaScript1151264

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity99.25
▷ Minimum class complexity3.00
▷ Maximum class complexity313.00
Average method complexity10.82
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods80
▷ Static methods78.75%
▷ Public methods7391.25%
▷ Protected methods22.50%
▷ Private methods56.25%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin