Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.70ms] Passed 4 tests
An overview of server-side resources used by best2pay payment method
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.61 ▼1.89 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.88 ▼5.02 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 42.56 ▼5.06 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 91.96 ▼6.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 32.21 ▲1.18 |
Server storage [IO: ▲3.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for best2pay payment method
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.59 ▼0.81 | 1.66 ▼0.07 | 40.83 ▼7.17 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.96 | 104.72 ▼4.26 | 44.29 ▼1.12 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▲0.03 | 38.07 ▼0.51 | 34.06 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.24 ▼0.08 | 608.94 ▼22.96 | 58.57 ▼0.14 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.01 | 97.14 ▼1.20 | 41.53 ▼2.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/best2pay-payment-method-visamastercard/best2pay-payment_method.php
- > /wp-content/plugins/best2pay-payment-method-visamastercard/halva_widget.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: amount in wp-content/plugins/best2pay-payment-method-visamastercard/halva_widget.php on line 97
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: e-commerce, payments, best2pay
best2pay-payment-method-visamastercard/best2pay-payment_method.php 85% from 13 tests
"best2pay payment method" version 1.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("best2pay-payment-method-visamastercard.php" instead of "best2pay-payment_method.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,308 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 83 | 92 | 614 |
SVG | 3 | 0 | 0 | 377 |
CSS | 1 | 17 | 0 | 197 |
PO File | 1 | 33 | 38 | 98 |
JavaScript | 1 | 2 | 1 | 18 |
Bourne Shell | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 73.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 26.32% |
Functions | 2 | |
▷ Named functions | 2 | 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 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.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 44.10KB | 15.34KB | ▼ 65.21% |
best2pay.png | 5.70KB | 2.74KB | ▼ 51.99% |
assets/icon-256x256.png | 5.70KB | 2.74KB | ▼ 51.99% |
assets/banner-772x250.png | 139.96KB | 58.91KB | ▼ 57.91% |