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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.07ms] Passed 4 tests
Analyzing server-side resources used by PowerUp! for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.15 ▼2.98 |
Dashboard /wp-admin | 3.40 ▲0.09 | 54.69 ▲3.39 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.40 ▼0.23 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.31 ▼15.51 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.04 ▼1.56 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for PowerUp! for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲10 | 14.34 ▼0.02 | 1.75 ▼0.33 | 41.43 ▼1.59 |
Dashboard /wp-admin | 2,205 ▲28 | 5.64 ▼0.03 | 88.08 ▼1.59 | 42.17 ▼0.42 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.05 | 37.56 ▼3.98 | 36.56 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.18 ▼0.30 | 649.23 ▼35.31 | 57.73 ▲11.04 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.23 ▲0.03 | 99.01 ▼6.37 | 44.00 ▲0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 ([screenhot-1.png] WooCommerce Settings > PowerUp! - Shop page options), #2 ([screenhot-2.png] WooCommerce Settings > PowerUp! - Product page options), #3 ([screenhot-3.png] WooCommerce Settings > PowerUp! - Cart page options), #4 ([screenhot-4.png] WooCommerce Settings > PowerUp! - Checkout page options), #5 ([screenhot-5.png] WooCommerce Settings > PowerUp! - Tax options), #6 ([screenhot-6.png] WooCommerce Settings > PowerUp! - Product Image options), #7 ([screenhot-7.png] WooCommerce Settings > PowerUp! - Misc options), #8 ([screenhot-8.png] Add "Buy Now" button to your shop/category page), #9 ([screenhot-9.png] Add "Buy Now" button to your simple product page)
powerup-for-woocommerce/woocommerce-powerup.php 92% from 13 tests
"PowerUp! for WooCommerce" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("powerup-for-woocommerce.php" instead of "woocommerce-powerup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,477 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 512 | 450 | 1,150 |
PO File | 1 | 121 | 155 | 324 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 46.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 56 | |
▷ Static methods | 4 | 7.14% |
▷ Public methods | 49 | 87.50% |
▷ Protected methods | 1 | 1.79% |
▷ Private methods | 6 | 10.71% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.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
9 PNG files occupy 0.80MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 80.53KB | 22.23KB | ▼ 72.40% |
screenshot-2.png | 127.35KB | 39.99KB | ▼ 68.60% |
screenshot-4.png | 85.80KB | 25.68KB | ▼ 70.07% |
screenshot-9.png | 113.38KB | 38.35KB | ▼ 66.18% |
screenshot-6.png | 50.80KB | 12.59KB | ▼ 75.22% |