72% vagonic-sortable

Code Review | Woocommerce Products Reorder Drag Drop Multiple Sort - Sortable, Rearrange Products Vagonic

WordPress plugin Woocommerce Products Reorder Drag Drop Multiple Sort - Sortable, Rearrange Products Vagonic scored72%from 54 tests.

About plugin

  • Plugin page: vagonic-sortable
  • Plugin version: 1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: Jul 2, 2022
  • Number of updates: 30
  • Update frequency: every 22.0 days
  • Top authors: vagonic (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /3,853 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.07MB] [CPU: ▲1.82ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce Products Reorder Drag Drop Multiple Sort - Sortable, Rearrange Products Vagonic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0747.82 ▲5.84
Dashboard /wp-admin3.38 ▲0.0754.52 ▼1.55
Posts /wp-admin/edit.php3.49 ▲0.1360.97 ▲7.71
Add New Post /wp-admin/post-new.php5.96 ▲0.07102.23 ▲1.87
Media Library /wp-admin/upload.php3.30 ▲0.0745.67 ▲1.12
Vagonic Sortable Lite /wp-admin/edit.php?post_type=product&page=vagonic-sortable-lite-page3.0730.58

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
vagonic_sortable_lite_plugin_name
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Products Reorder Drag Drop Multiple Sort - Sortable, Rearrange Products Vagonic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.351.73 ▼0.1544.06 ▲0.76
Dashboard /wp-admin2,195 ▲215.62 ▲0.0692.19 ▲1.1337.81 ▼2.08
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0539.78 ▲0.5539.16 ▲2.08
Add New Post /wp-admin/post-new.php1,528 ▲223.63 ▲0.09674.68 ▲6.5967.72 ▲7.38
Media Library /wp-admin/upload.php1,403 ▲64.19 ▲0.05102.30 ▲2.0644.51 ▲1.61
Vagonic Sortable Lite /wp-admin/edit.php?post_type=product&page=vagonic-sortable-lite-page280.420.063.93

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • vagonic_sortable_lite_plugin_name
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/vagonic-sortable/inc/page_footer.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/vagonic-sortable/inc/page_home.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/vagonic-sortable/inc/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/vagonic-sortable/inc/page_header.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=product&page=vagonic-sortable-lite-page
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=vagonic-sortable-lite-page - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: reorder, products, woocommerce, sort, sortable...

vagonic-sortable/vagonic-sortable.php 92% from 13 tests

The primary PHP file in "Woocommerce Products Reorder Drag Drop Multiple Sort - Sortable, Rearrange Products Vagonic" version 1.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected1,830 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS519636923
PHP67629590
JavaScript73533223
PO File234094

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin