84% woo-variations-select2

Code Review | WooCommerce variations Select2

WordPress plugin WooCommerce variations Select2 scored84%from 54 tests.

About plugin

  • Plugin page: woo-variations-se...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2017
  • Latest release: Jul 2, 2023
  • Number of updates: 13
  • Update frequency: every 165.9 days
  • Top authors: laugei (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,700 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 successfully, without throwing any errors or notices

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

Server-side resources used by WooCommerce variations Select2
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.70 ▼3.51
Dashboard /wp-admin3.32 ▼0.0349.54 ▼13.10
Posts /wp-admin/edit.php3.37 ▲0.0154.56 ▲2.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.74 ▲3.74
Media Library /wp-admin/upload.php3.24 ▲0.0135.61 ▲1.24

Server storage [IO: ▲0.02MB] [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
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce variations Select2
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.31 ▼0.071.97 ▲0.2745.59 ▲2.25
Dashboard /wp-admin2,201 ▲245.64 ▼0.0392.14 ▲5.5743.91 ▲0.43
Posts /wp-admin/edit.php2,107 ▲42.02 ▲0.0440.54 ▼2.6538.81 ▲2.75
Add New Post /wp-admin/post-new.php1,537 ▲623.40 ▲0.31670.20 ▼0.0464.21 ▲6.60
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.1299.39 ▼7.4644.55 ▼2.56

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/woo-variations-select2/woo-variations-select2.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-variations-select2/woo-variations-select2.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/woo-variations-select2/woo-variations-select2.php:15
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woo-variations-select2/woo-variations-select2.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: variations, select2, woocommerce

woo-variations-select2/woo-variations-select2.php Passed 13 tests

The principal PHP file in "WooCommerce variations Select2" v. 1.2.1 is loaded by WordPress automatically on each request
76 characters long description:
A simple plugin that enables Select2 for WooCommerce variations select boxes

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
There were no executable files found in this plugin38 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP191029
JavaScript2009

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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