93% 1on1-url-redirects

Code Review | 1ON1 URL REDIRECTS

WordPress plugin 1ON1 URL REDIRECTS scored 93% from 54 tests.

About plugin

  • Plugin page: 1on1-url-redirects
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.9.2
  • First release: Mar 24, 2021
  • Latest release: Mar 25, 2021
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: marketing1on1com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 297 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.7055.16 ▲4.33
Dashboard /wp-admin4.09 ▲0.6836.96 ▲3.78
Posts /wp-admin/edit.php4.31 ▲0.6642.55 ▲6.64
Add New Post /wp-admin/post-new.php7.96 ▲0.9885.13 ▼1,205.82
Media Library /wp-admin/upload.php4.05 ▲0.7528.82 ▲4.04
Tag Redirection setting /wp-admin/admin.php?page=tag_redirection_setting3.9128.82
1ON1 URL Redirects /wp-admin/admin.php?page=redirect-updates3.9129.75
Redirect Options /wp-admin/admin.php?page=redirect-options3.9127.77
Meta Options /wp-admin/admin.php?page=meta_addon3.9128.02
Redirect Summary /wp-admin/admin.php?page=redirect-summary3.9128.03
Import/Export /wp-admin/admin.php?page=redirect-import-export3.9127.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲7316.21 ▲0.525.67 ▼0.432.04 ▼0.13
Dashboard /wp-admin2,946 ▲956.06 ▼0.15114.13 ▼23.77178.13 ▲18.08
Posts /wp-admin/edit.php2,731 ▲373.15 ▼0.1064.12 ▲1.59141.38 ▲3.49
Add New Post /wp-admin/post-new.php1,989 ▲27022.59 ▼0.13421.70 ▲13.26185.83 ▲25.89
Media Library /wp-admin/upload.php1,750 ▲525.69 ▲0.22128.06 ▼8.02216.62 ▲29.65
Tag Redirection setting /wp-admin/admin.php?page=tag_redirection_setting1,0472.3851.5688.46
1ON1 URL Redirects /wp-admin/admin.php?page=redirect-updates1,6482.5154.44156.03
Redirect Options /wp-admin/admin.php?page=redirect-options1,5272.3852.11186.89
Meta Options /wp-admin/admin.php?page=meta_addon1,2322.3855.70145.13
Redirect Summary /wp-admin/admin.php?page=redirect-summary1,1032.3853.16126.94
Import/Export /wp-admin/admin.php?page=redirect-import-export1,2732.3953.40133.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

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


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)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PO File24324561,526

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 code0.50
Average class complexity547.00
▷ Minimum class complexity547.00
▷ Maximum class complexity547.00
Average method complexity10.25
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods59100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
image/Logo-Picture-Large.png14.73KB0.67KB▼ 95.42%