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
Install script ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼3.91ms] Passed 4 tests
Server-side resources used by Mini Cart Drawer For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 38.78 ▼2.17 |
Dashboard /wp-admin | 3.61 ▲0.27 | 50.77 ▼12.25 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 48.09 ▲1.21 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 102.54 ▲9.93 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 33.23 ▼2.41 |
Server storage [IO: ▲6.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 233 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mini Cart Drawer For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲186 | 13.59 ▼0.98 | 11.00 ▲9.52 | 32.59 ▼7.17 |
Dashboard /wp-admin | 2,263 ▲85 | 5.64 ▲0.05 | 90.39 ▼12.41 | 59.35 ▲18.66 |
Posts /wp-admin/edit.php | 2,174 ▲74 | 2.17 ▲0.15 | 38.19 ▲0.26 | 43.54 ▲7.78 |
Add New Post /wp-admin/post-new.php | 1,594 ▲188 | 23.34 ▲5.49 | 589.37 ▼44.81 | 50.13 ▲4.08 |
Media Library /wp-admin/upload.php | 1,476 ▲76 | 4.26 ▲0.14 | 99.45 ▼10.78 | 56.96 ▲10.69 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woo-mini-cart-drawer/template/popup.php:18
- > PHP Fatal error
Uncaught Error: Class 'AppsBDLiteModule' not found in wp-content/plugins/woo-mini-cart-drawer/modules/APBDWCM_discountmanager.php:10
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/woo-mini-cart-drawer/woo-mini-cart-drawer.php on line 20
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woo-mini-cart-drawer/woo-mini-cart-drawer.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/woo-mini-cart-drawer/core/AppsBDModel.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/woo-mini-cart-drawer/core/AppsBDKarnelLite.php:7
- > PHP Fatal error
Uncaught Error: Class 'APBDWCM_aboutus' not found in wp-content/plugins/woo-mini-cart-drawer/views/apbdwcm_aboutus/main.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-mini-cart-drawer/woo-mini-cart-drawer.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/woo-mini-cart-drawer/libs/APBD_Content_Switch_Control.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woo-mini-cart-drawer/template/popup-msg.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #10, #2, #3, #4, #5, #5, #6, #7, #8, #9 in woo-mini-cart-drawer/assets to your readme.txt
woo-mini-cart-drawer/woo-mini-cart-drawer.php 92% from 13 tests
Analyzing the main PHP file in "Mini Cart Drawer For WooCommerce" version 3.3.1
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "3.3")
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
There were no executable files found in this plugin58,097 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 97 | 7,641 | 5,740 | 32,148 |
CSS | 40 | 1,094 | 206 | 13,982 |
PHP | 30 | 835 | 603 | 6,596 |
SVG | 8 | 0 | 0 | 2,924 |
JSON | 2 | 0 | 0 | 1,861 |
Sass | 3 | 7 | 0 | 584 |
LESS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 38.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 362.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 432 | |
▷ Static methods | 51 | 11.81% |
▷ Public methods | 400 | 92.59% |
▷ Protected methods | 22 | 5.09% |
▷ Private methods | 10 | 2.31% |
Functions | 69 | |
▷ Named functions | 67 | 97.10% |
▷ Anonymous functions | 2 | 2.90% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/recommended/multicurrency.png | 7.13KB | 3.07KB | ▼ 56.97% |
images/recommended/woolentor.png | 3.73KB | 3.92KB | 0.00% |
images/onlystyle.png | 57.11KB | 25.21KB | ▼ 55.86% |
images/menu_icon.png | 2.31KB | 1.71KB | ▼ 25.92% |
images/recommended/mini-cart.png | 38.83KB | 17.52KB | ▼ 54.87% |