89% wc-multiple-products-sor

Code Review | WPurge Multisort Products

WordPress plugin WPurge Multisort Products scored89%from 54 tests.

About plugin

  • Plugin page: wc-multiple-produ...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1.1
  • WordPress version: 6.3.1
  • First release: May 3, 2023
  • Latest release: May 3, 2023
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: wpurge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /78 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.21ms] Passed 4 tests

Server-side resources used by WPurge Multisort Products
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.29 ▲0.99
Dashboard /wp-admin3.31 ▼0.0450.72 ▼14.00
Posts /wp-admin/edit.php3.36 ▲0.0053.89 ▼1.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.69 ▼6.24
Media Library /wp-admin/upload.php3.23 ▲0.0038.50 ▲0.93

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WPurge Multisort Products
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.131.96 ▼0.1042.38 ▼3.12
Dashboard /wp-admin2,192 ▲155.62 ▼0.0689.72 ▼0.9440.85 ▼0.59
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0339.66 ▲0.1137.12 ▼1.17
Add New Post /wp-admin/post-new.php1,527 ▼223.00 ▼0.08673.55 ▲32.5658.66 ▼2.61
Media Library /wp-admin/upload.php1,397 ▼64.25 ▲0.1598.79 ▼21.7443.15 ▼0.98

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

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

wc-multiple-products-sor/wc-multiple-products-sort.php 85% from 13 tests

Analyzing the main PHP file in "WPurge Multisort Products" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-multiple-products-sor.php" instead of "wc-multiple-products-sort.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.7" instead of "5.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin408 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45218317
PHP2348584
CSS2007

PHP code Passed 2 tests

An overview of 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.43
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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 files were detected