84% paguelofacil

Code Review | Paguelofacil Checkout for Woocommerce

WordPress plugin Paguelofacil Checkout for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: paguelofacil
  • Plugin version: 3.7
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 3, 2022
  • Latest release: Mar 30, 2023
  • Number of updates: 28
  • Update frequency: every 13.1 days
  • Top authors: paguelofacil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,028 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.75ms] Passed 4 tests

A check of server-side resources used by Paguelofacil Checkout for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.09 ▼3.29
Dashboard /wp-admin3.31 ▲0.0051.41 ▼7.32
Posts /wp-admin/edit.php3.36 ▲0.0056.02 ▲3.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.99 ▼13.84
Media Library /wp-admin/upload.php3.23 ▲0.0035.79 ▼6.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Paguelofacil Checkout for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.59 ▼0.794.61 ▲2.7346.85 ▼1.97
Dashboard /wp-admin2,224 ▲214.81 ▼0.03103.19 ▼14.6839.25 ▼8.69
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0141.64 ▲4.4932.78 ▼7.72
Add New Post /wp-admin/post-new.php1,549 ▲423.18 ▼0.00626.61 ▼59.6451.86 ▼29.31
Media Library /wp-admin/upload.php1,397 ▼34.30 ▲0.08101.33 ▼7.5743.20 ▼7.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/paguelofacil/gateway-paguelofacil.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

paguelofacil/gateway-paguelofacil.php 92% from 13 tests

The entry point to "Paguelofacil Checkout for Woocommerce" version 3.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paguelofacil.php" instead of "gateway-paguelofacil.php")

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
Success! There were no dangerous files found in this plugin592 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1214123438
PO File15559154

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity96.00
▷ Minimum class complexity96.00
▷ Maximum class complexity96.00
Average method complexity6.94
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/pc-esp-desktop.png22.30KB8.50KB▼ 61.91%