Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.37ms] Passed 4 tests
This is a short check of server-side resources used by Buy Now Pay Later - ADDI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.49 ▲0.26 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.61 ▼15.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.49 ▼4.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.57 ▼8.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.29 ▼4.49 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Buy Now Pay Later - ADDI
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.19 | 1.81 ▼0.42 | 47.85 ▲5.46 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▲0.01 | 93.91 ▲3.07 | 41.23 ▲3.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.04 | 34.22 ▼6.83 | 35.08 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.31 ▲5.01 | 639.30 ▲8.94 | 62.44 ▼7.02 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.23 ▼0.06 | 98.62 ▲5.38 | 41.53 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl_bnpn.php
- > /wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl.php
- > /wp-content/plugins/buy-now-pay-later-addi/templates/br/flex.php
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: min_amount in wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl_bnpn.php on line 99
- > PHP Notice
Undefined variable: max_amount in wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl_bnpn.php on line 103
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/buy-now-pay-later-addi/addi-gateway.php on line 21
- > PHP Notice
Undefined variable: installments in wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl.php on line 64
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/buy-now-pay-later-addi/addi-gateway.php on line 21
- > PHP Notice
Undefined variable: installments in wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl_bnpn.php on line 49
- > PHP Notice
Undefined variable: total in wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl_bnpn.php on line 88
- > PHP Notice
Undefined variable: discount in wp-content/plugins/buy-now-pay-later-addi/templates/br/bnpl.php on line 4
- > PHP Notice
Undefined variable: total in wp-content/plugins/buy-now-pay-later-addi/templates/br/flex.php on line 121
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/buy-now-pay-later-addi/templates/co/flex.php:5
- > 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)
There were no browser issues found
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
2 plugin tags: spam, comments
buy-now-pay-later-addi/addi-gateway.php 85% from 13 tests
This is the main PHP file of "Buy Now Pay Later - ADDI" version 1.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buy-now-pay-later-addi.php" instead of "addi-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected4,171 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 402 | 312 | 2,445 |
CSS | 2 | 215 | 54 | 1,182 |
PO File | 1 | 99 | 102 | 291 |
JavaScript | 2 | 26 | 11 | 136 |
SVG | 8 | 0 | 0 | 117 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 119.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 236.00 |
Average method complexity | 15.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 39 | |
▷ Named functions | 22 | 56.41% |
▷ Anonymous functions | 17 | 43.59% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.42MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons01.png | 1.92KB | 1.32KB | ▼ 31.27% |
assets/icons04.png | 1.33KB | 0.93KB | ▼ 29.62% |
assets/title_br.png | 10.42KB | 4.87KB | ▼ 53.29% |
assets/icon-white-128x128.png | 5.06KB | 3.17KB | ▼ 37.29% |
assets/ADDI_logo_white.png | 3.05KB | 2.21KB | ▼ 27.31% |