89% plataya-pagos-gateway

Code Review | Plata Ya Cr�dito payments for WooCommerce

WordPress plugin Plata Ya Cr�dito payments for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: plataya-pagos-gat...
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.10-5.9.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2020
  • Latest release: Mar 21, 2022
  • Number of updates: 26
  • Update frequency: every 21.1 days
  • Top authors: platayapagos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.06ms] Passed 4 tests

Analyzing server-side resources used by Plata Ya Cr�dito payments for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0840.95 ▼1.67
Dashboard /wp-admin3.43 ▲0.0449.80 ▼17.61
Posts /wp-admin/edit.php3.54 ▲0.1449.52 ▼4.46
Add New Post /wp-admin/post-new.php6.01 ▲0.0894.21 ▼20.49
Media Library /wp-admin/upload.php3.35 ▲0.0838.42 ▲5.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Plata Ya Cr�dito payments for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▲0.131.58 ▼0.0140.87 ▲0.87
Dashboard /wp-admin2,198 ▲215.63 ▼0.0284.00 ▼7.1836.75 ▼5.90
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0539.91 ▲0.0137.52 ▲0.39
Add New Post /wp-admin/post-new.php1,526 ▼222.89 ▼0.17691.78 ▲16.7854.32 ▼6.10
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.0193.07 ▼11.0142.65 ▼2.76

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

plataya-pagos-gateway/woocommerce-plataya-credito.php 85% from 13 tests

"Plata Ya Cr�dito payments for WooCommerce" version 1.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("plataya-pagos-gateway.php" instead of "woocommerce-plataya-credito.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin389 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP189111389

PHP code Passed 2 tests

A short 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.32
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/woocommerce-plataya-credito.png8.67KB2.68KB▼ 69.14%