89% woo-qr-shipping-address-pip

Code Review | Shipping Address QR code for Invoices & Packing lists

WordPress plugin Shipping Address QR code for Invoices & Packing lists scored89%from 54 tests.

About plugin

  • Plugin page: woo-qr-shipping-a...
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Jul 20, 2023
  • Number of updates: 28
  • Update frequency: every 81.7 days
  • Top authors: webdados (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.82ms] Passed 4 tests

Server-side resources used by Shipping Address QR code for Invoices & Packing lists
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.48 ▲1.63
Dashboard /wp-admin3.34 ▼0.0044.64 ▼14.68
Posts /wp-admin/edit.php3.39 ▲0.0447.60 ▲3.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.78 ▼5.73
Media Library /wp-admin/upload.php3.27 ▲0.0434.87 ▲3.51

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

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

Browser metrics Passed 4 tests

Shipping Address QR code for Invoices & Packing lists: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.10 ▼0.261.66 ▼0.2444.53 ▼5.51
Dashboard /wp-admin2,195 ▲185.55 ▼0.0783.08 ▼3.4439.25 ▲3.21
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0038.92 ▲1.0835.53 ▲0.38
Add New Post /wp-admin/post-new.php1,526 ▼323.30 ▲0.28680.86 ▲26.9663.62 ▲4.65
Media Library /wp-admin/upload.php1,394 ▼04.14 ▼0.0894.15 ▼18.8243.52 ▼2.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

woo-qr-shipping-address-pip/qr-shipping-address-woocommerce-pip.php 92% from 13 tests

Analyzing the main PHP file in "Shipping Address QR code for Invoices & Packing lists" version 1.4
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-qr-shipping-address-pip.php" instead of "qr-shipping-address-woocommerce-pip.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22598108

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin