Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.07ms] Passed 4 tests
Server-side resources used by WooCommerce Add to Cart Redirect - To Any Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.95 ▼1.46 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.09 ▼14.35 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 46.15 ▼10.03 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.26 ▼5.89 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.91 ▼2.02 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
wcr_version |
theysaidso_admin_options |
wcr_installed |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Add to Cart Redirect - To Any Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.02 | 2.11 ▲0.32 | 36.94 ▼6.81 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.05 | 90.02 ▲2.82 | 42.15 ▲0.26 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.00 | 39.39 ▼2.31 | 36.29 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.65 ▲0.79 | 631.08 ▼14.89 | 59.41 ▲6.05 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.19 ▼0.00 | 95.24 ▼8.80 | 43.01 ▼2.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- wcr_version
- theysaidso_admin_options
- db_upgraded
- wcr_installed
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: redirect, redirect to checkout, redirect to shop, redirect to page, add to cart redirect...
add-to-cart-redirect/add-to-cart-redirect.php Passed 13 tests
This is the main PHP file of "WooCommerce Add to Cart Redirect - To Any Page" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
After Add to Cart a Product it enables you to redirect to any specific page you want.
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
No dangerous file extensions were detected488 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 129 | 235 | 467 |
JSON | 2 | 0 | 0 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 40 | |
▷ Static methods | 8 | 20.00% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.50% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin