10% woocommerce-paymaster-gateway-019

Code Review | PayMaster for WooCommerce

WordPress plugin PayMaster for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: woocommerce-payma...
  • Plugin version: 0.4.31
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Sep 24, 2014
  • Latest release: Jan 15, 2016
  • Number of updates: 37
  • Update frequency: every 12.9 days
  • Top authors: Qazomardok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,478 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php+1284
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.49MB] [CPU: ▼50.69ms] Passed 4 tests

An overview of server-side resources used by PayMaster for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.50 ▼0.965.19 ▼35.01
Dashboard /wp-admin2.52 ▼0.796.60 ▼41.39
Posts /wp-admin/edit.php2.52 ▼0.847.54 ▼40.91
Add New Post /wp-admin/post-new.php2.52 ▼3.377.46 ▼85.44
Media Library /wp-admin/upload.php2.52 ▼0.717.06 ▼26.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PayMaster for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.30 ▼1.344.56 ▲2.6439.79 ▼7.00
Dashboard /wp-admin2,217 ▲264.91 ▲0.03103.44 ▼14.0038.51 ▼8.09
Posts /wp-admin/edit.php2,097 ▲82.03 ▼0.0040.40 ▲6.6236.22 ▲1.00
Add New Post /wp-admin/post-new.php1,522 ▼1217.67 ▼5.20715.46 ▲51.9665.47 ▲7.27
Media Library /wp-admin/upload.php1,396 ▲84.24 ▲0.0194.36 ▼1.8738.97 ▼2.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php+1284
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 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 0% from 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
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woocommerce-paymaster-gateway-019/includes/index.php
    • > /wp-content/plugins/woocommerce-paymaster-gateway-019/includes/status/status.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php on line 1284
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php on line 1285
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-paymaster-gateway-019/wc-paymaster.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
5 plugin tags: paymaster, woocommerce, woo commerce, payment getaway, ecommerce

woocommerce-paymaster-gateway-019/wc-paymaster.php 85% from 13 tests

This is the main PHP file of "PayMaster for WooCommerce" version 0.4.31, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 338 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-paymaster-gateway-019.php" instead of "wc-paymaster.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
  • For security reasons, never distribute binary or executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/woocommerce-paymaster-gateway-019/includes/ca-bundle.crt
1,020 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4306164914
JavaScript1121955
CSS20051

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
12 PNG files occupy 0.33MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-9.png14.41KB8.43KB▼ 41.53%
assets/screenshot-5.png42.40KB21.80KB▼ 48.58%
assets/screenshot-2.png64.58KB35.24KB▼ 45.43%
assets/screenshot-7.png24.94KB11.56KB▼ 53.64%
assets/screenshot-11.png8.49KB5.16KB▼ 39.29%