84% linkify-authors

Code Review | Linkify Authors

WordPress plugin Linkify Authors scored84%from 54 tests.

About plugin

  • Plugin page: linkify-authors
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2009
  • Latest release: Aug 23, 2023
  • Number of updates: 27
  • Update frequency: every 192.6 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,761 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
Install script ran successfully

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

Server-side resources used by Linkify Authors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.77 ▼1.33
Dashboard /wp-admin3.36 ▲0.0152.42 ▼11.28
Posts /wp-admin/edit.php3.41 ▲0.0550.31 ▲0.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0598.71 ▲1.64
Media Library /wp-admin/upload.php3.28 ▲0.0537.67 ▲1.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_linkify_authors
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Linkify Authors
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6414.35 ▲0.002.62 ▲1.0541.07 ▼1.92
Dashboard /wp-admin2,198 ▲215.60 ▼0.0686.27 ▼13.6340.81 ▼1.46
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0333.95 ▼4.3238.36 ▲2.72
Add New Post /wp-admin/post-new.php1,526 ▼923.94 ▲5.83696.06 ▲9.2957.71 ▼17.37
Media Library /wp-admin/upload.php1,394 ▼34.21 ▲0.04103.33 ▼36.1743.32 ▼10.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_linkify_authors
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/linkify-authors/tests/phpunit/bootstrap.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: list, widget, template tag, coffee2code, authors...

linkify-authors/linkify-authors.php Passed 13 tests

The entry point to "Linkify Authors" version 2.3.1 is a PHP file that has certain tags in its header comment area
129 characters long description:
Turn a string, list, or array of author IDs and/or slugs into a list of links to those authors. Includes widget and template tag.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected738 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP592138437
Markdown4850261
Bourne Shell16221
XML10014
JSON1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.50
▷ Minimum class complexity5.00
▷ Maximum class complexity32.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2589.29%
▷ Protected methods310.71%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin