72% 1on1-url-redirects

Code Review | 1ON1 URL REDIRECTS

WordPress plugin 1ON1 URL REDIRECTS scored72%from 54 tests.

About plugin

  • Plugin page: 1on1-url-redirects
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2021
  • Latest release: May 26, 2023
  • Number of updates: 25
  • Update frequency: every 31.7 days
  • Top authors: marketing1on1com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.75ms] Passed 4 tests

Server-side resources used by 1ON1 URL REDIRECTS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1155.57 ▲13.97
Dashboard /wp-admin3.45 ▲0.1553.88 ▲2.22
Posts /wp-admin/edit.php3.49 ▲0.1352.42 ▲0.91
Add New Post /wp-admin/post-new.php6.15 ▲0.2785.79 ▼10.85
Media Library /wp-admin/upload.php3.38 ▲0.1539.07 ▲4.73
1ON1 URL Redirects /wp-admin/admin.php?page=redirect-updates3.3239.15
Redirect Summary /wp-admin/admin.php?page=redirect-summary3.3037.89
Import/Export /wp-admin/admin.php?page=redirect-import-export3.3037.03
Tag Redirection setting /wp-admin/admin.php?page=tag_redirection_setting3.3039.26
Meta Options /wp-admin/admin.php?page=meta_addon3.3038.13
Redirect Options /wp-admin/admin.php?page=redirect-options3.3037.15

Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

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 /2,836 ▲7514.25 ▼0.112.10 ▲0.3940.01 ▼7.45
Dashboard /wp-admin2,227 ▲505.51 ▼0.1688.74 ▼9.9280.87 ▲36.98
Posts /wp-admin/edit.php2,169 ▲691.97 ▼0.0339.08 ▲2.9432.84 ▼0.99
Add New Post /wp-admin/post-new.php6,416 ▲4,88825.74 ▲2.67924.64 ▲225.48174.24 ▲120.46
Media Library /wp-admin/upload.php1,438 ▲384.31 ▲0.09111.42 ▼2.8275.39 ▲28.71
1ON1 URL Redirects /wp-admin/admin.php?page=redirect-updates1,2392.2225.3736.92
Redirect Summary /wp-admin/admin.php?page=redirect-summary8772.1725.1730.33
Import/Export /wp-admin/admin.php?page=redirect-import-export9992.1823.4036.54
Tag Redirection setting /wp-admin/admin.php?page=tag_redirection_setting8272.0024.2524.67
Meta Options /wp-admin/admin.php?page=meta_addon9692.0022.8547.08
Redirect Options /wp-admin/admin.php?page=redirect-options1,1802.0025.1045.01

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=redirect-import-export
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/1on1-url-redirects/0.5/1ON1_URL_Redirects.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/1on1-url-redirects/1ON1_URL_Redirects.php:54

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=redirect-options
    • > Network (severe)
    wp-content/plugins/1ON1_URL_Redirects/image/Logo-Picture-Large.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

1on1-url-redirects/1ON1_URL_Redirects.php 85% from 13 tests

The main PHP file in "1ON1 URL REDIRECTS" ver. 0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("1on1-url-redirects.php" instead of "1ON1_URL_Redirects.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 197 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,704 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP22944784,612
PO File24324561,526
JavaScript7171401
CSS111149
SVG10016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity549.00
▷ Minimum class complexity549.00
▷ Maximum class complexity549.00
Average method complexity10.29
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods118
▷ Static methods00.00%
▷ Public methods118100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
0.5/image/Logo-Picture-Large.png14.73KB0.67KB▼ 95.42%
image/Logo-Picture-Large.png14.73KB0.67KB▼ 95.42%