Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wmcid_DeleteCartItems::wmcid_woocommerce_exists() should not be called statically
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.83ms] Passed 4 tests
Analyzing server-side resources used by WC Multiple Cart Items Delete
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.71 ▲1.47 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.11 ▼11.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.42 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.93 ▼8.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.59 ▲3.41 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WC Multiple Cart Items Delete
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.49 | 5.08 ▲3.52 | 44.55 ▲4.49 |
Dashboard /wp-admin | 2,200 ▲12 | 4.95 ▲0.11 | 98.56 ▼12.50 | 38.52 ▼4.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 34.23 ▼1.59 | 32.98 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 23.09 ▲5.59 | 601.73 ▼99.15 | 59.67 ▲1.88 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.08 | 95.90 ▼0.32 | 40.76 ▼5.99 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wc-multiple-cart-items-delete/wc-multiple-cart-items-delete.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-multiple-cart-items-delete/controller.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #1 (Note that the screenshot is existed in the "/images" directory of the plugin.(screenshot-1.png)) image required
wc-multiple-cart-items-delete/wc-multiple-cart-items-delete.php Passed 13 tests
The main PHP file in "WC Multiple Cart Items Delete" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Delete multiple cart items in bulk on cart page
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
Success! There were no dangerous files found in this plugin109 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 30 | 54 |
JavaScript | 1 | 11 | 0 | 49 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-1.png | 47.95KB | 12.93KB | ▼ 73.03% |