Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.72ms] Passed 4 tests
An overview of server-side resources used by Advanced 301 and 302 Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.02 | 43.15 ▼6.22 |
Dashboard /wp-admin | 3.60 ▲0.03 | 49.57 ▼5.21 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 54.00 ▲2.42 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.03 | 99.29 ▲6.14 |
Media Library /wp-admin/upload.php | 3.52 ▲0.03 | 44.53 ▲7.70 |
301/302 Redirection /wp-admin/options-general.php?page=yydev-redirection | 3.52 | 35.76 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_yydev_redirect |
wp_yydev_redirects |
New WordPress options |
---|
yydev_redirect_timestamp |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
yydev_advanced_301_redirect_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced 301 and 302 Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.39 ▲0.08 | 1.72 ▼0.06 | 40.38 ▼3.98 |
Dashboard /wp-admin | 2,196 ▲19 | 5.61 ▼0.09 | 92.31 ▲0.01 | 44.03 ▼0.55 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 41.39 ▲4.59 | 36.46 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.24 ▲5.55 | 596.28 ▼114.39 | 50.05 ▼7.54 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.25 ▲0.11 | 104.71 ▼7.99 | 45.87 ▲1.79 |
301/302 Redirection /wp-admin/options-general.php?page=yydev-redirection | 859 | 2.06 | 24.24 | 35.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_yydev_redirect
- wp_yydev_redirects
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- yydev_redirect_timestamp
- widget_recent-comments
- yydev_advanced_301_redirect_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires at least: The plugin version is formatted incorrectly
advanced-301-and-302-redirect/index.php 92% from 13 tests
The main PHP script in "Advanced 301 and 302 Redirect" version 1.6.6 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-301-and-302-redirect.php" instead of "index.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,138 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 534 | 264 | 1,138 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 5.25KB | 5.45KB | 0.00% |
images/delete.png | 0.62KB | 0.64KB | 0.00% |