Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.74ms] Passed 4 tests
A check of server-side resources used by Custom Redirection after Add to Cart for Woo Stores
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.38 ▼6.68 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.80 ▼2.38 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 51.35 ▲3.30 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 88.07 ▼0.33 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 34.66 ▼1.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom Redirection after Add to Cart for Woo Stores: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 14.03 ▼0.72 | 7.13 ▲5.15 | 40.06 ▼2.64 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▼0.03 | 106.54 ▼0.35 | 38.49 ▼5.49 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.06 | 39.22 ▼0.70 | 35.12 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 18.39 ▲0.31 | 604.34 ▼43.60 | 63.53 ▲14.33 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.16 ▼0.09 | 98.21 ▼4.97 | 42.88 ▲1.21 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/enweby-custom-redirection-after-add-to-cart/public/partials/enweby-custom-redirection-after-add-to-cart-public-display.php
- > /wp-content/plugins/enweby-custom-redirection-after-add-to-cart/admin/partials/enweby-custom-redirection-after-add-to-cart-admin-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/enweby-custom-redirection-after-add-to-cart/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/enweby-custom-redirection-after-add-to-cart/admin/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/enweby-custom-redirection-after-add-to-cart/public/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/enweby-custom-redirection-after-add-to-cart/includes/index.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: add to cart redirect, custom redirection to checkout, redirect to checkout, woocommece add to cart redirect
enweby-custom-redirection-after-add-to-cart/enweby-custom-redirection-after-add-to-cart.php 92% from 13 tests
"Custom Redirection after Add to Cart for Woo Stores" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 192 characters long)
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
There were no executable files found in this plugin295 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 138 | 609 | 289 |
JavaScript | 2 | 6 | 70 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
There were not PNG files found in your plugin