Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼139.58ms] Passed 4 tests
A check of server-side resources used by IW Woocomerce Cart Item Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 35.93 ▲13.86 |
Dashboard /wp-admin | 3.08 ▲0.03 | 50.98 ▲11.82 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 42.05 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 89.32 ▼569.25 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.55 ▲1.75 |
Server storage [IO: ▲0.04MB] [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: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for IW Woocomerce Cart Item Redirect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.33 ▲0.87 | 7.98 ▼2.08 | 49.01 ▲4.05 |
Dashboard /wp-admin | 2,970 ▲39 | 5.91 ▼0.04 | 130.28 ▼10.55 | 110.85 ▲1.31 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 64.73 ▲1.66 | 94.07 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.78 ▲0.00 | 358.55 ▼28.14 | 112.49 ▲1.87 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 4.99 ▼0.06 | 146.84 ▲2.44 | 118.88 ▼4.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/iw-woocomerce-cart-item-redirect/iw-index.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function IW\\WooCommerce\\add_filter() in wp-content/plugins/iw-woocomerce-cart-item-redirect/iw-autoload.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== iw-woocomerce-cart-item-redirect ===
)
iw-woocomerce-cart-item-redirect/iw-index.php 92% from 13 tests
The primary PHP file in "IW Woocomerce Cart Item Redirect" version 0.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("iw-woocomerce-cart-item-redirect.php" instead of "iw-index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected89 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 21 | 25 | 89 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 2 | 66.67% |
▷ Public methods | 3 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin