10% woo-pagseguro-parceled

Code Review | PagSeguro Parceled for WooCommerce

WordPress plugin PagSeguro Parceled for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: woo-pagseguro-par...
  • Plugin version: 1.8.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2015
  • Latest release: Sep 13, 2022
  • Number of updates: 372
  • Update frequency: every 6.7 days
  • Top authors: carlosramosweb (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

600+ active /35,708 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/woo-pagseguro-parceled/woo-pagseguro-parceled.php+47
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.96ms] Passed 4 tests

This is a short check of server-side resources used by PagSeguro Parceled for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2137.86 ▼2.16
Dashboard /wp-admin3.50 ▲0.2048.78 ▼3.31
Posts /wp-admin/edit.php3.61 ▲0.2649.42 ▼0.58
Add New Post /wp-admin/post-new.php6.08 ▲0.2090.74 ▼5.79
Media Library /wp-admin/upload.php3.42 ▲0.2038.35 ▲6.41

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
Activated_Plugin
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
woo_pagseguro_parceled_settings

Browser metrics Passed 4 tests

A check of browser resources used by PagSeguro Parceled for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲11613.30 ▼1.071.69 ▼0.1342.13 ▲3.35
Dashboard /wp-admin2,229 ▲414.84 ▼1.06108.99 ▲8.3842.55 ▼2.37
Posts /wp-admin/edit.php2,115 ▲262.00 ▲0.0140.14 ▼0.5438.35 ▲2.00
Add New Post /wp-admin/post-new.php1,568 ▲5118.28 ▲0.56622.01 ▲28.3350.03 ▼4.70
Media Library /wp-admin/upload.php1,417 ▲294.22 ▼0.0796.05 ▲0.6341.45 ▼0.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • woo_pagseguro_parceled_settings
    • widget_recent-comments
    • Activated_Plugin
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: installments, payment, parcelamento, parcela, pgina detalhe de produto...

woo-pagseguro-parceled/woo-pagseguro-parceled.php 85% from 13 tests

The entry point to "PagSeguro Parceled for WooCommerce" version 1.8.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • 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
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,067 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21051291,067

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods521.74%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin