Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.70ms] Passed 4 tests
Server-side resources used by Product Redirection for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.04 ▲2.42 |
Dashboard /wp-admin | 3.31 ▲0.01 | 40.43 ▼4.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.24 ▼3.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.43 ▼9.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 45.56 ▲15.30 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
stock_notice_prfw |
can_compress_scripts |
theysaidso_admin_options |
trash_disable_prfw |
widget_recent-posts |
trash_warning_prfw |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Product Redirection for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲56 | 13.20 ▼1.60 | 1.65 ▼0.61 | 39.18 ▼8.93 |
Dashboard /wp-admin | 2,219 ▲28 | 5.83 ▼0.07 | 104.37 ▼10.32 | 39.07 ▼5.10 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.02 ▼0.04 | 39.06 ▼2.43 | 38.74 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.10 ▼0.36 | 577.85 ▼114.99 | 58.51 ▲1.15 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.28 ▲0.05 | 137.82 ▲36.70 | 53.36 ▲11.30 |
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
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- trash_disable_prfw
- can_compress_scripts
- trash_warning_prfw
- db_upgraded
- stock_notice_prfw
- widget_recent-posts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: woocommerce redirect, product redirection, seo, woocommerce, product...
product-redirection-for-woocommerce/product-redirection-for-woocommerce.php Passed 13 tests
The main PHP script in "Product Redirection for WooCommerce" version 1.1.9 is automatically included on every request by WordPress
106 characters long description:
Instead of deleting products which is bad for SEO, redirect them to their parent category or a custom url.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected674 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 75 | 41 | 341 |
JavaScript | 2 | 7 | 23 | 166 |
JSON | 1 | 0 | 0 | 153 |
CSS | 2 | 5 | 19 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 31 | 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