83% variation-prices-woocommerce

Code Review | Plugin Name: Disable Variable Product Price Range & Show Default Variation Price Woocommerce

WordPress plugin Plugin Name: Disable Variable Product Price Range & Show Default Variation Price Woocommercescored83%from 54 tests.

About plugin

  • Plugin page: variation-prices-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Apr 1, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: izaya21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /723 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.01MB] [CPU: ▲2.90ms] Passed 4 tests

An overview of server-side resources used by Plugin Name: Disable Variable Product Price Range & Show Default Variation Price Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0154.15 ▲12.73
Dashboard /wp-admin3.32 ▲0.0157.21 ▲3.13
Posts /wp-admin/edit.php3.37 ▲0.0153.36 ▲3.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.31 ▲4.82
Media Library /wp-admin/upload.php3.24 ▲0.0138.32 ▲0.25

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Name: Disable Variable Product Price Range & Show Default Variation Price Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.481.89 ▲0.2740.29 ▼3.26
Dashboard /wp-admin2,200 ▲155.77 ▲0.88115.09 ▼13.4739.45 ▼1.05
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0038.31 ▼0.1333.81 ▲0.12
Add New Post /wp-admin/post-new.php1,535 ▲2123.22 ▲5.75652.35 ▼8.5965.11 ▲11.48
Media Library /wp-admin/upload.php1,391 ▼04.34 ▲0.14113.76 ▲5.9144.46 ▼1.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/variation-prices-woocommerce/plugin.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Plugin Name: Disable Variable Product Price Range & Show Default Variation Price Woocommerce=== )
The official readme.txt might help

variation-prices-woocommerce/plugin.php 85% from 13 tests

The primary PHP file in "Plugin Name: Disable Variable Product Price Range & Show Default Variation Price Woocommerce" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("variation-prices-woocommerce.php" instead of "plugin.php")
  • Plugin Name: Please shorten the plugin name (currently 79 characters long instead of max. 70)

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
No dangerous file extensions were detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15732

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.79
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin