83% woo-price-from-in-variable-products

Code Review | WooCommerce - Price From in Variable Products

WordPress plugin WooCommerce - Price From in Variable Products scored 83% from 54 tests.

About plugin

  • Plugin page: woo-price-from-in...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2021
  • Latest release: Sep 18, 2023
  • Number of updates: 9
  • Update frequency: every 178.8 days
  • Top authors: webdigpt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.44ms] Passed 4 tests

An overview of server-side resources used by WooCommerce - Price From in Variable Products
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.67 ▼15.74
Dashboard /wp-admin3.31 ▲0.0144.49 ▼0.68
Posts /wp-admin/edit.php3.36 ▲0.0148.70 ▲1.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.54 ▼15.26
Media Library /wp-admin/upload.php3.23 ▲0.0033.09 ▼2.07

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce - Price From in Variable Products
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.124.36 ▲2.4237.86 ▼6.72
Dashboard /wp-admin2,206 ▲155.85 ▲0.96111.85 ▲12.5243.47 ▼1.50
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0436.85 ▼4.0634.95 ▼3.62
Add New Post /wp-admin/post-new.php1,535 ▼323.32 ▲0.09648.50 ▲22.0456.85 ▲0.81
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0791.86 ▼5.6739.84 ▼4.62

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-price-from-in-variable-products/woocommerce-price-from-in-variable-products.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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:
  • Screenshots: These screenshots require images: #1 (WooCommerce Price From in Variable Products before plugin activation), #2 (WooCommerce Price From in Variable Products after activation)
You can look at the official readme.txt

woo-price-from-in-variable-products/woocommerce-price-from-in-variable-products.php 85% from 13 tests

"WooCommerce - Price From in Variable Products" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-price-from-in-variable-products.php" instead of "woocommerce-price-from-in-variable-products.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin76 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP111843
PO File16833

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin