90% change-permalink-helper

Code Review | Change Permalink Helper

WordPress plugin Change Permalink Helper scored90%from 54 tests.

About plugin

  • Plugin page: change-permalink-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.4
  • WordPress version: 6.3.1
  • First release: Jun 11, 2010
  • Latest release: Apr 24, 2020
  • Number of updates: 26
  • Update frequency: every 138.7 days
  • Top authors: Bueltge (80.77%)inpsyde (23.08%)

Code review

54 tests

User reviews

33 reviews

Install metrics

1,000+ active /28,958 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Change Permalink Helper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.61 ▲1.52
Dashboard /wp-admin3.31 ▲0.0146.73 ▼4.69
Posts /wp-admin/edit.php3.37 ▲0.0145.40 ▼5.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.46 ▼8.65
Media Library /wp-admin/upload.php3.24 ▲0.0136.22 ▲3.49

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Change Permalink Helper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.291.69 ▼0.4644.57 ▼4.28
Dashboard /wp-admin2,209 ▲215.91 ▲1.0397.48 ▼18.9640.31 ▼3.98
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0334.99 ▼2.4232.08 ▼1.71
Add New Post /wp-admin/post-new.php1,529 ▼418.34 ▼4.83607.42 ▼43.1055.20 ▲2.21
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0395.49 ▼6.9342.24 ▼5.49

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: redirect, 301, url, seo, permalink

change-permalink-helper/change_permalink_helper.php 92% from 13 tests

The principal PHP file in "Change Permalink Helper" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("change-permalink-helper.php" instead of "change_permalink_helper.php")

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
Good job! No executable or dangerous file extensions detected193 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File6912143
PHP1172750

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected