Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼6.40ms] Passed 4 tests
Server-side resources used by Pix 4x sem juros - Pagaleve
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.20 ▼4.62 |
Dashboard /wp-admin | 3.33 ▲0.02 | 57.06 ▲0.20 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.49 ▼2.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.37 ▼12.99 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.93 ▼5.97 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 77 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
wc_pagaleve_webhook_token |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pix 4x sem juros - Pagaleve
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.68 ▲0.33 | 1.50 ▼0.50 | 44.79 ▼2.01 |
Dashboard /wp-admin | 2,232 ▲55 | 5.67 ▲0.03 | 90.92 ▼2.88 | 38.46 ▼3.22 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.00 ▼0.01 | 38.32 ▲3.20 | 34.85 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.22 ▲0.16 | 695.13 ▼13.33 | 49.68 ▼15.04 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.16 ▼0.03 | 102.85 ▼10.26 | 48.07 ▼0.29 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- wc_pagaleve_webhook_token
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php on line 12
- > PHP Notice
Undefined variable: args in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WcPagaleve\\Controller\\GateWays\\Abstract_Payment' not found in wp-content/plugins/wc-pagaleve/src/Controller/GateWays/WcPagalevePixInCash.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php:17
- > PHP Notice
Undefined variable: args in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php on line 12
- > PHP Notice
Undefined variable: args in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php on line 14
- > PHP Notice
Undefined variable: args in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wc-pagaleve/templates/checkout/thank-you.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-pagaleve/src/Controller/GateWays/Abstract_Payment.php:27
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: qrcode, woocommerce, payments, pagaleve, cart...
wc-pagaleve/wc-pagaleve.php 85% from 13 tests
The primary PHP file in "Pix 4x sem juros - Pagaleve" version 1.6.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 374 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.7")
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
No dangerous file extensions were detected3,730 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 684 | 1,407 | 2,728 |
JavaScript | 6 | 130 | 0 | 486 |
Sass | 7 | 47 | 12 | 239 |
CSS | 2 | 10 | 2 | 222 |
SVG | 1 | 0 | 0 | 26 |
Markdown | 1 | 13 | 0 | 24 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 218 | |
▷ Static methods | 102 | 46.79% |
▷ Public methods | 179 | 82.11% |
▷ Protected methods | 10 | 4.59% |
▷ Private methods | 29 | 13.30% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 2 | 66.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-128x128pxs.png | 5.57KB | 2.93KB | ▼ 47.35% |
assets/images/icon-256x256px.png | 11.55KB | 5.46KB | ▼ 52.69% |
assets/images/icons/logo-pix.png | 3.04KB | 3.58KB | 0.00% |
assets/images/icons/pagaleve.png | 6.70KB | 7.24KB | 0.00% |
assets/images/icons/pagaleve-sprites.png | 12.91KB | 13.54KB | 0.00% |