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.00MB] [CPU: ▲0.10ms] 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.46 ▲0.00 | 41.61 ▲2.10 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.03 ▼0.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.32 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.72 ▲0.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.60 ▼2.00 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Menu Cart For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▼0.00 | 1.87 ▲0.00 | 45.18 ▲1.88 |
Dashboard /wp-admin | 2,189 ▲8 | 5.52 ▼0.18 | 81.43 ▼24.36 | 36.28 ▼6.46 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.02 | 33.85 ▼2.42 | 32.41 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 23.80 ▼1.23 | 619.59 ▼35.25 | 52.83 ▼19.20 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▼0.03 | 96.24 ▼6.95 | 42.57 ▼1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/menu-cart-for-woocommerce/admin/settings/pro-features.php
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'mcfw_general_settings' not found in wp-content/plugins/menu-cart-for-woocommerce/admin/option.php:15
- > PHP Warning
include(): Failed opening 'MCFW_PLUGIN_DIR_PATHadmin/settings/sticky-cart-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/menu-cart-for-woocommerce/admin/option.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/menu-cart-for-woocommerce/admin/settings/flyout-setting.php:3
- > PHP Warning
include(): Failed opening 'MCFW_PLUGIN_DIR_PATHadmin/settings/shortcode-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/menu-cart-for-woocommerce/admin/option.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/menu-cart-for-woocommerce/admin/settings/design-elements-setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-cart-for-woocommerce/front/index.php:2
- > PHP Warning
Use of undefined constant MCFW_PLUGIN_DIR_PATH - assumed 'MCFW_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/menu-cart-for-woocommerce/admin/option.php on line 4
- > PHP Warning
Use of undefined constant MCFW_PLUGIN_DIR_PATH - assumed 'MCFW_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/menu-cart-for-woocommerce/admin/option.php on line 2
- > PHP Warning
Use of undefined constant MCFW_PLUGIN_DIR_PATH - assumed 'MCFW_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/menu-cart-for-woocommerce/admin/option.php on line 6
- > PHP Warning
Use of undefined constant MCFW_PLUGIN_DIR_PATH - assumed 'MCFW_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/menu-cart-for-woocommerce/admin/option.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #8 is required in menu-cart-for-woocommerce/assets to your readme.txt
- Screenshots: These screenshots require images: #1 (General Settings), #2 (Flyout Settings), #3 (Sticky Cart Setting), #4 (Design Elements), #5 (Flyout Cart menu preview), #6 (Flyout Cart menu preview)
menu-cart-for-woocommerce/menu-cart-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Menu Cart For Woocommerce" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 244 characters long)
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 detected9,152 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,297 | 341 | 4,993 |
PHP | 12 | 299 | 21 | 1,893 |
CSS | 4 | 155 | 9 | 1,246 |
Sass | 2 | 143 | 0 | 983 |
SVG | 10 | 0 | 0 | 37 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
24 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu_icons/Cart8.png | 1.31KB | 0.67KB | ▼ 48.85% |
assets/images/menu_icons/cart1.png | 0.98KB | 0.67KB | ▼ 31.65% |
assets/images/web-browser.png | 0.53KB | 0.55KB | 0.00% |
assets/images/menu_icons/cart7.png | 0.83KB | 0.61KB | ▼ 27.08% |
assets/images/crown.png | 0.73KB | 0.69KB | ▼ 4.31% |