89% simple-basic-contact-form

Code Review | Simple Basic Contact Form

WordPress plugin Simple Basic Contact Form scored89%from 54 tests.

About plugin

  • Plugin page: simple-basic-cont...
  • Plugin version: 20221201...
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 122
  • Update frequency: every 30.1 days
  • Top authors: wpkube (66.39%)specialk (34.43%)

Code review

54 tests

User reviews

92 reviews

Install metrics

10,000+ active /253,347 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼6.30ms] Passed 4 tests

This is a short check of server-side resources used by Simple Basic Contact Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2339.30 ▼4.68
Dashboard /wp-admin3.54 ▲0.2051.69 ▼13.00
Posts /wp-admin/edit.php3.66 ▲0.3055.89 ▲8.01
Add New Post /wp-admin/post-new.php6.12 ▲0.2494.88 ▼6.58
Media Library /wp-admin/upload.php3.47 ▲0.2438.99 ▼0.95
Contact Form /wp-admin/options-general.php?page=simple-basic-contact-form/simple-basic-contact-form.php3.4333.29

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
scf_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Basic Contact Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.56 ▼1.034.57 ▲2.8245.34 ▲1.36
Dashboard /wp-admin2,216 ▲135.85 ▲0.01116.85 ▼7.3641.11 ▼4.02
Posts /wp-admin/edit.php2,101 ▼22.01 ▲0.0238.21 ▲3.2932.20 ▼4.48
Add New Post /wp-admin/post-new.php1,543 ▲223.35 ▲5.00669.46 ▼12.9556.67 ▲0.84
Media Library /wp-admin/upload.php1,404 ▲44.22 ▼0.0497.13 ▼5.1641.25 ▼5.70
Contact Form /wp-admin/options-general.php?page=simple-basic-contact-form/simple-basic-contact-form.php1,7391.6827.8554.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: antispam, anti spam, anti-spam, contact form, captcha...

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

The main file in "Simple Basic Contact Form" v. 20221201... serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "20221201...")

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 plugin3,022 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File58008591,843
PHP2387811,179

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
sbcf-icon.png10.91KB4.89KB▼ 55.19%