Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.13ms] Passed 4 tests
A check of server-side resources used by Minicart for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.38 ▼0.29 |
Dashboard /wp-admin | 3.32 ▲0.01 | 40.67 ▼3.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.16 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.11 ▼32.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.94 ▼4.00 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
wmc_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Minicart for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.21 ▼1.41 | 2.18 ▲0.42 | 44.72 ▲3.28 |
Dashboard /wp-admin | 2,212 ▲24 | 5.80 ▲0.68 | 97.64 ▼16.42 | 39.99 ▼3.10 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.02 ▲0.01 | 40.27 ▼2.33 | 35.67 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 17.43 ▼5.68 | 640.30 ▼34.58 | 63.62 ▲1.05 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.29 ▲0.02 | 95.23 ▼10.89 | 48.90 ▼7.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- wmc_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-minicart/frontend/wmc-content.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: cart, woocommerce cart, woocommerce minicart, woocommerce, minicart...
woo-minicart/woo-minicart.php Passed 13 tests
The main PHP file in "Minicart for WooCommerce" ver. 2.0.5 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
The simple plugin to add Minicart on your WooCommerce website.
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
No dangerous file extensions were detected787 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 48 | 37 | 504 |
CSS | 2 | 17 | 0 | 262 |
JavaScript | 2 | 3 | 1 | 21 |
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.35 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/graphics/wmc-icon-4.png | 12.95KB | 5.47KB | ▼ 57.72% |
assets/graphics/wmc-icon-3.png | 14.22KB | 5.08KB | ▼ 64.30% |
assets/graphics/wmc-icon-1.png | 6.58KB | 3.49KB | ▼ 47.03% |
assets/graphics/wmc-icon-5.png | 3.69KB | 3.68KB | 0.34% |
assets/graphics/wmc-icon-2.png | 2.99KB | 2.42KB | ▼ 18.92% |