Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼1.04ms] Passed 4 tests
An overview of server-side resources used by Menu Bar Cart Icon For WooCommerce By Binary Carpenter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 45.35 ▲4.00 |
Dashboard /wp-admin | 3.66 ▲0.32 | 47.46 ▼15.19 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 52.50 ▲9.65 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 94.20 ▲2.69 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 37.82 ▲4.33 |
BC Menu Cart Icon /wp-admin/admin.php?page=bc_menu_bar_cart | 3.89 | 51.79 |
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu | 3.50 | 33.26 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Menu Bar Cart Icon For WooCommerce By Binary Carpenter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,242 ▲496 | 14.73 ▲0.36 | 17.08 ▲15.26 | 36.96 ▼7.55 |
Dashboard /wp-admin | 2,253 ▲74 | 4.87 ▼0.08 | 111.56 ▲2.04 | 42.82 ▼1.32 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.03 ▼0.00 | 39.33 ▼5.73 | 37.25 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 23.11 ▲4.95 | 601.83 ▼13.19 | 56.00 ▲0.53 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.29 ▲0.08 | 101.66 ▼9.60 | 42.41 ▼1.58 |
BC Menu Cart Icon /wp-admin/admin.php?page=bc_menu_bar_cart | 4,044 | 4.06 | 77.67 | 87.97 |
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu | 792 | 2.03 | 25.01 | 21.09 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function BinaryCarpenter\\BC_MNC\\add_action() in wp-content/plugins/bc-menu-cart-woo/inc/Initiator.php:415
- > PHP Fatal error
Uncaught Error: Call to undefined function BinaryCarpenter\\BC_MNC\\add_action() in wp-content/plugins/bc-menu-cart-woo/inc/Initiator.php:415
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bc_menu_bar_cart
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=bc_menu_bar_cart 329 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% 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
6 plugin tags: menu, bar, basket, cart icon, woocommerce...
bc-menu-cart-woo/index.php 85% from 13 tests
"Menu Bar Cart Icon For WooCommerce By Binary Carpenter" version 1.49.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")
- Main file name: Name the main plugin file the same as the plugin slug ("bc-menu-cart-woo.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected23,957 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 7,550 | 813 | 19,430 |
PHP | 28 | 1,397 | 1,700 | 3,927 |
PO File | 2 | 208 | 208 | 507 |
SVG | 2 | 62 | 0 | 91 |
CSS | 2 | 0 | 4 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 69 | 37.30% |
▷ Public methods | 171 | 92.43% |
▷ Protected methods | 2 | 1.08% |
▷ Private methods | 12 | 6.49% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 93 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 93 | 100.00% |
▷ Public constants | 93 | 100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bundle/images/remove_icon_2.png | 3.03KB | 2.04KB | ▼ 32.61% |
bundle/images/remove_icon_1.png | 2.07KB | 2.14KB | 0.00% |
bundle/images/remove_icon_3.png | 0.70KB | 0.63KB | ▼ 9.86% |
bundle/images/remove_icon_5.png | 0.45KB | 0.17KB | ▼ 62.50% |
bundle/images/remove_icon_4.png | 1.34KB | 1.26KB | ▼ 6.05% |