90% custom-permalink-editor

Code Review | Custom Permalink Editor

WordPress plugin Custom Permalink Editor scored90%from 54 tests.

About plugin

  • Plugin page: custom-permalink-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 4, 2021
  • Latest release: Nov 4, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: teamkcg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /3,172 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.18ms] Passed 4 tests

An overview of server-side resources used by Custom Permalink Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.67 ▲1.66
Dashboard /wp-admin3.35 ▲0.0443.81 ▼2.69
Posts /wp-admin/edit.php3.40 ▲0.0446.44 ▼2.37
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.74 ▼16.51
Media Library /wp-admin/upload.php3.27 ▲0.0434.08 ▲0.87

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Permalink Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.43 ▲0.041.81 ▼0.1041.66 ▼3.29
Dashboard /wp-admin2,216 ▲245.99 ▲1.07101.59 ▼19.0039.39 ▼7.66
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0333.60 ▼1.4933.74 ▼1.06
Add New Post /wp-admin/post-new.php6,234 ▲4,70119.17 ▼4.07850.35 ▲214.3350.04 ▼1.70
Media Library /wp-admin/upload.php1,404 ▲194.17 ▼0.0195.64 ▼31.0142.42 ▼9.61

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

custom-permalink-editor/custom-permalink-editor.php Passed 13 tests

This is the main PHP file of "Custom Permalink Editor" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
123 characters long description:
Set Permalinks on a per-post and per-page basis. This is very easy to use and this will not effect your rewrite url rules.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,774 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP63143521,564
SVG2001,127
CSS11082
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity55.00
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity5.41
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods50
▷ Static methods12.00%
▷ Public methods4080.00%
▷ Protected methods00.00%
▷ Private methods1020.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.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.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/permalink-manager.png53.97KB19.98KB▼ 62.98%