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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 55.83 ▲5.29 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.98 ▲2.37 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.11 ▼9.49 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.07 | 93.49 ▼1,176.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,782 ▲28 | 16.00 ▲0.00 | 6.11 ▼0.14 | 2.48 ▼0.35 |
Dashboard /wp-admin | 2,914 ▲53 | 6.15 ▲0.01 | 121.70 ▼12.36 | 157.44 ▼3.78 |
Posts /wp-admin/edit.php | 2,711 ▲17 | 3.23 ▼0.00 | 62.08 ▼3.39 | 138.87 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,673 ▲12 | 16.35 ▼0.20 | 438.76 ▼6.88 | 159.64 ▲5.94 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.52 ▲0.04 | 137.85 ▲1.41 | 192.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 187 | 394 | 1,769 |
Markdown | 2 | 88 | 0 | 103 |
SVG | 1 | 0 | 0 | 1 |
JavaScript | 1 | 2 | 32 | 0 |
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 code | 0.32 |
Average class complexity | 39.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 7 | 9.21% |
▷ Public methods | 48 | 63.16% |
▷ Protected methods | 1 | 1.32% |
▷ Private methods | 27 | 35.53% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-pix.png | 0.61KB | 0.57KB | ▼ 7.03% |