Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼14.58ms] Passed 4 tests
Analyzing server-side resources used by 301 Redirects & 404 Error Log
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▼0.45 | 19.39 ▼24.55 |
Dashboard /wp-admin | 3.51 ▲0.21 | 50.18 ▼0.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 34.04 ▼23.36 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.96 ▼9.62 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.39 ▲1.87 |
301 Redirects /wp-admin/options-general.php?page=301-redirects | 3.43 | 42.75 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ts_redirects |
New WordPress options |
---|
can_compress_scripts |
ts_301_redirection |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 301 Redirects & 404 Error Log
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.42 ▲0.07 | 1.64 ▼0.25 | 41.17 ▼3.41 |
Dashboard /wp-admin | 2,244 ▲76 | 5.51 ▼0.05 | 91.61 ▼5.02 | 44.79 ▲3.97 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.00 | 38.06 ▼4.35 | 34.33 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.27 ▼5.39 | 629.28 ▲6.11 | 67.35 ▲17.15 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.26 ▲0.03 | 97.09 ▼7.74 | 44.59 ▼4.38 |
301 Redirects /wp-admin/options-general.php?page=301-redirects | 1,422 | 2.43 | 53.98 | 128.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'tsdonatj\\UserAgent\\UserAgentInterface' not found in wp-content/plugins/301-redirects/lib/UserAgent/UserAgent.php:5
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 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
9 plugin tags: redirect url, 404 error, 404 redirect, 301 redirect, redirects...
301-redirects/301-redirects.php Passed 13 tests
The main PHP script in "301 Redirects & 404 Error Log" version 1.02 is automatically included on every request by WordPress
60 characters long description:
Easily create & manage redirections, and view 404 error log.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,827 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 254 | 125 | 1,258 |
CSS | 3 | 79 | 13 | 398 |
JavaScript | 3 | 37 | 13 | 171 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 19 | 45.24% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 73 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 73 | 100.00% |
▷ Public constants | 73 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/301-black-logo.png | 3.38KB | 2.66KB | ▼ 21.48% |
wf-flyout/icons/301-logo.png | 6.33KB | 3.09KB | ▼ 51.22% |
wf-flyout/icons/wp-ssl.png | 13.01KB | 6.69KB | ▼ 48.56% |
img/wp-301-logo-full.png | 1.57KB | 1.49KB | ▼ 4.68% |
wf-flyout/icons/ucp.png | 16.30KB | 2.35KB | ▼ 85.58% |