83% woocommerce-4b-pasat-internet-payment-gateway

Code Review | WooCommerce pasarela de pago 4B

WordPress plugin WooCommerce pasarela de pago 4B scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-4b-pa...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Sep 25, 2013
  • Latest release: Sep 27, 2013
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: jesusangel.delpozo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.88ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce pasarela de pago 4B
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.91 ▼2.11
Dashboard /wp-admin3.39 ▲0.0847.71 ▼4.26
Posts /wp-admin/edit.php3.44 ▲0.0847.76 ▼1.11
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.06 ▼8.05
Media Library /wp-admin/upload.php3.32 ▲0.0838.34 ▼0.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce pasarela de pago 4B
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.121.62 ▼0.2241.36 ▼2.06
Dashboard /wp-admin2,192 ▲185.61 ▲0.0383.79 ▼9.1538.94 ▼2.57
Posts /wp-admin/edit.php2,097 ▼32.13 ▲0.1836.91 ▼0.1935.04 ▼1.06
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.37725.30 ▲27.9154.41 ▼0.17
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.1399.65 ▼10.5344.54 ▼3.60

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-4b-pasat-internet-payment-gateway/wc-4b-pasat.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (The slick WooCommerce settings panel), #2 (WooCommerce products admin), #3 (WooCommerce sales reports)
The official readme.txt might help

woocommerce-4b-pasat-internet-payment-gateway/wc-4b-pasat.php 85% from 13 tests

The primary PHP file in "WooCommerce pasarela de pago 4B" version 0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-4b-pasat-internet-payment-gateway.php" instead of "wc-4b-pasat.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
There were no executable files found in this plugin498 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1117200385
PO File14452110
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/cuatrob.png0.81KB0.96KB0.00%