Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.70MB] [CPU: ▼298.42ms] Passed 4 tests
Analyzing server-side resources used by 1ON1 URL REDIRECTS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.70 | 55.16 ▲4.33 |
Dashboard /wp-admin | 4.09 ▲0.68 | 36.96 ▲3.78 |
Posts /wp-admin/edit.php | 4.31 ▲0.66 | 42.55 ▲6.64 |
Add New Post /wp-admin/post-new.php | 7.96 ▲0.98 | 85.13 ▼1,205.82 |
Media Library /wp-admin/upload.php | 4.05 ▲0.75 | 28.82 ▲4.04 |
Tag Redirection setting /wp-admin/admin.php?page=tag_redirection_setting | 3.91 | 28.82 |
1ON1 URL Redirects /wp-admin/admin.php?page=redirect-updates | 3.91 | 29.75 |
Redirect Options /wp-admin/admin.php?page=redirect-options | 3.91 | 27.77 |
Meta Options /wp-admin/admin.php?page=meta_addon | 3.91 | 28.02 |
Redirect Summary /wp-admin/admin.php?page=redirect-summary | 3.91 | 28.03 |
Import/Export /wp-admin/admin.php?page=redirect-import-export | 3.91 | 27.62 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for 1ON1 URL REDIRECTS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲73 | 16.21 ▲0.52 | 5.67 ▼0.43 | 2.04 ▼0.13 |
Dashboard /wp-admin | 2,946 ▲95 | 6.06 ▼0.15 | 114.13 ▼23.77 | 178.13 ▲18.08 |
Posts /wp-admin/edit.php | 2,731 ▲37 | 3.15 ▼0.10 | 64.12 ▲1.59 | 141.38 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,989 ▲270 | 22.59 ▼0.13 | 421.70 ▲13.26 | 185.83 ▲25.89 |
Media Library /wp-admin/upload.php | 1,750 ▲52 | 5.69 ▲0.22 | 128.06 ▼8.02 | 216.62 ▲29.65 |
Tag Redirection setting /wp-admin/admin.php?page=tag_redirection_setting | 1,047 | 2.38 | 51.56 | 88.46 |
1ON1 URL Redirects /wp-admin/admin.php?page=redirect-updates | 1,648 | 2.51 | 54.44 | 156.03 |
Redirect Options /wp-admin/admin.php?page=redirect-options | 1,527 | 2.38 | 52.11 | 186.89 |
Meta Options /wp-admin/admin.php?page=meta_addon | 1,232 | 2.38 | 55.70 | 145.13 |
Redirect Summary /wp-admin/admin.php?page=redirect-summary | 1,103 | 2.38 | 53.16 | 126.94 |
Import/Export /wp-admin/admin.php?page=redirect-import-export | 1,273 | 2.39 | 53.40 | 133.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/1on1-url-redirects/1ON1_URL_Redirects.php:55
- > PHP Fatal error
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 90% 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 your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
1on1-url-redirects/1ON1_URL_Redirects.php 85% from 13 tests
This is the main PHP file of "1ON1 URL REDIRECTS" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("1on1-url-redirects.php" instead of "1ON1_URL_Redirects.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,386 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 153 | 240 | 2,294 |
PO File | 2 | 432 | 456 | 1,526 |
JavaScript | 7 | 17 | 1 | 401 |
CSS | 1 | 1 | 1 | 149 |
SVG | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 547.00 |
▷ Minimum class complexity | 547.00 |
▷ Maximum class complexity | 547.00 |
Average method complexity | 10.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 59 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/Logo-Picture-Large.png | 14.73KB | 0.67KB | ▼ 95.42% |