99% picksell-pay-for-woocommerce

Code Review | Picksell Pay for WooCommerce

WordPress plugin Picksell Pay for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: picksell-pay-for-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Jul 28, 2021
  • Latest release: Jul 29, 2021
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: picknkt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 68 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

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

An overview of server-side resources used by Picksell Pay for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.25 ▲2.30
Dashboard /wp-admin3.07 ▲0.0138.53 ▼8.03
Posts /wp-admin/edit.php3.12 ▲0.0146.73 ▼0.57
Add New Post /wp-admin/post-new.php5.43 ▼0.0198.53 ▼559.94
Media Library /wp-admin/upload.php3.01 ▲0.0138.08 ▼5.66

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Picksell Pay for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.89 ▲0.349.41 ▼0.7847.30 ▼6.66
Dashboard /wp-admin2,979 ▲515.88 ▼0.10155.83 ▼23.93122.73 ▲2.14
Posts /wp-admin/edit.php2,749 ▲102.70 ▲0.0167.61 ▼9.62101.02 ▼4.56
Add New Post /wp-admin/post-new.php1,690 ▲10918.09 ▲0.70365.18 ▼76.21104.93 ▼71.48
Media Library /wp-admin/upload.php1,817 ▲695.03 ▲0.03162.19 ▼20.42124.54 ▼10.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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)
Good news, no errors were detected

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
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

picksell-pay-for-woocommerce/picksell-pay.php 92% from 13 tests

The primary PHP file in "Picksell Pay for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("picksell-pay-for-woocommerce.php" instead of "picksell-pay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin359 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5957358
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.75
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods827.59%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin