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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.74ms] Passed 4 tests
An overview of server-side resources used by Redirect on Add To Cart For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.78 ▼6.10 |
Dashboard /wp-admin | 3.31 ▲0.00 | 41.15 ▼5.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.64 ▼8.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.07 ▲8.57 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.84 ▲1.01 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Redirect on Add To Cart For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.17 | 1.66 ▼0.07 | 37.80 ▼1.70 |
Dashboard /wp-admin | 2,209 ▲20 | 4.83 ▼0.09 | 102.78 ▼8.10 | 38.44 ▼4.29 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.02 | 39.22 ▼2.63 | 35.20 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,519 ▼23 | 23.11 ▲5.00 | 596.99 ▼42.36 | 57.03 ▼8.11 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.01 | 101.29 ▲2.09 | 44.20 ▼0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 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 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 smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
redirect-on-add-to-cart-for-woocommerce/ms-wc-cart-addons.php 69% from 13 tests
"Redirect on Add To Cart For WooCommerce" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("redirect-on-add-to-cart-for-woocommerce.php" instead of "ms-wc-cart-addons.php")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin541 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 113 | 180 | 533 |
JavaScript | 1 | 1 | 2 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 46 | |
▷ Static methods | 5 | 10.87% |
▷ Public methods | 44 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.35% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin