63% new-contact-form-widget

Code Review | Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table

WordPress plugin Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table scored63%from 54 tests.

About plugin

  • Plugin page: new-contact-form-...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2016
  • Latest release: Oct 20, 2023
  • Number of updates: 168
  • Update frequency: every 15.8 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /92,750 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.17ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.24 ▼1.32
Dashboard /wp-admin3.40 ▲0.1048.25 ▲2.64
Posts /wp-admin/edit.php3.46 ▲0.1044.48 ▼0.71
Add New Post /wp-admin/post-new.php5.99 ▲0.1089.52 ▼4.91
Media Library /wp-admin/upload.php3.33 ▲0.0931.72 ▼1.73
Settings /wp-admin/admin.php?page=cfw-settings3.5731.58
Contact Form Queries /wp-admin/admin.php?page=cfw-all-queries3.3934.77
Our Theme /wp-admin/admin.php?page=sr-theme-page3.2929.71
Shortcode /wp-admin/admin.php?page=user-contact-form3.2930.69

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables
wp_awp_contact_form
New WordPress options
widget_recent-posts
db_upgraded
widget_contact_form
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.17 ▼0.391.64 ▲0.0742.91 ▲3.46
Dashboard /wp-admin2,229 ▲495.62 ▼0.0585.98 ▼2.9141.49 ▲2.16
Posts /wp-admin/edit.php2,131 ▲312.01 ▼0.0038.31 ▲0.6032.16 ▼1.88
Add New Post /wp-admin/post-new.php1,561 ▲3518.19 ▼4.80632.17 ▼61.1769.07 ▲19.19
Media Library /wp-admin/upload.php1,434 ▲374.18 ▲0.0495.65 ▼2.0644.49 ▼1.50
Settings /wp-admin/admin.php?page=cfw-settings1,6592.5742.2249.78
Contact Form Queries /wp-admin/admin.php?page=cfw-all-queries9262.0424.7561.04
Our Theme /wp-admin/admin.php?page=sr-theme-page9761.9923.1264.64
Shortcode /wp-admin/admin.php?page=user-contact-form8302.0322.8326.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_awp_contact_form
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_contact_form
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 31 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cfw-settings
    • > Notice in wp-content/plugins/new-contact-form-widget/settings-page.php+174
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/new-contact-form-widget/our-theme/awp-theme.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=user-contact-form
    • > Javascript (severe) in unknown
    /wp-content/plugins/new-contact-form-widget/js/bootstrap.js?ver=3.3.6 14:10 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    • > GET request to /wp-admin/admin.php?page=sr-theme-page
    • > Network (severe)
    wp-content/plugins/new-contact-form-widget/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: support query builder, contact form widget, contact page, contact us, contact

new-contact-form-widget/new-contact-form-widget.php Passed 13 tests

This is the main PHP file of "Contact Form Widget - Contact Query, Contact Page, Form Maker, Query Table" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Add Contact Form Widget and Shortcode On WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin17,398 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS83452212,239
SVG3001,658
PHP72381191,648
JavaScript35911941,637
PO File19898216

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
our-theme/img/aneeq-premium.png165.42KB57.84KB▼ 65.04%