84% wp-easy-contact-form

Code Review | Wp Easy Contact Form

WordPress plugin Wp Easy Contact Form scored84%from 54 tests.

About plugin

  • Plugin page: wp-easy-contact-form
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 25, 2016
  • Latest release: Dec 5, 2016
  • Number of updates: 9
  • Update frequency: every 1.7 days
  • Top authors: amybeagh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,337 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.13MB] [CPU: ▼3.76ms] Passed 4 tests

This is a short check of server-side resources used by Wp Easy Contact Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1142.59 ▲2.09
Dashboard /wp-admin3.43 ▲0.1353.43 ▲6.94
Posts /wp-admin/edit.php3.55 ▲0.1944.56 ▼5.81
Add New Post /wp-admin/post-new.php6.03 ▲0.1584.61 ▼18.15
Media Library /wp-admin/upload.php3.36 ▲0.1342.04 ▲6.84
Wp Easy Contact Form /wp-admin/options-general.php?page=wp-easy-contact-form/wp-easy-contact-form.php3.3333.10

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
wecf_contact_mail_message_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Wp Easy Contact Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13013.82 ▼0.5311.93 ▲9.9150.64 ▲12.90
Dashboard /wp-admin2,207 ▲335.70 ▲0.1794.49 ▲1.3739.11 ▼5.60
Posts /wp-admin/edit.php2,114 ▲142.66 ▲0.6639.23 ▲2.1934.44 ▼1.96
Add New Post /wp-admin/post-new.php1,691 ▲16323.45 ▲0.45680.02 ▲9.5738.43 ▼18.06
Media Library /wp-admin/upload.php1,417 ▲175.21 ▲1.07103.05 ▲0.7540.77 ▼6.87
Wp Easy Contact Form /wp-admin/options-general.php?page=wp-easy-contact-form/wp-easy-contact-form.php1,2632.5834.8535.71

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 does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • wecf_contact_mail_message_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-contact-form/wp-easy-contact-form.php:518

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: contactbuddy, easy contact form solution, contact form 7, fast secure contact form, contact form

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

The principal PHP file in "Wp Easy Contact Form" v. 1.0 is loaded by WordPress automatically on each request
86 characters long description:
Contact Form Widget - Easy to use and small contact form and also available shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin14,586 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13,0682,07513,563
PHP147430668
CSS172355

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.93MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/contact-icon-outer.png3.33KB1.53KB▼ 54.11%
assets/wp-easy-contact-form-banner.png692.97KB279.36KB▼ 59.69%
assets/Frontend View.png18.46KB4.77KB▼ 74.13%
assets/minus_sign.png2.71KB1.47KB▼ 45.51%
assets/Admin Settings.png232.62KB40.30KB▼ 82.68%