10% seraphinite-old-slugs-mgr

Code Review | Seraphinite Alternative Slugs Manager

WordPress plugin Seraphinite Alternative Slugs Manager scored 10% from 54 tests.

About plugin

  • Plugin page: seraphinite-old-s...
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 5.8.1
  • First release: Mar 7, 2019
  • Latest release: Nov 19, 2021
  • Number of updates: 25
  • Update frequency: every 39.5 days
  • Top authors: seraphinitesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 695 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+34
    Undefined index: v

Server metrics [RAM: ▼0.18MB] [CPU: ▼187.51ms] Passed 4 tests

Analyzing server-side resources used by Seraphinite Alternative Slugs Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲1.3241.38 ▲6.48
Dashboard /wp-admin3.46 ▲0.4113.66 ▼35.50
Posts /wp-admin/edit.php3.46 ▲0.3611.90 ▼36.57
Add New Post /wp-admin/post-new.php3.46 ▼1.9711.72 ▼655.43
Media Library /wp-admin/upload.php3.46 ▲0.4611.20 ▼22.54
Alternative Slugs /wp-admin/options-general.php?page=seraph_osm_settings3.4711.81

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 3 new options
New WordPress options
seraph_osm_RmtCfg
seraph_osm_Sett
seraph_osm_State

Browser metrics Passed 4 tests

This is an overview of browser requirements for Seraphinite Alternative Slugs Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.79 ▲0.2611.88 ▲0.5044.55 ▼2.74
Dashboard /wp-admin2,980 ▲465.91 ▼0.21147.54 ▼0.31116.41 ▼15.78
Posts /wp-admin/edit.php2,746 ▲72.71 ▼0.0165.19 ▼1.2492.98 ▲1.61
Add New Post /wp-admin/post-new.php1,628 ▼5518.19 ▲0.26396.13 ▲17.32131.33 ▲20.62
Media Library /wp-admin/upload.php1,814 ▲815.04 ▲0.02153.67 ▲2.34118.11 ▼8.49
Alternative Slugs /wp-admin/options-general.php?page=seraph_osm_settings1,8563.1083.90117.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: State
  • Zombie WordPress options detected upon uninstall: 3 options
    • seraph_osm_Sett
    • seraph_osm_RmtCfg
    • seraph_osm_State

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: State
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+369
    Undefined index: seraph_osm_settingsOp
  • 153 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+58
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1751
    Undefined index: seraph_osm_postOpsRes
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1267
    Undefined index: warnChangeVer
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1269
    Undefined index: changeVerCheck
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1270
    Undefined index: changePkCheck
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1523
    Undefined index: js
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1523
    Undefined index: Gen
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1523
    Undefined index: Ui
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1523
    Undefined index: Net
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+1523
    Undefined index: AdminUi
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: Sett
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: Settings-en_US
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: Settings-en
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+2045
    Undefined index: en_US
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+2045
    Undefined index: en
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+2045
    Undefined index:
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+22
    Undefined index: linkPreContent
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+58
    Undefined index: linkAfterContent
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductFeatures-en_US
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductFeatures-en
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Plugin.php+593
    Undefined index: eulaAcceptedVer
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlEula-en_US
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlEula-en
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductInfo-en_US
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductInfo-en
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlMorePlugins-en_US
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlMorePlugins-en
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+228
    Undefined index: class
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlRatingAboutUs-en_US
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlRatingAboutUs-en
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+228
    Undefined index: wrap
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+847
    Undefined index: header
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+868
    Undefined index: body
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: postTypes
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+150
    Undefined index: disabled
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+409
    Undefined index: masked
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductDocs-en_US
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductDocs-en
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductSupport-en_US
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlProductSupport-en
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+16
    Undefined index: showIfNoHref
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Ui.php+512
    Undefined index: afterContent
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlMain-en_US
    • > GET request to /wp-admin/options-general.php?page=seraph_osm_settings
    • > Notice in wp-content/plugins/seraphinite-old-slugs-mgr/Cmn/Gen.php+170
    Undefined index: UrlMain-en

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
Congratulations! This plugin passed the SRP 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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: manager, slug, editor, alternative slugs, old slug

seraphinite-old-slugs-mgr/plugin_root.php 92% from 13 tests

The main PHP script in "Seraphinite Alternative Slugs Manager" version 1.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("seraphinite-old-slugs-mgr.php" instead of "plugin_root.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,697 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP61,596205,596
JavaScript50098
JSON2002
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity67.44
▷ Minimum class complexity1.00
▷ Maximum class complexity228.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods387
▷ Static methods38098.19%
▷ Public methods34388.63%
▷ Protected methods00.00%
▷ Private methods4411.37%
Functions52
▷ Named functions1019.23%
▷ Anonymous functions4280.77%
Constants71
▷ Global constants00.00%
▷ Class constants71100.00%
▷ Public constants71100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Images/ProductLogo.png1.83KB1.42KB▼ 22.43%
Images/VendorLogo.png1.47KB1.45KB▼ 1.40%