WordPress plugin Variation Price Display For WooCommerce scored 78% from 54 tests.

About plugin

  • Plugin page: disable-variable-...
  • Plugin version: 1.1.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2020
  • Latest release: Jul 22, 2023
  • Number of updates: 34
  • Update frequency: every 30.1 days
  • Top authors: tanvirul (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 11,658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.63ms] Passed 4 tests

Analyzing server-side resources used by Variation Price Display For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.93 ▼3.68
Dashboard /wp-admin3.32 ▲0.0244.57 ▼2.59
Posts /wp-admin/edit.php3.37 ▲0.0251.72 ▲5.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.50 ▼1.69
Media Library /wp-admin/upload.php3.25 ▲0.0236.59 ▲1.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Variation Price Display For WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3213.20 ▼0.011.86 ▼0.0940.44 ▼1.42
Dashboard /wp-admin2,227 ▲215.80 ▼0.0594.07 ▼21.8137.72 ▼11.52
Posts /wp-admin/edit.php2,112 ▲232.04 ▲0.0439.58 ▲5.3737.35 ▲3.97
Add New Post /wp-admin/post-new.php1,539 ▲623.33 ▲0.28734.15 ▲61.9258.50 ▼4.02
Media Library /wp-admin/upload.php1,406 ▲184.28 ▲0.04103.03 ▲8.5944.93 ▲0.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/disable-variable-product-price-range-show-only-lowest-price-in-variable-products/woo-disable-variable-product-price-range.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-variable-product-price-range-show-only-lowest-price-in-variable-products/includes/settings.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: price display, variable, variation, price, prices

disable-variable-product-price-range-show-only-lowest-price-in-variable-products/woo-disable-variable-product-price-range.php 85% from 13 tests

The entry point to "Variation Price Display For WooCommerce" version 1.1.12 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("disable-variable-product-price-range-show-only-lowest-price-in-variable-products.php" instead of "woo-disable-variable-product-price-range.php")

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
No dangerous file extensions were detected282 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP384123282

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected