73% order-picking-for-woocommerce

Code Review | Order Picking For WooCommerce

WordPress plugin Order Picking For WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: order-picking-for...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Dec 31, 2022
  • Latest release: Aug 12, 2023
  • Number of updates: 7
  • Update frequency: every 34.0 days
  • Top authors: powerfulwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /730 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲5.03MB] [CPU: ▲21.68ms] 75% from 4 tests

An overview of server-side resources used by Order Picking For WooCommerce
Please have a look at the following items
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.03MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.88 ▲5.4274.22 ▲32.70
Dashboard /wp-admin8.90 ▲5.5575.07 ▲5.41
Posts /wp-admin/edit.php8.90 ▲5.5484.93 ▲32.61
Add New Post /wp-admin/post-new.php9.49 ▲3.61109.09 ▲15.98
Media Library /wp-admin/upload.php8.90 ▲5.6769.82 ▲33.11
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9063.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 200 new files
Database: no new tables, 10 new options
New WordPress options
fs_active_plugins
can_compress_scripts
db_upgraded
fs_debug_mode
fs_accounts
widget_recent-comments
theysaidso_admin_options
opfw_picking_statuses
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Order Picking For WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.47 ▲0.071.73 ▼0.2531.52 ▼12.34
Dashboard /wp-admin2,233 ▲455.89 ▼0.01104.51 ▼11.4244.75 ▲3.04
Posts /wp-admin/edit.php2,119 ▲301.97 ▼0.0236.48 ▼3.5541.37 ▲7.12
Add New Post /wp-admin/post-new.php1,529 ▲1017.60 ▼5.40690.54 ▲1.6056.71 ▼1.61
Media Library /wp-admin/upload.php1,421 ▲334.25 ▲0.0397.91 ▼18.8544.98 ▼2.65
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0901.7225.2429.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/order-picking-for-woocommerce/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 10 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_active_plugins
    • db_upgraded
    • fs_accounts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • opfw_picking_statuses
    • fs_debug_mode

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/order-picking-for-woocommerce/public/partials/order-picking-for-woocommerce-public-display.php
    • > /wp-content/plugins/order-picking-for-woocommerce/admin/partials/order-picking-for-woocommerce-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

order-picking-for-woocommerce/order-picking-for-woocommerce.php Passed 13 tests

"Order Picking For WooCommerce" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
Order Picking For WooCommerce lets you fulfill your orders quickly and easily.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin35,701 lines of code in 150 files:
LanguageFilesBlank linesComment linesLines of code
PHP1328,16918,14634,332
JavaScript415372767
CSS14799602

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity79.83
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods1,329
▷ Static methods19814.90%
▷ Public methods93470.28%
▷ Protected methods171.28%
▷ Private methods37828.44%
Functions106
▷ Named functions106100.00%
▷ Anonymous functions00.00%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%