94% incuca-tech-pix-for-woocommerce

Code Review | Pix para WooCommerce

WordPress plugin Pix para WooCommerce scored 94% from 54 tests.

About plugin

  • Plugin page: incuca-tech-pix-f...
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Dec 29, 2020
  • Latest release: Oct 28, 2021
  • Number of updates: 30
  • Update frequency: every 10.1 days
  • Top authors: incuca (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

10,000+ active / 47,798 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼297.63ms] Passed 4 tests

A check of server-side resources used by Pix para WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0255.83 ▲5.29
Dashboard /wp-admin3.43 ▲0.0233.98 ▲2.37
Posts /wp-admin/edit.php3.66 ▲0.0238.11 ▼9.49
Add New Post /wp-admin/post-new.php6.91 ▼0.0793.49 ▼1,176.83
Media Library /wp-admin/upload.php3.31 ▲0.0122.80 ▼6.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pix para WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,782 ▲2816.00 ▲0.006.11 ▼0.142.48 ▼0.35
Dashboard /wp-admin2,914 ▲536.15 ▲0.01121.70 ▼12.36157.44 ▼3.78
Posts /wp-admin/edit.php2,711 ▲173.23 ▼0.0062.08 ▼3.39138.87 ▼1.23
Add New Post /wp-admin/post-new.php1,673 ▲1216.35 ▼0.20438.76 ▼6.88159.64 ▲5.94
Media Library /wp-admin/upload.php1,717 ▲195.52 ▲0.04137.85 ▲1.41192.73 ▲2.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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 | 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/incuca-tech-pix-for-woocommerce/includes/helpers/jetpack.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: payment gateway, woocommerce, pix, gateway

incuca-tech-pix-for-woocommerce/pix-for-woocommerce.php 92% from 13 tests

The main file in "Pix para WooCommerce" v. 1.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("incuca-tech-pix-for-woocommerce.php" instead of "pix-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,873 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP141873941,769
Markdown2880103
SVG1001
JavaScript12320

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity39.67
▷ Minimum class complexity1.00
▷ Maximum class complexity205.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods76
▷ Static methods79.21%
▷ Public methods4863.16%
▷ Protected methods11.32%
▷ Private methods2735.53%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-pix.png0.61KB0.57KB▼ 7.03%