89% remove-old-slugspermalinks

Code Review | Slugs Manager: Delete Old Permalinks from WordPress Database

WordPress plugin Slugs Manager: Delete Old Permalinks from WordPress Database scored89%from 54 tests.

About plugin

  • Plugin page: remove-old-slugsp...
  • Plugin version: 2.6.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2013
  • Latest release: Nov 26, 2023
  • Number of updates: 37
  • Update frequency: every 104.4 days
  • Top authors: algoritmika (83.78%)wpcodefactory (18.92%)

Code review

54 tests

User reviews

12 reviews

Install metrics

4,000+ active /64,561 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.63ms] Passed 4 tests

An overview of server-side resources used by Slugs Manager: Delete Old Permalinks from WordPress Database
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.98 ▼10.82
Dashboard /wp-admin3.40 ▲0.1047.06 ▼3.22
Posts /wp-admin/edit.php3.52 ▲0.1649.83 ▲2.42
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.57 ▼6.88
Media Library /wp-admin/upload.php3.33 ▲0.1036.72 ▲3.60
Slugs Manager /wp-admin/tools.php?page=alg-slugs-manager3.3131.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Slugs Manager: Delete Old Permalinks from WordPress Database
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.21 ▼0.131.53 ▼0.3436.14 ▼7.74
Dashboard /wp-admin2,205 ▲285.75 ▲0.1792.73 ▼9.6343.00 ▼3.34
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0339.06 ▲2.0836.68 ▲2.22
Add New Post /wp-admin/post-new.php1,535 ▲823.29 ▲0.27628.31 ▼39.6351.52 ▼6.24
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.00104.08 ▲8.7940.65 ▼0.65
Slugs Manager /wp-admin/tools.php?page=alg-slugs-manager9441.9926.1743.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • alg_slugs_manager_plugin_version
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Tools > Slugs Manager > Old Slugs.) image not found
The official readme.txt might help

remove-old-slugspermalinks/remove-old-slugs.php 92% from 13 tests

The entry point to "Slugs Manager: Delete Old Permalinks from WordPress Database" version 2.6.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("remove-old-slugspermalinks.php" instead of "remove-old-slugs.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 plugin399 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of 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.30
Average class complexity12.33
▷ Minimum class complexity6.00
▷ Maximum class complexity23.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
▷ Static methods13.70%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin