64% marketing-360-payments-for-woocommerce

Code Review | Marketing 360® Payments for WooCommerce

WordPress plugin Marketing 360® Payments for WooCommerce scored 64% from 54 tests.

About plugin

  • Plugin page: marketing-360-pay...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 13, 2021
  • Latest release: Jun 22, 2023
  • Number of updates: 21
  • Update frequency: every 32.3 days
  • Top authors: marketing360payments (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 928 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.56ms] Passed 4 tests

Analyzing server-side resources used by Marketing 360® Payments for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.20 ▼2.42
Dashboard /wp-admin3.34 ▲0.0447.73 ▲2.73
Posts /wp-admin/edit.php3.46 ▲0.1045.43 ▲2.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.79 ▲8.75
Media Library /wp-admin/upload.php3.27 ▲0.0436.33 ▼0.30

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Marketing 360® Payments for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.25 ▼1.301.88 ▲0.0844.18 ▲2.98
Dashboard /wp-admin2,217 ▲324.85 ▼0.0897.30 ▼14.8036.69 ▼5.39
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0235.48 ▼1.1634.53 ▼0.57
Add New Post /wp-admin/post-new.php1,522 ▼717.52 ▼0.93598.80 ▼7.9051.69 ▲8.17
Media Library /wp-admin/upload.php1,390 ▲54.25 ▲0.0996.25 ▲2.5241.59 ▲1.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Error in wp-content/plugins/marketing-360-payments-for-woocommerce/uninstall.php+14
    Uncaught Error: Class 'Marketing_360_Payments' not found in wp-content/plugins/marketing-360-payments-for-woocommerce/uninstall.php:14
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • This plugin has failed uninstalling correctly, leaving 51 files (0.49MB) in the plugin directory
    • (new file) apple-developer-merchantid-domain-association
    • (new file) assets/images/discover.svg
    • (new file) assets/images/credit-card.svg
    • (new file) assets/images/visa.svg
    • (new file) assets/images/diners.svg
    • (new file) assets/images/jcb.svg
    • (new file) assets/images/amex.svg
    • (new file) assets/css/stripe-styles.css
    • (new file) assets/images/mastercard.svg
    • (new file) assets/css/admin.css
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/marketing-360-payments-for-woocommerce/marketing360-login-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: payment, ecommerce, payment gateway, woocommerce

marketing-360-payments-for-woocommerce/woocommerce-gateway-marketing-360-payments.php 85% from 13 tests

The primary PHP file in "Marketing 360® Payments for WooCommerce" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("marketing-360-payments-for-woocommerce.php" instead of "woocommerce-gateway-marketing-360-payments.php")
  • Domain Path: The domain path folder was not found ("/languages")

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
Everything looks great! No dangerous files found in this plugin7,309 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP321,5742,9466,058
JavaScript62303001,080
CSS210164
SVG7007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity46.96
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes28.70%
▷ Concrete classes2191.30%
▷ Final classes00.00%
Methods335
▷ Static methods5616.72%
▷ Public methods31092.54%
▷ Protected methods154.48%
▷ Private methods102.99%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants27
▷ Global constants1348.15%
▷ Class constants1451.85%
▷ Public constants14100.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
PNG images were not found in this plugin