94% advanced-permalink

Code Review | Advanced Permalink

WordPress plugin Advanced Permalink scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-permalink
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.0
  • WordPress version: 5.9.2
  • First release: Jul 10, 2017
  • Latest release: Apr 5, 2021
  • Number of updates: 5
  • Update frequency: every 273.2 days
  • Top authors: mingocommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,229 total downloads


Plugin footprint Passed 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.01MB] [CPU: ▼284.17ms] Passed 4 tests

Analyzing server-side resources used by Advanced Permalink
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0162.27 ▲7.15
Dashboard /wp-admin3.43 ▲0.0335.69 ▼6.65
Posts /wp-admin/edit.php3.66 ▲0.0288.75 ▲44.39
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.80 ▼1,141.46
Media Library /wp-admin/upload.php3.31 ▲0.0230.96 ▲4.27
Advanced Permalinks /wp-admin/options-general.php?page=post-type-permalink3.2825.22

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Permalink
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲4615.29 ▲0.016.47 ▼0.492.32 ▼0.09
Dashboard /wp-admin2,894 ▲406.20 ▲0.08116.95 ▼14.12159.24 ▼0.15
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0062.96 ▼0.41141.73 ▼5.99
Add New Post /wp-admin/post-new.php1,763 ▲10217.62 ▲1.04412.35 ▼1.07171.22 ▲12.55
Media Library /wp-admin/upload.php1,700 ▼15.54 ▼0.01141.04 ▲2.50186.55 ▲4.42
Advanced Permalinks /wp-admin/options-general.php?page=post-type-permalink1,0022.4154.50170.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-permalink/advanced-permalink.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: permalink manage, url customize, url, permalink customize, advanced permalink...

advanced-permalink/advanced-permalink.php Passed 13 tests

This is the main PHP file of "Advanced Permalink" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Manage Permalinks off all posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File16628

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG files were detected