73% one-click-woocommerce-to-inquiry

Code Review | One click WooCommerce to Inquiry

WordPress plugin One click WooCommerce to Inquiry scored73%from 54 tests.

About plugin

  • Plugin page: one-click-woocomm...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Oct 28, 2022
  • Number of updates: 12
  • Update frequency: every 194.9 days
  • Top authors: alishanvr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,126 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.22MB] [CPU: ▼45.78ms] Passed 4 tests

Server-side resources used by One click WooCommerce to Inquiry
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7113.36 ▼27.15
Dashboard /wp-admin2.79 ▼0.5119.34 ▼34.59
Posts /wp-admin/edit.php2.79 ▼0.5619.09 ▼31.33
Add New Post /wp-admin/post-new.php2.79 ▼3.0914.53 ▼90.06
Media Library /wp-admin/upload.php2.79 ▼0.4417.59 ▼22.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
woocommerce_checkout_page_id
db_upgraded
theysaidso_admin_options
woocommerce_cart_page_id
widget_recent-posts
widget_theysaidso_widget
woocommerce_email_footer_text
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for One click WooCommerce to Inquiry
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.66 ▼0.666.23 ▲4.4738.10 ▼10.28
Dashboard /wp-admin2,210 ▲225.86 ▲0.98103.79 ▼5.2639.32 ▼7.74
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0639.58 ▲2.2734.85 ▲2.77
Add New Post /wp-admin/post-new.php1,527 ▼618.46 ▼4.81622.39 ▼50.7746.81 ▼15.66
Media Library /wp-admin/upload.php1,395 ▲74.26 ▲0.06102.29 ▼9.2343.59 ▼4.68

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • woocommerce_cart_page_id
    • woocommerce_checkout_page_id
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • woocommerce_email_footer_text

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 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/one-click-woocommerce-to-inquiry/trsolutions-inquirymodule.php:278

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid url: "#"
You can look at the official readme.txt

one-click-woocommerce-to-inquiry/trsolutions-inquirymodule.php 77% from 13 tests

The primary PHP file in "One click WooCommerce to Inquiry" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("one-click-woocommerce-to-inquiry.php" instead of "trsolutions-inquirymodule.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin146 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP18064134
CSS1006
JavaScript1836

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin