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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.08ms] Passed 4 tests
An overview of server-side resources used by NETOPIA Payments Woocommerce Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.45 ▲1.91 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.32 ▼9.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.47 ▼5.38 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.19 ▼11.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.64 ▲4.14 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
woocommerce_netopiapayments_certifications |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NETOPIA Payments Woocommerce Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲42 | 14.14 ▼0.41 | 2.10 ▼0.03 | 47.00 ▲4.51 |
Dashboard /wp-admin | 2,195 ▲18 | 5.49 ▼0.17 | 87.53 ▼1.29 | 37.33 ▼3.29 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.95 ▼0.20 | 34.72 ▼4.74 | 32.82 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.96 ▼0.29 | 668.79 ▲25.87 | 51.19 ▼3.87 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.07 | 108.29 ▲15.37 | 47.09 ▲6.42 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- woocommerce_netopiapayments_certifications
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/netopia-payments-payment-gateway/wc-netopiapayments-gateway.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/netopia-payments-payment-gateway/netopiapayments.php:13
- > PHP Fatal error
Uncaught Error: Class 'Netopia_Payment_Request_Abstract' not found in wp-content/plugins/netopia-payments-payment-gateway/netopia/Payment/Request/Transfer.php:10
- > PHP Fatal error
Uncaught Error: Class 'Netopia_Payment_Request_Abstract' not found in wp-content/plugins/netopia-payments-payment-gateway/netopia/Payment/Request/Card.php:11
- > PHP Fatal error
Uncaught Error: Class 'Netopia_Payment_Request_Abstract' not found in wp-content/plugins/netopia-payments-payment-gateway/netopia/Payment/Request/Bitcoin.php:11
- > PHP Fatal error
Uncaught Error: Class 'Netopia_Payment_Request_Abstract' not found in wp-content/plugins/netopia-payments-payment-gateway/netopia/Payment/Request/Sms.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 to be fixed:
- Screenshots: Add images for these screenshots: #1 (Backend: WooCommerce > Settings > Checkout), #2 (Frontend: Your website checkout page)
netopia-payments-payment-gateway/netopiapayments.php 92% from 13 tests
The principal PHP file in "NETOPIA Payments Woocommerce Payment Gateway" v. 1.3 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 ("netopia-payments-payment-gateway.php" instead of "netopiapayments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,659 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 349 | 648 | 2,624 |
JavaScript | 2 | 3 | 6 | 31 |
CSS | 2 | 0 | 6 | 2 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 34.45 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 5 | 5.38% |
▷ Public methods | 73 | 78.49% |
▷ Protected methods | 18 | 19.35% |
▷ Private methods | 2 | 2.15% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 61 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 61 | 100.00% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 118.02KB | 32.36KB | ▼ 72.58% |
screenshot-1.png | 125.60KB | 43.02KB | ▼ 65.75% |