84% fastpicker

Code Review | FastPicker, an order picker and order management system (oms) for WooCommerce on steroids

WordPress plugin FastPicker, an order picker and order management system (oms) for WooCommerce on steroids scored84%from 54 tests.

About plugin

  • Plugin page: fastpicker
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 7, 2022
  • Latest release: Jul 24, 2023
  • Number of updates: 14
  • Update frequency: every 41.2 days
  • Top authors: yuluma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.46MB] [CPU: ▼11.61ms] Passed 4 tests

A check of server-side resources used by FastPicker, an order picker and order management system (oms) for WooCommerce on steroids
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2244.43 ▲6.01
Dashboard /wp-admin3.56 ▲0.2552.45 ▲0.93
Posts /wp-admin/edit.php3.61 ▲0.2551.80 ▼1.64
Add New Post /wp-admin/post-new.php3.37 ▼2.5236.88 ▼48.70
Media Library /wp-admin/upload.php3.42 ▲0.1937.00 ▲2.97
FastPicker /wp-admin/options-general.php?page=fastpicker3.3934.68

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by FastPicker, an order picker and order management system (oms) for WooCommerce on steroids
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.37 ▼1.241.78 ▼0.0646.39 ▲6.87
Dashboard /wp-admin2,209 ▲184.89 ▼1.0198.21 ▼4.3355.06 ▲11.98
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0734.09 ▼9.8245.60 ▲10.04
Add New Post /wp-admin/post-new.php1,520 ▼022.99 ▼0.27661.62 ▼21.5375.48 ▲20.17
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0398.40 ▼15.5251.47 ▲1.18
FastPicker /wp-admin/options-general.php?page=fastpicker8422.0224.3761.41

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fastpicker/fastpicker.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fastpicker/src/Views/Settings.php:5
    • > PHP Warning
      Use of undefined constant WOO_ORDERPICKER_PLUGIN_URL - assumed 'WOO_ORDERPICKER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fastpicker/src/Views/Settings.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

fastpicker/fastpicker.php Passed 13 tests

The main file in "FastPicker, an order picker and order management system (oms) for WooCommerce on steroids" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
Plugin to connect with FastPicker

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,338 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP243491701,219
CSS119095
JSON21024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity10.59
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods90
▷ Static methods1718.89%
▷ Public methods7684.44%
▷ Protected methods22.22%
▷ Private methods1213.33%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants9
▷ Global constants9100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png11.26KB2.59KB▼ 77.02%