Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.06ms] Passed 4 tests
This is a short check of server-side resources used by WP 301 Redirects by WPBranch
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.62 ▼0.21 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.64 ▲1.53 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.67 ▼7.61 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.08 ▼8.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.03 ▼0.05 |
WP 301 Redirects /wp-admin/options-general.php?page=wp_redirect_options | 3.23 | 31.53 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
wp301redirects_version |
Browser metrics Passed 4 tests
An overview of browser requirements for WP 301 Redirects by WPBranch
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.31 | 1.76 ▲0.06 | 43.47 ▲0.53 |
Dashboard /wp-admin | 2,199 ▲22 | 5.51 ▼0.16 | 84.88 ▼6.38 | 37.61 ▼0.98 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.01 | 33.78 ▼1.17 | 36.48 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 22.98 ▼0.09 | 650.23 ▼32.58 | 51.76 ▼7.82 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▲0.00 | 93.66 ▼15.85 | 40.49 ▼7.20 |
WP 301 Redirects /wp-admin/options-general.php?page=wp_redirect_options | 917 | 2.59 | 43.29 | 37.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- wp301redirects_version
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
redirects-for-wp/301-redirects.php 85% from 13 tests
"WP 301 Redirects by WPBranch" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("redirects-for-wp.php" instead of "301-redirects.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,279 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 190 | 463 | 1,024 |
SVG | 8 | 0 | 7 | 202 |
JavaScript | 2 | 4 | 4 | 47 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 14.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 81 | |
▷ Static methods | 22 | 27.16% |
▷ Public methods | 78 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.70% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 6.90KB | 3.06KB | ▼ 55.66% |
.wordpress-org/icon-128x128.png | 6.90KB | 3.06KB | ▼ 55.66% |
.wordpress-org/banner-1544x500.png | 40.33KB | 18.49KB | ▼ 54.17% |
.wordpress-org/screenshot-1.png | 175.14KB | 46.82KB | ▼ 73.27% |
.wordpress-org/banner-772x250.png | 18.24KB | 8.63KB | ▼ 52.67% |