10% mwhp-for-woocommerce

Code Review | Merchant Warrior PAY.Link for WooCommerce

WordPress plugin Merchant Warrior PAY.Link for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: mwhp-for-woocommerce
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2023
  • Latest release: Apr 22, 2023
  • Number of updates: 4
  • Update frequency: every 20.0 days
  • Top authors: bakkbone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 132 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/mwhp-for-woocommerce/mwhp-for-woocommerce.php+34
    Uncaught Error: Using $this when not in object context in wp-content/plugins/mwhp-for-woocommerce/mwhp-for-woocommerce.php:34
    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: ▼4.21ms] Passed 4 tests

A check of server-side resources used by Merchant Warrior PAY.Link for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.69 ▼6.52
Dashboard /wp-admin3.31 ▲0.0046.52 ▼4.55
Posts /wp-admin/edit.php3.36 ▲0.0048.93 ▲2.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.60 ▼5.35
Media Library /wp-admin/upload.php3.23 ▲0.0036.08 ▼0.41

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Merchant Warrior PAY.Link for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.192.01 ▲0.1541.60 ▼3.20
Dashboard /wp-admin2,206 ▲154.87 ▼0.13106.67 ▼8.0737.51 ▼6.21
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0439.58 ▲3.8135.87 ▲1.87
Add New Post /wp-admin/post-new.php1,536 ▲1723.21 ▼0.07668.91 ▼13.8662.71 ▲9.11
Media Library /wp-admin/upload.php1,388 ▲34.41 ▲0.2294.89 ▼7.4841.24 ▼1.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mwhp-for-woocommerce/index.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce, ecommerce, payment, gateway

mwhp-for-woocommerce/mwhp-for-woocommerce.php 92% from 13 tests

"Merchant Warrior PAY.Link for WooCommerce" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected190 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23213190

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin