84% automatically-update-permalinks

Code Review | Automatically Update Permalinks

WordPress plugin Automatically Update Permalinks scored84%from 54 tests.

About plugin

  • Plugin page: automatically-upd...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2015
  • Latest release: Dec 17, 2022
  • Number of updates: 13
  • Update frequency: every 195.5 days
  • Top authors: hearken (53.85%)annaqq (38.46%)aspengrovestudios (23.08%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /9,534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.63ms] Passed 4 tests

Analyzing server-side resources used by Automatically Update Permalinks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.28 ▲0.45
Dashboard /wp-admin3.32 ▲0.0145.93 ▼0.97
Posts /wp-admin/edit.php3.37 ▲0.0145.35 ▼6.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.47 ▼3.37
Media Library /wp-admin/upload.php3.24 ▲0.0138.67 ▲4.76

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Automatically Update Permalinks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.251.83 ▼0.0237.35 ▼6.82
Dashboard /wp-admin2,203 ▲155.83 ▲0.7694.89 ▼3.7440.25 ▼4.36
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0139.72 ▼0.9236.61 ▼0.72
Add New Post /wp-admin/post-new.php1,521 ▼1223.23 ▲0.01640.77 ▼45.2651.76 ▼3.87
Media Library /wp-admin/upload.php1,391 ▲94.24 ▲0.0199.47 ▲1.2743.15 ▼0.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 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/automatically-update-permalinks/automatically-update-permalinks.php:41

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 97% 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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

automatically-update-permalinks/automatically-update-permalinks.php Passed 13 tests

This is the main PHP file of "Automatically Update Permalinks" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
87 characters long description:
Automatically updates the permalink (slug) of a post or page when its title is changed.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP193120

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.83
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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