84% woo-quote-or-enquiry-contact-form-7

Code Review | WooCommerce Quote or Enquiry Contact Form 7

WordPress plugin WooCommerce Quote or Enquiry Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: woo-quote-or-enqu...
  • Plugin version: 2.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2018
  • Latest release: Dec 1, 2023
  • Number of updates: 42
  • Update frequency: every 45.0 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

4,000+ active /44,834 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.19ms] Passed 4 tests

A check of server-side resources used by WooCommerce Quote or Enquiry Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0322.52 ▼17.94
Dashboard /wp-admin3.36 ▲0.0648.79 ▲0.02
Posts /wp-admin/edit.php3.47 ▲0.1148.64 ▲6.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.28 ▼10.70
Media Library /wp-admin/upload.php3.28 ▲0.0532.85 ▼0.14
Quote Or Enquiry Contact Form 7 /wp-admin/admin.php?page=wqoecf-quote-or-enquiry-contact-form3.2732.24

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
wqoecf_quote_or_enquiry_settings
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Quote or Enquiry Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,479 ▼27213.12 ▼1.220.52 ▼1.0917.70 ▼25.63
Dashboard /wp-admin2,223 ▲465.79 ▲0.1598.15 ▼7.0842.89 ▼2.90
Posts /wp-admin/edit.php2,131 ▲312.27 ▲0.3041.11 ▲3.3735.45 ▼0.39
Add New Post /wp-admin/post-new.php1,546 ▲2023.37 ▲0.35697.72 ▲7.6342.47 ▼9.68
Media Library /wp-admin/upload.php1,425 ▲224.35 ▲0.1599.20 ▲3.7343.32 ▲1.69
Quote Or Enquiry Contact Form 7 /wp-admin/admin.php?page=wqoecf-quote-or-enquiry-contact-form1,1202.3348.4838.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • wqoecf_quote_or_enquiry_settings
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-quote-or-enquiry-contact-form-7/enquiry.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woocommerce quote contact form 7, woocommerce contact form 7, woocommerce enquiry contact form 7

woo-quote-or-enquiry-contact-form-7/woocommerce-quote-or-enquiry-contact-form-7.php 92% from 13 tests

The main file in "WooCommerce Quote or Enquiry Contact Form 7" v. 2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-quote-or-enquiry-contact-form-7.php" instead of "woocommerce-quote-or-enquiry-contact-form-7.php")

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
Success! There were no dangerous files found in this plugin824 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP411222489
CSS2496315
JavaScript14020

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/mail.png3.67KB0.23KB▼ 93.86%
assets/images/close.png0.35KB0.38KB0.00%