10% wc-handcash-payments

Code Review | Payments via HandCash for WooCommerce

WordPress plugin Payments via HandCash for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: wc-handcash-payments
  • Plugin version: 0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2023
  • Latest release: Feb 25, 2023
  • Number of updates: 11
  • Update frequency: every 0.9 days
  • Top authors: kuopassa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /681 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/wc-handcash-payments/wc-handcash-payments.php+68
    Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/wc-handcash-payments/wc-handcash-payments.php:68
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.54ms] Passed 4 tests

An overview of server-side resources used by Payments via HandCash for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.95 ▲1.70
Dashboard /wp-admin3.31 ▲0.0048.54 ▼2.50
Posts /wp-admin/edit.php3.36 ▲0.0049.38 ▲0.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.33 ▼4.99
Media Library /wp-admin/upload.php3.23 ▲0.0034.64 ▼7.06

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Payments via HandCash for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.521.81 ▼0.2143.32 ▼1.01
Dashboard /wp-admin2,198 ▲305.61 ▲0.0188.18 ▼8.8938.47 ▼5.34
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0433.84 ▼3.6437.31 ▼0.51
Add New Post /wp-admin/post-new.php1,535 ▼018.32 ▼0.16598.86 ▼65.4564.95 ▼6.52
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.0598.49 ▼7.9241.64 ▼7.91

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
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% 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 require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wc-handcash-payments === )
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

wc-handcash-payments/wc-handcash-payments.php 85% from 13 tests

"Payments via HandCash for WooCommerce" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("6.1" instead of "7.3.0")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.3" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin328 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18017328

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
No PNG files were detected