Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼139.25ms] Passed 4 tests
An overview of server-side resources used by Payment Gateway for LANKAQR on WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.30 | 38.86 ▲17.83 |
Dashboard /wp-admin | 3.24 ▲0.19 | 48.78 ▲2.60 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 44.95 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 93.36 ▼564.72 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 35.70 ▲4.78 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
lankaqrwc_plugin_installed_time |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment Gateway for LANKAQR on WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.02 ▲0.40 | 12.21 ▲1.71 | 47.06 ▲0.93 |
Dashboard /wp-admin | 2,967 ▲34 | 5.91 ▼0.09 | 155.54 ▼13.67 | 112.88 ▲4.21 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 61.71 ▼17.35 | 89.58 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.83 ▲0.16 | 382.58 ▼23.56 | 103.47 ▼10.95 |
Media Library /wp-admin/upload.php | 1,748 ▼59 | 5.01 ▼0.00 | 171.21 ▲5.24 | 117.49 ▲14.00 |
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
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-lankaqr-payment-gateway/includes/notice.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-lankaqr-payment-gateway/includes/payment.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 17 tag instead of maximum 10
- Donate link: Please fix this invalid URI: ""
wc-lankaqr-payment-gateway/wc-lankaqr-payment-gateway.php 92% from 13 tests
This is the main PHP file of "Payment Gateway for LANKAQR on WooCommerce" version 1.2.4, 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:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "3.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,265 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 146 | 252 | 901 |
CSS | 1 | 34 | 2 | 161 |
Markdown | 1 | 80 | 0 | 153 |
JavaScript | 1 | 5 | 0 | 50 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 99.00 |
▷ Minimum class complexity | 99.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 5.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/lankaqr.png | 6.05KB | 2.51KB | ▼ 58.59% |
assets/img/logo-footer.png | 12.89KB | 3.72KB | ▼ 71.16% |