Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.62ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Qr payments via PayPal
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.94 ▲0.53 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.28 ▼16.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.28 ▼8.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.04 ▼18.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.66 ▲1.89 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooCommerce Qr payments via PayPal: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.80 ▲0.17 | 1.87 ▲0.27 | 42.87 ▼1.52 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.96 | 113.33 ▲13.21 | 41.97 ▲0.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.04 | 35.74 ▼6.27 | 36.74 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,519 ▼9 | 23.52 ▲5.25 | 656.84 ▲53.43 | 51.04 ▲0.56 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.00 | 99.62 ▲3.26 | 43.24 ▼0.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/qr-payments-via-paypal/nor1m-paypal-qr-payment.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/qr-payments-via-paypal/includes/class-npqp-form-invoice-data.php:4
- > PHP Notice
Undefined variable: order in wp-content/plugins/qr-payments-via-paypal/includes/class-npqp-form-invoice-data.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/qr-payments-via-paypal/includes/class-npqp-form-fields.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Settings), #2 (API Credentials), #3 (QR code settings), #4 (Invoice details), #5 (Invoicer data), #6 (Invoicer data), #7 (Term/Custom amount), #8 (Tax/Configuration), #9 (Checkout), #10 (QR code)
qr-payments-via-paypal/nor1m-paypal-qr-payment.php 92% from 13 tests
The principal PHP file in "WooCommerce Qr payments via PayPal" v. 0.9 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("qr-payments-via-paypal.php" instead of "nor1m-paypal-qr-payment.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,840 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 157 | 68 | 1,148 |
JSON | 1 | 0 | 0 | 254 |
PO File | 1 | 104 | 109 | 232 |
JavaScript | 6 | 25 | 6 | 117 |
CSS | 2 | 6 | 0 | 87 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.99MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 103.77KB | 61.84KB | ▼ 40.41% |
screenshot-7.png | 95.58KB | 60.27KB | ▼ 36.95% |
screenshot-9.png | 101.27KB | 63.01KB | ▼ 37.78% |
screenshot-3.png | 92.06KB | 59.40KB | ▼ 35.47% |
screenshot-8.png | 110.37KB | 62.64KB | ▼ 43.25% |