89% disable-variable-product-price-range

Code Review | Plugin Name: Disable Variable Product Price Range Woocommerce

WordPress plugin Plugin Name: Disable Variable Product Price Range Woocommercescored89%from 54 tests.

About plugin

  • Plugin page: disable-variable-...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Nov 21, 2023
  • Number of updates: 55
  • Update frequency: every 47.3 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /30,633 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Plugin Name: Disable Variable Product Price Range Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.26 ▼4.98
Dashboard /wp-admin3.33 ▼0.0148.68 ▼16.03
Posts /wp-admin/edit.php3.38 ▲0.0349.49 ▲3.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.73 ▼5.00
Media Library /wp-admin/upload.php3.25 ▲0.0334.92 ▲0.63
Disable price range /wp-admin/admin.php?page=wdvppr-disable-price-range3.2231.91

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: Disable Variable Product Price Range Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲13813.38 ▼0.977.55 ▲5.7938.41 ▼6.46
Dashboard /wp-admin2,212 ▲315.52 ▼0.2191.71 ▼17.9041.96 ▲1.78
Posts /wp-admin/edit.php2,118 ▲152.12 ▲0.1841.22 ▲2.4035.84 ▲0.43
Add New Post /wp-admin/post-new.php1,611 ▲8523.22 ▲0.01656.83 ▲58.1564.09 ▲15.48
Media Library /wp-admin/upload.php1,411 ▲114.21 ▲0.0295.55 ▼0.7941.94 ▲0.63
Disable price range /wp-admin/admin.php?page=wdvppr-disable-price-range1,2991.6825.6454.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Plugin Name: Disable Variable Product Price Range Woocommerce=== )
  • Screenshots: A description for screenshot #2 is required in disable-variable-product-price-range/assets to your readme.txt
Please take inspiration from this readme.txt

disable-variable-product-price-range/plugin.php 85% from 13 tests

Analyzing the main PHP file in "Plugin Name: Disable Variable Product Price Range Woocommerce" version 2.4
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-variable-product-price-range.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected731 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP18754515
JavaScript23314118
CSS220498

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity8.82
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin