84% digitsix-simple-contact-form

Code Review | DigitSix Simple Contact Form

WordPress plugin DigitSix Simple Contact Form scored84%from 54 tests.

About plugin

  • Plugin page: digitsix-simple-c...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Jan 29, 2016
  • Number of updates: 15
  • Update frequency: every 34.3 days
  • Top authors: amithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,830 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.08ms] Passed 4 tests

Analyzing server-side resources used by DigitSix Simple Contact Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.77 ▼0.04
Dashboard /wp-admin3.31 ▼0.0449.32 ▼15.64
Posts /wp-admin/edit.php3.36 ▲0.0050.30 ▲0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.15 ▼13.13
Media Library /wp-admin/upload.php3.23 ▲0.0036.38 ▲0.73

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by DigitSix Simple Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.131.75 ▼0.1742.42 ▼2.67
Dashboard /wp-admin2,195 ▲155.58 ▼0.1091.74 ▲2.3936.91 ▼4.60
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0340.31 ▲3.6135.23 ▼5.99
Add New Post /wp-admin/post-new.php1,549 ▲423.31 ▲0.21646.05 ▼47.9352.72 ▲1.09
Media Library /wp-admin/upload.php1,397 ▼04.22 ▼0.07103.91 ▼4.6049.66 ▲3.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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/digitsix-simple-contact-form/DigitSix-Simple-Contact-Form.php:68

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Contact Form)
The official readme.txt might help

digitsix-simple-contact-form/DigitSix-Simple-Contact-Form.php 92% from 13 tests

The main PHP file in "DigitSix Simple Contact Form" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("digitsix-simple-contact-form.php" instead of "DigitSix-Simple-Contact-Form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111247

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
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

PNG files should be compressed to save space and 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
screenshot-1.png13.85KB6.37KB▼ 54.01%