Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.13ms] Passed 4 tests
Analyzing server-side resources used by Two - BNPL for businesses
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.63 ▼2.86 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.66 ▼3.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.74 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.84 ▼5.41 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.71 ▲0.66 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Two - BNPL for businesses
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.04 ▼0.24 | 1.61 ▼0.17 | 41.47 ▼11.05 |
Dashboard /wp-admin | 2,195 ▲21 | 5.66 ▲0.13 | 92.92 ▼5.00 | 45.19 ▲7.75 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.04 | 40.90 ▼0.74 | 39.21 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.41 ▼1.83 | 669.02 ▲17.94 | 53.40 ▼13.23 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▼0.07 | 96.39 ▼6.57 | 40.73 ▼1.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tillit-payment-gateway/views/woocommerce_order_pay.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tillit-payment-gateway/tillit-payment-gateway.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tillit-payment-gateway/views/woocommerce_after_checkout_billing_form.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/tillit-payment-gateway/class/WC_Twoinc.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/tillit-payment-gateway/views/woocommerce_checkout.php:5
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
tillit-payment-gateway/tillit-payment-gateway.php 92% from 13 tests
Analyzing the main PHP file in "Two - BNPL for businesses" version 2.16.6
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin6,648 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 514 | 817 | 2,787 |
JavaScript | 4 | 435 | 423 | 1,815 |
CSS | 11 | 28 | 0 | 1,224 |
PO File | 2 | 254 | 264 | 699 |
Markdown | 1 | 19 | 0 | 76 |
SVG | 7 | 0 | 0 | 32 |
TOML | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 133.33 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 42 | 44.21% |
▷ Public methods | 78 | 82.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 17.89% |
Functions | 15 | |
▷ Named functions | 12 | 80.00% |
▷ Anonymous functions | 3 | 20.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 1.21MB with 0.76MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner.png | 998.21KB | 372.65KB | ▼ 62.67% |
assets/intl-tel-input/17.0.8/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/intl-tel-input/17.0.8/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |