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.04MB] [CPU: ▼7.70ms] Passed 4 tests
A check of server-side resources used by WooCommerce Request Network Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.02 ▼2.77 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.40 ▼15.85 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.02 ▲0.78 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.39 ▼10.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.86 ▼1.29 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Request Network Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.25 ▼1.11 | 1.65 ▼0.27 | 43.22 ▼3.96 |
Dashboard /wp-admin | 2,214 ▲26 | 4.84 ▼0.01 | 116.18 ▲4.96 | 43.93 ▲6.24 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.04 | 37.90 ▼0.95 | 34.46 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,546 ▲10 | 23.37 ▲0.14 | 691.27 ▲65.67 | 58.43 ▲7.08 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.25 ▼0.00 | 99.61 ▼2.47 | 43.66 ▼3.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, cryptocurrency, request network, bitcoin, ethereum
woo-request-network/woocommerce-gateway-wooreq.php 85% from 13 tests
The main PHP script in "WooCommerce Request Network Payment Gateway" version 0.1.8 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-request-network.php" instead of "woocommerce-gateway-wooreq.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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,858 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 358 | 585 | 1,101 |
CSS | 3 | 34 | 8 | 503 |
SVG | 2 | 0 | 0 | 161 |
Markdown | 1 | 30 | 0 | 53 |
JavaScript | 3 | 8 | 1 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 18 | 29.51% |
▷ Public methods | 54 | 88.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.48% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/payment-icons.png | 22.85KB | 6.27KB | ▼ 72.57% |
assets/images/request-logo.png | 5.15KB | 3.22KB | ▼ 37.42% |