Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.31ms] Passed 4 tests
Analyzing server-side resources used by POLi Payments for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.10 ▼6.44 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.75 ▼14.52 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.38 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.91 ▼12.50 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.99 ▲1.57 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for POLi Payments for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.70 ▼0.01 | 1.61 ▼0.15 | 37.47 ▼5.52 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.03 | 92.73 ▼6.53 | 39.19 ▼6.20 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.05 | 36.83 ▼3.25 | 31.52 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.08 ▲0.08 | 664.73 ▲47.12 | 54.94 ▲5.56 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.20 ▲0.03 | 99.29 ▲3.27 | 44.75 ▲1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poli-payments-for-woocommerce/poli.php:21
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/poli-payments-for-woocommerce/blocks/class-wc-gateway-poli.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: polipayments, debit payments, woocommerce, poli, payment gateway
poli-payments-for-woocommerce/poli.php 85% from 13 tests
Analyzing the main PHP file in "POLi Payments for WooCommerce" version 6.2
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.6")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("poli-payments-for-woocommerce.php" instead of "poli.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin881 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 67 | 157 | 717 |
JavaScript | 3 | 3 | 28 | 164 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/poli-icon.png | 0.91KB | 0.41KB | ▼ 54.37% |
images/poli-icon@3x.png | 2.67KB | 0.88KB | ▼ 66.83% |
images/poli-icon@2x.png | 1.69KB | 0.62KB | ▼ 63.67% |
images/poli-rec.png | 1.86KB | 0.84KB | ▼ 54.89% |