Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.19MB] [CPU: ▼10.24ms] Passed 4 tests
Server-side resources used by WooCommerce Mycelium Gear
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 18.05 ▼21.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.89 ▼4.38 |
Posts /wp-admin/edit.php | 3.19 ▼0.17 | 29.18 ▼17.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.87 ▲2.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.06 ▲2.07 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
Browser metrics Passed 4 tests
WooCommerce Mycelium Gear: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,456 ▼355 | 13.31 ▼1.55 | 0.52 ▼1.60 | 18.33 ▼26.58 |
Dashboard /wp-admin | 2,206 ▲3 | 4.82 ▼0.00 | 109.55 ▼0.77 | 43.33 ▲0.76 |
Posts /wp-admin/edit.php | 45 ▼2,044 | 0.44 ▼1.54 | 0.09 ▼32.66 | 9.54 ▼23.56 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 22.90 ▼0.33 | 675.42 ▼32.58 | 80.44 ▲21.23 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▼0.04 | 99.39 ▼9.51 | 45.74 ▲0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: mycelium, payment gateway, woocommerce, bitcoin payments, gear
woo-mycelium-gear/woo-mycelium-gear.php 92% from 13 tests
"WooCommerce Mycelium Gear" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.2.3")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin428 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 248 | 428 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.72MB with 0.49MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 272.67KB | 77.51KB | ▼ 71.57% |
assets/screenshot-2.png | 306.13KB | 90.23KB | ▼ 70.53% |
assets/screenshot-3.png | 133.57KB | 40.13KB | ▼ 69.95% |
images/mycelium.png | 29.60KB | 11.72KB | ▼ 60.40% |