Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.21ms] Passed 4 tests
A check of server-side resources used by Webmoney - payment gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.93 ▼4.74 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.10 ▼16.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.17 ▼7.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.96 ▼7.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.68 ▲2.82 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Webmoney - payment gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.44 ▲0.00 | 1.83 ▲0.09 | 43.22 ▲0.77 |
Dashboard /wp-admin | 2,206 ▲15 | 4.93 ▼0.18 | 104.10 ▲1.25 | 37.37 ▼5.95 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.03 | 37.49 ▲1.35 | 34.90 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.07 ▼0.10 | 761.35 ▲159.44 | 60.74 ▲7.77 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.12 ▼0.02 | 109.20 ▲5.73 | 46.52 ▲4.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× 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/wc-webmoney/includes/class-wc-webmoney-method.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (One), #2 (Two), #3 (Three)
wc-webmoney/wc-webmoney.php Passed 13 tests
"Webmoney - payment gateway for WooCommerce" version 2.0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Allows you to use Webmoney payment gateway with the WooCommerce plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,934 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 95 | 1,323 | 1,131 | 5,483 |
PHP | 7 | 290 | 985 | 1,122 |
PO File | 1 | 134 | 172 | 319 |
XML | 1 | 0 | 0 | 9 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 72 | |
▷ Static methods | 1 | 1.39% |
▷ Public methods | 71 | 98.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.39% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wc-webmoney-premium-icon.png | 142.30KB | 47.66KB | ▼ 66.51% |