10% woo-price-quote-inquiry

Code Review | Woo Product Inquiry & Quote

WordPress plugin Woo Product Inquiry & Quote scored10%from 54 tests.

About plugin

  • Plugin page: woo-price-quote-i...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2016
  • Latest release: Jul 25, 2023
  • Number of updates: 14
  • Update frequency: every 172.8 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,806 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.57ms] Passed 4 tests

Analyzing server-side resources used by Woo Product Inquiry & Quote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.16 ▼4.70
Dashboard /wp-admin3.31 ▲0.0048.36 ▼1.57
Posts /wp-admin/edit.php3.36 ▲0.0052.06 ▼1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.54 ▼22.01
Media Library /wp-admin/upload.php3.23 ▲0.0038.67 ▲5.07
Our Themes /wp-admin/admin.php?page=wbcom-themes-page3.0027.24
Support /wp-admin/admin.php?page=wbcom-support-page3.0023.27
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page3.0026.71
Price Quote /wp-admin/admin.php?page=wcpq-settings3.0022.66

Server storage [IO: ▲1.45MB] [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: 81 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
wcpq_gen_stngs
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Product Inquiry & Quote
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.37 ▼0.221.70 ▼0.3240.73 ▼1.57
Dashboard /wp-admin2,198 ▲215.66 ▲0.0494.21 ▲5.0437.61 ▼3.13
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0139.04 ▲4.6035.49 ▼1.06
Add New Post /wp-admin/post-new.php1,545 ▲1923.26 ▲5.80655.85 ▲6.1257.99 ▼2.96
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.0794.46 ▼6.7943.11 ▼3.35
Our Themes /wp-admin/admin.php?page=wbcom-themes-page280.440.093.87
Support /wp-admin/admin.php?page=wbcom-support-page280.440.134.69
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page280.440.064.78
Price Quote /wp-admin/admin.php?page=wcpq-settings280.440.094.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • wcpq_gen_stngs
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-price-quote-inquiry/admin/wbcom/templates/wbcom-plugins-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-price-quote-inquiry/admin/wbcom/templates/wbcom-license-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-price-quote-inquiry/admin/wbcom/templates/wbcom-support-page.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=wbcom-themes-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-themes-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcom-support-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-support-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcom-plugins-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-plugins-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wcpq-settings
    • > Network (severe)
    wp-admin/admin.php?page=wcpq-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt might help

woo-price-quote-inquiry/woo-price-quote-inquiry.php 85% from 13 tests

The principal PHP file in "Woo Product Inquiry & Quote" v. 1.3.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 281 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected10,782 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,113
PHP243488172,234
CSS4309762,062
JavaScript54166364
XML1009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.44
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods65
▷ Static methods23.08%
▷ Public methods5990.77%
▷ Protected methods00.00%
▷ Private methods69.23%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.76MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png203.97KB52.58KB▼ 74.22%
admin/images/single-product.png54.75KB14.50KB▼ 73.51%
screenshot-3.png126.48KB48.54KB▼ 61.63%
screenshot-4.png154.16KB41.56KB▼ 73.04%
admin/wbcom/assets/imgs/wbcom-offer-notice.png67.64KB32.40KB▼ 52.11%