Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼272.71ms] Passed 4 tests
A check of server-side resources used by Payment Options per Product
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 31.46 ▲9.30 |
Dashboard /wp-admin | 3.07 ▲0.02 | 49.65 ▲6.69 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 43.59 ▼1.20 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.63 ▼1,094.30 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 36.26 ▼2.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment Options per Product
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲67 | 15.77 ▼0.10 | 8.26 ▼0.22 | 50.31 ▼2.99 |
Dashboard /wp-admin | 2,930 ▲80 | 5.90 ▲0.10 | 136.69 ▼4.38 | 112.47 ▲2.37 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.02 | 69.41 ▲2.63 | 85.50 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,481 ▼172 | 18.52 ▼0.17 | 360.96 ▼8.64 | 108.03 ▼4.10 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.01 ▲0.03 | 168.25 ▲19.25 | 113.17 ▼4.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: incasso, ideal, payment gateway, woocommerce, subscriptions...
payment-options-per-product/payment-options-per-product.php 92% from 13 tests
The main PHP script in "Payment Options per Product" version 1.0.3 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("3.7.0" instead of "3.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin95 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 26 | 95 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.95 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 3.46KB | 2.18KB | ▼ 37.00% |