83% order-picking-app

Code Review | Order Picking App

WordPress plugin Order Picking App scored83%from 54 tests.

About plugin

  • Plugin page: order-picking-app
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 23
  • Update frequency: every 13.7 days
  • Top authors: arture (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.31MB] [CPU: ▼2.52ms] Passed 4 tests

This is a short check of server-side resources used by Order Picking App
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3138.07 ▼3.07
Dashboard /wp-admin3.67 ▲0.3350.87 ▼12.51
Posts /wp-admin/edit.php3.72 ▲0.3649.02 ▼0.62
Add New Post /wp-admin/post-new.php6.20 ▲0.3198.13 ▲8.82
Media Library /wp-admin/upload.php3.53 ▲0.3037.98 ▲6.14

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 156 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Order Picking App
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10214.67 ▲0.421.84 ▲0.0341.69 ▼3.94
Dashboard /wp-admin2,221 ▲415.63 ▲0.0281.01 ▼16.1869.54 ▲27.46
Posts /wp-admin/edit.php2,126 ▲231.95 ▼0.0639.17 ▼0.1232.83 ▼2.02
Add New Post /wp-admin/post-new.php1,561 ▲3622.95 ▼0.47658.76 ▲18.80108.05 ▲55.83
Media Library /wp-admin/upload.php1,420 ▲204.19 ▼0.0197.96 ▼0.9970.71 ▲29.92

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 62× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeEanUpcBase' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Types/TypeEan8.php:15
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/generate-verified-files.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeEanUpcBase' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Types/TypeEan13.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeCode39' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Types/TypeCode32.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Types/TypeITF14.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/tests/GeneratorTest.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Types/TypeCode39.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Types/TypeEanUpcBase.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Picqer\\Barcode\\Exceptions\\BarcodeException' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Exceptions/UnknownTypeException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/order-picking-app/vendor/picqer/php-barcode-generator/src/Types/TypePharmacodeTwoCode.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

order-picking-app/orderpickingapp.php 77% from 13 tests

The principal PHP file in "Order Picking App" v. 1.1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("order-picking-app.php" instead of "orderpickingapp.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 472 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin51,327 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
CSS17,43810642,384
PHP761,0909306,099
SVG38002,027
Markdown31350298
HTML400194
JSON200137
JavaScript32017123
YAML314052
XML10013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.39
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes65
▷ Abstract classes23.08%
▷ Concrete classes6396.92%
▷ Final classes00.00%
Methods211
▷ Static methods209.48%
▷ Public methods17582.94%
▷ Protected methods2411.37%
▷ Private methods125.69%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants43
▷ Global constants24.65%
▷ Class constants4195.35%
▷ Public constants3687.80%

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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/orderpickingapp.png20.41KB6.51KB▼ 68.10%
admin/images/barcode.png4.03KB2.01KB▼ 50.17%
admin/images/dashicon.png3.81KB1.33KB▼ 65.06%