Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▼4.07ms] Passed 4 tests
Server-side resources used by Simple 301 Redirects by BetterLinks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.77 ▲4.43 |
Dashboard /wp-admin | 3.72 ▲0.37 | 48.06 ▼13.20 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 50.14 ▲4.16 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 88.93 ▼10.90 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 40.62 ▲3.66 |
301 Redirects /wp-admin/options-general.php?page=301options | 3.55 | 35.81 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
simple301redirects_version |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple 301 Redirects by BetterLinks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.10 ▼1.27 | 1.95 ▲0.34 | 39.21 ▼2.16 |
Dashboard /wp-admin | 2,230 ▲39 | 5.83 ▲0.80 | 95.33 ▼5.81 | 40.91 ▲1.13 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.01 ▼0.00 | 35.74 ▲0.78 | 34.10 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,572 ▲58 | 23.25 ▲5.83 | 674.58 ▼0.95 | 53.09 ▼0.75 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.29 ▲0.11 | 112.05 ▼1.05 | 47.45 ▼3.12 |
301 Redirects /wp-admin/options-general.php?page=301options | 1,117 | 2.67 | 50.45 | 48.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- simple301redirects_version
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes 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
simple-301-redirects/wp-simple-301-redirects.php 92% from 13 tests
"Simple 301 Redirects by BetterLinks" version 2.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-301-redirects.php" instead of "wp-simple-301-redirects.php")
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
There were no executable files found in this plugin1,903 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 320 | 516 | 1,694 |
SVG | 8 | 0 | 7 | 202 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 110 | |
▷ Static methods | 23 | 20.91% |
▷ Public methods | 101 | 91.82% |
▷ Protected methods | 4 | 3.64% |
▷ Private methods | 5 | 4.55% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin