89% permalink-finder

Code Review | Link Fixer

WordPress plugin Link Fixer scored 89% from 54 tests.

About plugin

  • Plugin page: permalink-finder
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2009
  • Latest release: Oct 27, 2022
  • Number of updates: 67
  • Update frequency: every 71.3 days
  • Top authors: kpgraham (91.04%)willjenkins (10.45%)

Code review

54 tests

User reviews

41 reviews

Install metrics

4,000+ active / 147,194 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.56ms] Passed 4 tests

A check of server-side resources used by Link Fixer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.56 ▼8.22
Dashboard /wp-admin3.36 ▲0.0646.76 ▲1.97
Posts /wp-admin/edit.php3.41 ▲0.0648.85 ▲0.40
Add New Post /wp-admin/post-new.php5.94 ▲0.0693.82 ▼12.39
Media Library /wp-admin/upload.php3.28 ▲0.0633.66 ▲2.39
Link Fixer /wp-admin/options-general.php?page=Link_fixer3.4333.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Link Fixer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.17 ▼1.451.74 ▼0.0539.34 ▼1.68
Dashboard /wp-admin2,221 ▲335.85 ▼0.05105.41 ▲2.9439.37 ▼8.35
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0235.87 ▼1.8232.75 ▼6.64
Add New Post /wp-admin/post-new.php1,540 ▲1123.29 ▲4.99722.64 ▲73.9957.18 ▲6.75
Media Library /wp-admin/upload.php1,386 ▼24.24 ▲0.05100.75 ▲4.1541.88 ▼3.11
Link Fixer /wp-admin/options-general.php?page=Link_fixer1,2082.0626.5836.75

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Link Fixer" version 3.0
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)

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
Good job! No executable or dangerous file extensions detected1,743 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41462271,743

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions31
▷ Named functions31100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/apple-touch-icon.png5.76KB3.18KB▼ 44.80%