Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼9.70ms] Passed 4 tests
An overview of server-side resources used by WP 404 Auto Redirect to Similar Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 38.90 ▼8.22 |
Dashboard /wp-admin | 3.57 ▲0.23 | 45.54 ▼17.21 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 51.01 ▲4.03 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 92.50 ▼17.38 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 44.70 ▲11.40 |
WP 404 Auto Redirect /wp-admin/options-general.php?page=wp-404-auto-redirect | 3.47 | 33.51 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP 404 Auto Redirect to Similar Post
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.16 ▼1.13 | 2.02 ▲0.07 | 41.69 ▼1.70 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.99 | 108.83 ▼3.02 | 42.94 ▲2.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.00 | 40.94 ▲2.57 | 36.08 ▲5.17 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.21 ▼0.07 | 666.01 ▲0.04 | 57.59 ▲0.04 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.40 ▲0.20 | 96.65 ▼3.63 | 44.40 ▲0.20 |
WP 404 Auto Redirect /wp-admin/options-general.php?page=wp-404-auto-redirect | 1,601 | 1.92 | 29.14 | 33.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: similar, seo, 404, redirect, webmaster tools...
wp-404-auto-redirect-to-similar-post/wp-404-auto-redirect-similar-post.php 85% from 13 tests
This is the main PHP file of "WP 404 Auto Redirect to Similar Post" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-404-auto-redirect-to-similar-post.php" instead of "wp-404-auto-redirect-similar-post.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,653 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 676 | 235 | 1,508 |
CSS | 1 | 15 | 0 | 77 |
JavaScript | 1 | 17 | 0 | 68 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 4.30KB | 1.62KB | ▼ 62.36% |