77% wc-ja-ja-pagamentos-multicaixa-express

Code Review | Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express

WordPress plugin Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express scored77%from 54 tests.

About plugin

  • Plugin page: wc-ja-ja-pagament...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.3
  • WordPress version: 6.3.1
  • First release: Aug 2, 2022
  • Latest release: Aug 31, 2023
  • Number of updates: 8
  • Update frequency: every 49.4 days
  • Top authors: jajapagamentos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.46 ▼1.28
Dashboard /wp-admin3.32 ▲0.0245.07 ▼3.97
Posts /wp-admin/edit.php3.37 ▲0.0148.98 ▲1.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.57 ▼8.19
Media Library /wp-admin/upload.php3.25 ▲0.0136.64 ▲1.47

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.62 ▼0.671.86 ▲0.1539.02 ▼4.48
Dashboard /wp-admin2,215 ▲274.84 ▼0.07110.05 ▲0.5341.73 ▼4.06
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0440.17 ▲0.9935.66 ▲1.16
Add New Post /wp-admin/post-new.php1,548 ▲1419.47 ▼3.57595.74 ▼79.4462.48 ▲4.51
Media Library /wp-admin/upload.php1,397 ▲64.24 ▲0.0296.49 ▼3.0242.78 ▲0.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/mcxe-checkout.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-filesystem-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/payment_gateway.php on line 3
    • > PHP Notice
      Undefined index: token in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/mcxe-checkout.php on line 20
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/payment_gateway.php on line 3
    • > PHP Notice
      Undefined index: go in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/mcxe-checkout.php on line 17
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-filesystem-base.php): failed to open stream: No such file or directory in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/payment_gateway.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (20 tag instead of maximum 10)
You can look at the official readme.txt

wc-ja-ja-pagamentos-multicaixa-express/mcxe-woocommerce.php 77% from 13 tests

The main PHP script in "Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-ja-ja-pagamentos-multicaixa-express.php" instead of "mcxe-woocommerce.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "2.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin412 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP57930412

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
There were not PNG files found in your plugin