84% linkify-posts

Code Review | Linkify Posts

WordPress plugin Linkify Posts scored84%from 54 tests.

About plugin

  • Plugin page: linkify-posts
  • Plugin version: 2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 28, 2010
  • Latest release: Aug 23, 2023
  • Number of updates: 22
  • Update frequency: every 236.4 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.31ms] Passed 4 tests

Analyzing server-side resources used by Linkify Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0638.88 ▲0.50
Dashboard /wp-admin3.36 ▲0.0547.08 ▲0.27
Posts /wp-admin/edit.php3.41 ▲0.0549.60 ▼1.83
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.88 ▼12.16
Media Library /wp-admin/upload.php3.28 ▲0.0533.00 ▲2.20

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_linkify_posts
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Linkify Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.081.75 ▼0.0643.73 ▲1.33
Dashboard /wp-admin2,209 ▲214.90 ▲0.01101.12 ▼8.2140.79 ▲0.13
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0435.76 ▼6.8530.35 ▼6.80
Add New Post /wp-admin/post-new.php1,537 ▲421.11 ▼2.12686.47 ▲3.3746.75 ▼5.45
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.0295.81 ▼2.6441.24 ▼0.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_linkify_posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/linkify-posts/tests/phpunit/bootstrap.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: posts, archives, post, link, coffee2code...

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

Analyzing the main PHP file in "Linkify Posts" version 2.4.1
125 characters long description:
Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. Includes widget and template tag.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected718 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP584138419
Markdown4870259
Bourne Shell16221
XML10014
JSON1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.50
▷ Minimum class complexity5.00
▷ Maximum class complexity32.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2388.46%
▷ Protected methods311.54%
▷ 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