84% woo-product-variation-range-slider

Code Review | Woo Product Variation Range Slider

WordPress plugin Woo Product Variation Range Slider scored84%from 54 tests.

About plugin

  • Plugin page: woo-product-varia...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.8
  • WordPress version: 6.3.1
  • First release: May 18, 2017
  • Latest release: Jul 19, 2017
  • Number of updates: 9
  • Update frequency: every 6.9 days
  • Top authors: ukwpexperts (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Woo Product Variation Range Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.13 ▼1.93
Dashboard /wp-admin3.32 ▼0.0342.79 ▼15.11
Posts /wp-admin/edit.php3.37 ▲0.0145.26 ▼4.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.31 ▼6.66
Media Library /wp-admin/upload.php3.24 ▲0.0135.33 ▲3.90

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Woo Product Variation Range Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.30 ▼1.115.03 ▲3.2439.49 ▼4.02
Dashboard /wp-admin2,209 ▲184.86 ▼1.02109.41 ▲2.1944.22 ▲3.84
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0240.67 ▼0.0635.80 ▲0.23
Add New Post /wp-admin/post-new.php1,514 ▼517.63 ▼5.57690.95 ▼35.3850.17 ▼4.93
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0292.06 ▼7.6639.25 ▼8.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-variation-range-slider/admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woo-product-variation-range-slider/woo-product-variation-range-slider.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

woo-product-variation-range-slider/woo-product-variation-range-slider.php 92% from 13 tests

The main file in "Woo Product Variation Range Slider" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin487 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS22713234
PHP34674160
JavaScript23193

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin