Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼10.65ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Stellar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.17 ▼0.65 |
Dashboard /wp-admin | 3.29 ▼0.01 | 35.34 ▼13.56 |
Posts /wp-admin/edit.php | 3.36 ▼0.00 | 37.81 ▼9.18 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.36 | 73.37 ▼14.09 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 30.96 ▼5.78 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooCommerce Stellar: 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 ▲65 | 13.29 ▼1.13 | 1.67 ▼0.20 | 47.42 ▼4.17 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.92 | 104.84 ▲0.43 | 39.43 ▼0.42 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.04 ▲0.05 | 39.11 ▲3.08 | 33.94 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.13 ▼0.05 | 697.85 ▲41.88 | 60.03 ▲7.40 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.13 ▼0.16 | 102.17 ▲0.13 | 41.63 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- 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)
The smoke test was a success, however most plugin functionality was not tested
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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in woocommerce-stellar/assets to your readme.txt
woocommerce-stellar/woocommerce-stellar-gateway.php 69% from 13 tests
"WooCommerce Stellar" version 1.0.2'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:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-stellar.php" instead of "woocommerce-stellar-gateway.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
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
There were no executable files found in this plugin2,542 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 20 | 682 | 1,706 |
PHP | 7 | 221 | 448 | 667 |
SVG | 1 | 0 | 1 | 112 |
CSS | 1 | 0 | 0 | 57 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 48 | 94.12% |
▷ Protected methods | 1 | 1.96% |
▷ Private methods | 2 | 3.92% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 3.02KB | 1.58KB | ▼ 47.67% |
assets/images/stellar_rocket.png | 1.86KB | 1.63KB | ▼ 12.41% |
assets/images/stellar-rocket.png | 30.47KB | 7.88KB | ▼ 74.13% |