84% permalink-manager

Code Review | Permalink Manager Lite

WordPress plugin Permalink Manager Lite scored84%from 54 tests.

About plugin

  • Plugin page: permalink-manager
  • Plugin version: 2.4.1.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4.0
  • WordPress version: 6.3.1
  • First release: Jan 9, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 401
  • Update frequency: every 7.1 days
  • Top authors: mbis (100%)

Code review

54 tests

User reviews

152 reviews

Install metrics

70,000+ active /1,479,681 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.56MB] [CPU: ▲7.39ms] Passed 4 tests

A check of server-side resources used by Permalink Manager Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.02 ▲1.5647.45 ▲6.67
Dashboard /wp-admin4.88 ▲1.5464.30 ▲4.10
Posts /wp-admin/edit.php5.00 ▲1.6458.41 ▲11.37
Add New Post /wp-admin/post-new.php7.47 ▲1.5894.34 ▲7.40
Media Library /wp-admin/upload.php4.80 ▲1.5752.23 ▲16.57
Permalink Manager /wp-admin/tools.php?page=permalink-manager4.8146.31

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Permalink Manager Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7614.27 ▼0.081.68 ▲0.0342.21 ▼1.67
Dashboard /wp-admin2,224 ▲535.74 ▲0.1196.99 ▼6.6237.90 ▼4.55
Posts /wp-admin/edit.php2,150 ▲502.42 ▲0.4135.40 ▼2.5335.40 ▼1.13
Add New Post /wp-admin/post-new.php6,241 ▲4,71526.26 ▲3.01987.15 ▲281.0756.23 ▲5.03
Media Library /wp-admin/upload.php1,420 ▲204.33 ▲0.1195.97 ▼1.9541.44 ▲0.00
Permalink Manager /wp-admin/tools.php?page=permalink-manager1,1061.9331.1150.88

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/permalink-manager/includes/views/permalink-manager-uri-editor-post.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: permalinks, woocommerce permalinks, permalink, url editor, custom permalinks

permalink-manager/permalink-manager.php 92% from 13 tests

The main file in "Permalink Manager Lite" v. 2.4.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.4.0" instead of "3.0.0")

Code Analysis 97% from 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
No dangerous file extensions were detected6,651 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,5892,3586,005
JavaScript2126138473
CSS22344173

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 132)
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity92.60
▷ Minimum class complexity2.00
▷ Maximum class complexity300.00
Average method complexity8.01
▷ Minimum method complexity1.00
▷ Maximum method complexity132.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods261
▷ Static methods8833.72%
▷ Public methods26099.62%
▷ Protected methods00.00%
▷ Private methods10.38%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin