10% easy-softonic-contact-form

Code Review | WP Contact Form

WordPress plugin WP Contact Form scored10%from 54 tests.

About plugin

  • Plugin page: easy-softonic-con...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.2-5.9
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Feb 14, 2022
  • Number of updates: 31
  • Update frequency: every 73.0 days
  • Top authors: umairsaleem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,799 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/easy-softonic-contact-form/includes/class-escf-options.php+1071
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

Server metrics [RAM: ▲0.48MB] [CPU: ▼43.22ms] Passed 4 tests

A check of server-side resources used by WP Contact Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.41 ▲0.9549.93 ▲6.86
Dashboard /wp-admin4.51 ▲1.2117.15 ▼36.88
Posts /wp-admin/edit.php4.51 ▲1.1516.89 ▼32.31
Add New Post /wp-admin/post-new.php4.51 ▼1.3816.57 ▼84.47
Media Library /wp-admin/upload.php4.51 ▲1.2817.06 ▼19.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 154 new files
Database: no new tables, 7 new options
New WordPress options
es_contact_global
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Contact Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.34 ▼0.011.84 ▼0.5944.17 ▼0.04
Dashboard /wp-admin2,207 ▲305.65 ▲0.0185.77 ▼11.8539.48 ▼3.63
Posts /wp-admin/edit.php2,112 ▲122.01 ▼0.0137.45 ▲0.7933.53 ▼5.15
Add New Post /wp-admin/post-new.php1,538 ▲1023.29 ▲0.03689.83 ▲0.3951.77 ▼2.50
Media Library /wp-admin/upload.php1,409 ▲94.23 ▲0.1499.23 ▼20.4451.10 ▲2.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/easy-softonic-contact-form/includes/class-escf-options.php+1071
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-softonic-contact-form/captcha/securimage_show.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.gif is the contact form.), #2 (screenshot-2.gif is the contact form showing the inline error messages.), #3 (screenshot-3.gif is the `Contact Form options` tab on the `Admin Plugins` page.), #4 (screenshot-4.gif adding the shortcode `[easy-softonic-contact-form form='1']` in a Page.)
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

easy-softonic-contact-form/easy-softonic-contact-form.php 92% from 13 tests

The entry point to "WP Contact Form" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 146 characters long)

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected74,530 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PO File2621,84732,54264,267
PHP171,5661,6098,244
CSS51301391,030
JavaScript468202989

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 159)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity199.67
▷ Minimum class complexity1.00
▷ Maximum class complexity518.00
Average method complexity10.99
▷ Minimum method complexity1.00
▷ Maximum method complexity159.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods179
▷ Static methods15586.59%
▷ Public methods179100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/star.png0.60KB0.53KB▼ 10.64%
captcha/backgrounds/dg.png6.29KB3.33KB▼ 47.05%
includes/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
includes/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
includes/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%