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
This plugin's installer ran successfully
Server metrics [RAM: ▲1.19MB] [CPU: ▼132.74ms] Passed 4 tests
This is a short check of server-side resources used by Ecommerce Menu - WooCommerce Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲1.26 | 49.09 ▲28.18 |
Dashboard /wp-admin | 4.28 ▲1.22 | 56.64 ▲12.18 |
Posts /wp-admin/edit.php | 4.33 ▲1.22 | 52.42 ▲9.17 |
Add New Post /wp-admin/post-new.php | 6.58 ▲1.15 | 101.38 ▼556.92 |
Media Library /wp-admin/upload.php | 4.16 ▲1.15 | 45.29 ▲4.63 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 4.19 | 43.14 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 160 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woocommerce-menu |
Browser metrics Passed 4 tests
An overview of browser requirements for Ecommerce Menu - WooCommerce Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,904 ▲308 | 16.43 ▲0.90 | 15.23 ▲4.81 | 49.22 ▲1.12 |
Dashboard /wp-admin | 3,054 ▲120 | 5.93 ▼0.13 | 138.34 ▼10.73 | 120.01 ▲12.49 |
Posts /wp-admin/edit.php | 2,820 ▲81 | 2.71 ▼0.00 | 61.15 ▼2.75 | 89.49 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,741 ▲241 | 18.27 ▼0.26 | 345.95 ▼27.39 | 113.50 ▼3.07 |
Media Library /wp-admin/upload.php | 1,888 ▲81 | 5.03 ▲0.01 | 141.66 ▼22.75 | 122.49 ▲3.21 |
WooCommerce Settings /wp-admin/admin.php?page=ecommerce-menu#tab=woocommerce-settings | 1,921 | 4.34 | 80.39 | 103.13 |
Other Content /wp-admin/admin.php?page=ecommerce-menu#tab=other-content | 1,946 | 4.56 | 94.23 | 107.26 |
Design/Appearance /wp-admin/admin.php?page=ecommerce-menu#tab=design-appearance | 2,360 | 4.75 | 104.45 | 125.17 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 2,040 | 4.15 | 80.28 | 131.17 |
General /wp-admin/admin.php?page=ecommerce-menu#tab=general | 1,928 | 4.14 | 78.29 | 107.49 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- woocommerce-menu
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ecommerce-menu/admin/partials/woocommerce-menu-admin-display.php
- > /wp-content/plugins/ecommerce-menu/public/partials/woocommerce-menu-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: menu, ecommerce, woocommerce
ecommerce-menu/ecommerce-menu.php Passed 13 tests
"Ecommerce Menu - WooCommerce Widget" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
This plugin provides a WooCommerce Menu accessed by a Badge on the Bottom right.
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
No dangerous file extensions were detected21,420 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 2,299 | 1,568 | 9,454 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
JSON | 2 | 0 | 0 | 4,782 |
Sass | 9 | 54 | 4 | 481 |
Markdown | 2 | 85 | 0 | 379 |
JavaScript | 7 | 34 | 56 | 114 |
SVG | 4 | 0 | 0 | 26 |
CSS | 5 | 0 | 9 | 4 |
PHP code Passed 2 tests
Analyzing 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.60 |
Average class complexity | 19.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 5.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 32 | 14.35% |
▷ Public methods | 217 | 97.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 2.69% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/vendor/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |