89% get-a-quote-button-for-woocommerce

Code Review | Request a Quote for WooCommerce and Elementor - Get a Quote Button - Product Enquiry Form Popup - Product Quotation

WordPress plugin Request a Quote for WooCommerce and Elementor - Get a Quote Button - Product Enquiry Form Popup - Product Quotation scored89%from 54 tests.

About plugin

  • Plugin page: get-a-quote-butto...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2020
  • Latest release: Nov 27, 2023
  • Number of updates: 74
  • Update frequency: every 18.9 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

4,000+ active /49,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼6.43ms] Passed 4 tests

An overview of server-side resources used by Request a Quote for WooCommerce and Elementor - Get a Quote Button - Product Enquiry Form Popup - Product Quotation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.63 ▼4.26
Dashboard /wp-admin3.56 ▲0.2149.44 ▼11.19
Posts /wp-admin/edit.php3.67 ▲0.3248.67 ▲0.07
Add New Post /wp-admin/post-new.php6.14 ▲0.2586.10 ▼10.34
Media Library /wp-admin/upload.php3.48 ▲0.2537.59 ▲4.32
Quote Button /wp-admin/options-general.php?page=get-a-quote-button3.4839.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 12 new options
New WordPress options
btn_settings
wpb_gqb_installed
wpb_gqb_version
widget_theysaidso_widget
db_upgraded
popup_settings
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Request a Quote for WooCommerce and Elementor - Get a Quote Button - Product Enquiry Form Popup - Product Quotation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲22113.93 ▼0.4110.42 ▲8.7537.14 ▼6.63
Dashboard /wp-admin2,258 ▲815.60 ▼0.0491.71 ▼6.3948.88 ▲5.84
Posts /wp-admin/edit.php2,164 ▲612.17 ▲0.2139.41 ▼1.7445.01 ▲8.85
Add New Post /wp-admin/post-new.php1,571 ▲4523.33 ▼0.18667.49 ▲22.2651.23 ▲3.05
Media Library /wp-admin/upload.php1,466 ▲664.20 ▼0.0096.48 ▼3.2548.12 ▲7.73
Quote Button /wp-admin/options-general.php?page=get-a-quote-button1,9573.9694.2942.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • woo_settings
    • widget_theysaidso_widget
    • db_upgraded
    • popup_settings
    • form_settings
    • wpb_gqb_version
    • widget_recent-posts
    • ...

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 everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can take inspiration from this readme.txt

get-a-quote-button-for-woocommerce/main.php 85% from 13 tests

The primary PHP file in "Request a Quote for WooCommerce and Elementor - Get a Quote Button - Product Enquiry Form Popup - Product Quotation" version 1.3.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("get-a-quote-button-for-woocommerce.php" instead of "main.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,755 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP8267286947
CSS376557
JavaScript34748181
SVG11360
XML10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity18.43
▷ Minimum class complexity3.00
▷ Maximum class complexity73.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods62
▷ Static methods23.23%
▷ Public methods62100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.00%
Constants1
▷ Global constants1100.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
No PNG files were detected