84% clean-and-simple-contact-form-by-meg-nicholas

Code Review | Contact Form Clean and Simple

WordPress plugin Contact Form Clean and Simple scored84%from 54 tests.

About plugin

  • Plugin page: clean-and-simple-...
  • Plugin version: 4.8.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2013
  • Latest release: Jan 23, 2023
  • Number of updates: 190
  • Update frequency: every 18.8 days
  • Top authors: megnicholas (87.89%)fullworks (12.11%)alanfuller (1.05%)

Code review

54 tests

User reviews

189 reviews

Install metrics

10,000+ active /507,310 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.47MB] [CPU: ▼1.48ms] Passed 4 tests

An overview of server-side resources used by Contact Form Clean and Simple
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5042.69 ▼5.23
Dashboard /wp-admin3.81 ▲0.5049.02 ▲0.37
Posts /wp-admin/edit.php3.86 ▲0.5050.12 ▲1.02
Add New Post /wp-admin/post-new.php6.33 ▲0.4488.25 ▼2.08
Media Library /wp-admin/upload.php3.67 ▲0.4441.22 ▲4.63
Contact Form /wp-admin/options-general.php?page=contact-form-settings3.6446.74

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 165 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
clean-and-simple-contact-form-by-meg-nicholas_review
widget_recent-posts
widget_theysaidso_widget
cscf_version
cscf_options
clean-and-simple-contact-form-by-meg-nicholas_donate
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form Clean and Simple
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.62 ▼0.961.70 ▼0.1242.50 ▼6.24
Dashboard /wp-admin2,212 ▲214.85 ▼1.0896.17 ▼8.3339.18 ▼5.38
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0635.36 ▲1.5134.77 ▼1.36
Add New Post /wp-admin/post-new.php1,523 ▲923.29 ▲5.78663.97 ▼33.2357.78 ▼3.77
Media Library /wp-admin/upload.php1,386 ▼24.11 ▼0.12101.26 ▲5.8542.00 ▼3.19
Contact Form /wp-admin/options-general.php?page=contact-form-settings1,2021.9457.7646.49

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
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • clean-and-simple-contact-form-by-meg-nicholas_donate
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • clean-and-simple-contact-form-by-meg-nicholas_review

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)
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/vendor/composer/installers/tests/Composer/Installers/Test/CakePHPInstallerTest.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt might help

clean-and-simple-contact-form-by-meg-nicholas/clean-and-simple-contact-form-by-meg-nicholas.php Passed 13 tests

Analyzing the main PHP file in "Contact Form Clean and Simple" version 4.8.0
83 characters long description:
A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap markup.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected9,904 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
PO File301,7882,1584,554
PHP676159793,410
JavaScript52942051,402
SVG211264
JSON100250
XML12023
CSS1071

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.51
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods159
▷ Static methods4528.30%
▷ Public methods14289.31%
▷ Protected methods95.66%
▷ Private methods85.03%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/alanef/plugindonation_lib/images/logos/github.png12.70KB7.33KB▼ 42.30%
vendor/alanef/plugindonation_lib/images/logos/BCH.png12.37KB6.01KB▼ 51.39%
vendor/alanef/plugindonation_lib/images/logos/translate.png32.90KB12.18KB▼ 62.98%
vendor/alanef/plugindonation_lib/images/logos/DOGE.png35.94KB14.35KB▼ 60.06%
vendor/alanef/plugindonation_lib/images/QRcodes/BMAC.png22.62KB2.44KB▼ 89.23%