10% simple-easy-contact-form

Code Review | Simple easy contact form

WordPress plugin Simple easy contact form scored10%from 54 tests.

About plugin

  • Plugin page: simple-easy-conta...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 17, 2017
  • Latest release: Mar 17, 2017
  • Number of updates: 5
  • Update frequency: every 4.4 days
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Simple_Easy_Contact_Form::my_plugin_create_db() should not be called statically

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.13ms] Passed 4 tests

A check of server-side resources used by Simple easy contact form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.39 ▲2.69
Dashboard /wp-admin3.38 ▲0.0850.76 ▼0.81
Posts /wp-admin/edit.php3.43 ▲0.0853.72 ▲1.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0890.48 ▼4.48
Media Library /wp-admin/upload.php3.31 ▲0.0835.81 ▼1.21

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables
wp_simpleeasy_contactform
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple easy contact form: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.26 ▼1.121.85 ▼0.1145.04 ▼0.79
Dashboard /wp-admin2,224 ▲365.84 ▲0.95108.57 ▼8.0541.96 ▼6.43
Posts /wp-admin/edit.php2,107 ▲212.03 ▲0.0340.35 ▲5.7237.08 ▲2.44
Add New Post /wp-admin/post-new.php1,557 ▲14618.41 ▲0.61643.06 ▲32.6969.67 ▲22.80
Media Library /wp-admin/upload.php1,406 ▲184.21 ▼0.0194.83 ▼15.4445.17 ▲1.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Simple_Easy_Contact_Form::secf_deactivation_hook() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Admin back end to save contact form screenshot.) image missing
The official readme.txt might help

simple-easy-contact-form/simple-easy-contact-form.php Passed 13 tests

The primary PHP file in "Simple easy contact form" version 1.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
Simple easy contact form create contact form in your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected571 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP212972504
CSS110367
JavaScript1100

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.28MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png11.63KB5.70KB▼ 50.99%
assets/icon-512x512.png34.63KB11.91KB▼ 65.60%
assets/screenshot-1.png161.35KB45.36KB▼ 71.89%
assets/banner-772x250.png100.26KB48.12KB▼ 52.01%
assets/screenshot-2.png999.81KB322.51KB▼ 67.74%