Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.47ms] Passed 4 tests
Server-side resources used by Menu Cart for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 34.77 ▼6.06 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.43 ▼11.23 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.89 ▼4.08 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.74 ▼16.49 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.56 ▲4.69 |
Menu Cart Setup /wp-admin/options-general.php?page=wpmenucart_options_page | 3.30 | 32.39 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 139 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
wpmenucart |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Menu Cart for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲37 | 14.13 ▼0.13 | 1.56 ▼0.28 | 40.65 ▼2.20 |
Dashboard /wp-admin | 2,207 ▲27 | 5.60 ▼0.25 | 90.44 ▲2.05 | 40.43 ▲2.10 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.97 ▲0.01 | 40.03 ▼2.25 | 37.06 ▼2.64 |
Add New Post /wp-admin/post-new.php | 6,377 ▲4,842 | 27.51 ▲2.10 | 929.86 ▲291.28 | 65.01 ▼9.26 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.16 ▼0.11 | 107.37 ▲3.19 | 47.41 ▲6.13 |
Menu Cart Setup /wp-admin/options-general.php?page=wpmenucart_options_page | 1,378 | 1.83 | 28.33 | 44.61 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- wpmenucart
- widget_theysaidso_widget
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 no errors were found, this is by no means an exhaustive test
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 shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: shopping cart, woocommerce, bar, basket, edd...
woocommerce-menu-bar-cart/wp-menu-cart.php 69% from 13 tests
The entry point to "Menu Cart for WooCommerce" version 2.14.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-menu-bar-cart.php" instead of "wp-menu-cart.php")
- Description: Keep the plugin description shorter than 140 characters (currently 264 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("3.4" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected8,620 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 1,449 | 1,621 | 3,949 |
SVG | 2 | 0 | 0 | 2,707 |
PHP | 7 | 261 | 306 | 1,436 |
JavaScript | 13 | 33 | 32 | 250 |
CSS | 17 | 21 | 8 | 243 |
Markdown | 1 | 13 | 0 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 31.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 3 | 4.05% |
▷ Public methods | 73 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.35% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cart-icon-7.png | 0.69KB | 0.55KB | ▼ 20.00% |
images/cart-icon-11.png | 0.58KB | 0.47KB | ▼ 20.07% |
images/cart-icon-8.png | 0.74KB | 0.59KB | ▼ 20.87% |
assets/images/cart-icon-5.png | 0.78KB | 0.59KB | ▼ 23.71% |
assets/images/cart-icon-12.png | 0.80KB | 0.61KB | ▼ 23.53% |