Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼308.38ms] Passed 4 tests
A check of server-side resources used by Advanced 301 and 302 Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 70.00 ▲2.19 |
Dashboard /wp-admin | 3.43 ▲0.02 | 41.02 ▼2.10 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 45.56 ▼2.14 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 106.31 ▼1,224.48 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 35.75 ▼4.81 |
301/302 Redirection /wp-admin/options-general.php?page=yydev-redirection | 3.34 | 29.55 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 2 new options
New tables |
---|
wp_yydev_redirect |
wp_yydev_redirects |
New WordPress options |
---|
yydev_redirect_timestamp |
yydev_advanced_301_redirect_version |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced 301 and 302 Redirect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲90 | 16.11 ▲0.62 | 7.54 ▼3.64 | 2.79 ▼0.51 |
Dashboard /wp-admin | 2,959 ▲40 | 6.41 ▲0.03 | 185.22 ▼26.00 | 195.58 ▼34.63 |
Posts /wp-admin/edit.php | 2,724 ▲3 | 3.45 ▲0.03 | 98.67 ▲10.94 | 171.85 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,665 ▲4 | 17.88 ▲1.86 | 622.13 ▼55.45 | 195.72 ▼0.42 |
Media Library /wp-admin/upload.php | 1,732 ▲2 | 5.72 ▲0.01 | 186.51 ▼3.03 | 256.84 ▲11.00 |
301/302 Redirection /wp-admin/options-general.php?page=yydev-redirection | 1,148 | 2.63 | 77.29 | 164.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_yydev_redirects
- wp_yydev_redirect
- The uninstall procedure has failed, leaving 2 options in the database
- yydev_redirect_timestamp
- yydev_advanced_301_redirect_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
advanced-301-and-302-redirect/index.php 92% from 13 tests
"Advanced 301 and 302 Redirect" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,135 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 531 | 269 | 1,135 |
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.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 | 18 | |
▷ Named functions | 18 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 0.62KB | 0.64KB | 0.00% |
images/icon.png | 5.25KB | 5.45KB | 0.00% |