90% click2pay-pagamentos

Code Review | Click2pay para WooCommerce | PIX, Cartão de Crédito e Boleto Bancário

WordPress plugin Click2pay para WooCommerce | PIX, Cartão de Crédito e Boleto Bancário scored90%from 54 tests.

About plugin

  • Plugin page: click2pay-pagamentos
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Oct 27, 2023
  • Number of updates: 13
  • Update frequency: every 19.5 days
  • Top authors: click2paybrasil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.45ms] Passed 4 tests

Analyzing server-side resources used by Click2pay para WooCommerce | PIX, Cartão de Crédito e Boleto Bancário
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1243.24 ▼1.00
Dashboard /wp-admin3.43 ▲0.1251.10 ▲2.03
Posts /wp-admin/edit.php3.54 ▲0.1851.58 ▲7.83
Add New Post /wp-admin/post-new.php6.01 ▲0.1299.76 ▼4.57
Media Library /wp-admin/upload.php3.35 ▲0.1238.13 ▲1.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Click2pay para WooCommerce | PIX, Cartão de Crédito e Boleto Bancário
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.69 ▲0.331.68 ▼0.3948.45 ▲3.50
Dashboard /wp-admin2,195 ▲145.59 ▼0.1195.95 ▼3.5843.95 ▲4.63
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0141.21 ▲5.1235.94 ▼3.01
Add New Post /wp-admin/post-new.php1,526 ▼923.08 ▲5.16638.83 ▼112.5254.21 ▼32.73
Media Library /wp-admin/upload.php1,400 ▼04.13 ▲0.01107.73 ▼1.7641.75 ▼8.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: carto de crdito, pix, gateway, subscriptions, assinaturas...

click2pay-pagamentos/click2pay-pagamentos.php Passed 13 tests

Analyzing the main PHP file in "Click2pay para WooCommerce | PIX, Cartão de Crédito e Boleto Bancário" version 1.1.5
55 characters long description:
Receba pagamentos via Pix, Cartão de crédito e boleto

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,078 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP318208732,940
JavaScript43834133
JSON1005
CSS1110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.29
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces9
Interfaces0
Traits3
Classes18
▷ Abstract classes15.56%
▷ Concrete classes1794.44%
▷ Final classes00.00%
Methods146
▷ Static methods2517.12%
▷ Public methods14196.58%
▷ Protected methods10.68%
▷ Private methods42.74%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There are no PNG files in this plugin