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.13MB] [CPU: ▼9.46ms] Passed 4 tests
A check of server-side resources used by Negpay qrcode Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.01 ▼3.91 |
Dashboard /wp-admin | 3.44 ▲0.09 | 54.12 ▼12.41 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 52.16 ▼0.52 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.77 ▼21.01 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.32 ▲4.91 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Negpay qrcode Payment Gateway: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲54 | 14.41 ▼0.27 | 2.34 ▲0.33 | 47.70 ▲1.84 |
Dashboard /wp-admin | 2,218 ▲15 | 4.81 ▼1.06 | 108.00 ▼2.93 | 45.14 ▲4.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.03 | 36.28 ▼1.91 | 37.59 ▲5.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 23.14 ▼0.11 | 617.90 ▼62.49 | 59.86 ▼20.49 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.20 ▲0.02 | 109.39 ▼4.98 | 49.05 ▼3.07 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/integration-qr-code-payment-gateway/includes/payment.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please a description for screenshot #4 in integration-qr-code-payment-gateway/assets to your readme.txt
- Contributors: The plugin contributors field is not present
- Contributors: The plugin tags were not defined
- Screenshots: Screenshot #5 (Order Details) image not found
integration-qr-code-payment-gateway/negpay-qr-code-payment-for-woocommerce.php 85% from 13 tests
The main file in "Negpay qrcode Payment Gateway" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("integration-qr-code-payment-gateway.php" instead of "negpay-qr-code-payment-for-woocommerce.php")
- 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,600 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 744 | 1,114 | 2,904 |
CSS | 3 | 194 | 9 | 1,119 |
PHP | 3 | 119 | 142 | 577 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/2.PNG | 67.11KB | 29.15KB | ▼ 56.57% |
screenshot/1.PNG | 78.32KB | 26.95KB | ▼ 65.59% |
screenshot/3.png | 28.40KB | 14.15KB | ▼ 50.17% |
includes/icon/logoold.png | 9.92KB | 4.21KB | ▼ 57.59% |
screenshot/4.PNG | 37.53KB | 17.14KB | ▼ 54.33% |