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.00MB] [CPU: ▼4.64ms] Passed 4 tests
Server-side resources used by Payfi BNPL Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.87 ▼5.66 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.58 ▼1.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.56 ▼1.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.93 ▼9.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.83 ▲4.01 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Payfi BNPL Payment Gateway: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.13 | 1.73 ▼0.22 | 40.49 ▼2.40 |
Dashboard /wp-admin | 2,198 ▲21 | 5.52 ▼0.07 | 88.44 ▼13.37 | 39.18 ▼4.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.01 | 33.34 ▼6.83 | 32.71 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.10 ▲0.02 | 689.79 ▲0.09 | 52.03 ▼5.79 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.25 ▼0.12 | 105.48 ▲2.84 | 44.61 ▼1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires php: Invalid plugin version format
- Screenshots: Please add images for these screenshots: #1 (Payfi BNPL Payment Gateway for Woocommerce settings page), #2 (Payfi payment popup on the website)
payfi-bnpl-payment-gateway/woo-payfi.php 85% from 13 tests
The main PHP script in "Payfi BNPL Payment Gateway" version 1.7.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("payfi-bnpl-payment-gateway.php" instead of "woo-payfi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin965 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 370 | 242 | 789 |
JavaScript | 4 | 29 | 8 | 176 |
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.40 |
Average class complexity | 54.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/payfi.png | 57.78KB | 21.06KB | ▼ 63.55% |
assets/images/payfi-banner.png | 6.36KB | 3.60KB | ▼ 43.49% |
assets/images/payfi-logo.png | 1.85KB | 1.02KB | ▼ 44.53% |