90% woo-picpay

Code Review | QR Code PicPay for WooCommerce

WordPress plugin QR Code PicPay for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-picpay
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 4, 2019
  • Latest release: Oct 6, 2022
  • Number of updates: 35
  • Update frequency: every 37.5 days
  • Top authors: dadeke (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

2,000+ active /21,740 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by QR Code PicPay for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.73 ▼5.12
Dashboard /wp-admin3.31 ▲0.0147.13 ▼3.95
Posts /wp-admin/edit.php3.37 ▲0.0143.31 ▼9.53
Add New Post /wp-admin/post-new.php5.89 ▲0.01108.02 ▲17.57
Media Library /wp-admin/upload.php3.24 ▲0.0131.82 ▼7.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for QR Code PicPay for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.27 ▼0.301.71 ▲0.1341.16 ▼3.81
Dashboard /wp-admin2,203 ▲325.55 ▼0.1285.33 ▼9.4939.86 ▼1.51
Posts /wp-admin/edit.php2,115 ▲152.00 ▲0.0335.89 ▲0.6636.05 ▼1.89
Add New Post /wp-admin/post-new.php1,537 ▲922.83 ▼0.42679.74 ▲28.0356.99 ▼0.10
Media Library /wp-admin/upload.php1,414 ▲114.32 ▲0.1598.41 ▼0.4346.08 ▼1.21

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: woocommerce, payment, picpay

woo-picpay/woo-picpay.php 92% from 13 tests

The main file in "QR Code PicPay for WooCommerce" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.0.0")

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
Good job! No executable or dangerous file extensions detected667 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12161299662
SVG1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity31.67
▷ Minimum class complexity6.00
▷ Maximum class complexity46.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods824.24%
▷ Public methods2369.70%
▷ Protected methods927.27%
▷ Private methods13.03%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin