68% linked-articles

Code Review | Linked Articles

WordPress plugin Linked Articles scored68%from 54 tests.

About plugin

  • Plugin page: linked-articles
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2012
  • Latest release: Mar 20, 2023
  • Number of updates: 15
  • Update frequency: every 251.3 days
  • Top authors: maximevalette (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,056 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼37.48ms] Passed 4 tests

Analyzing server-side resources used by Linked Articles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.90 ▼5.88
Dashboard /wp-admin3.02 ▼0.3321.06 ▼41.55
Posts /wp-admin/edit.php3.03 ▼0.3423.84 ▼24.26
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.04 ▼69.29
Media Library /wp-admin/upload.php3.02 ▼0.2120.96 ▼14.80
Linked Articles /wp-admin/options-general.php?page=linked_articles3.0322.53

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
linked_articles
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Linked Articles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.371.85 ▲0.0344.04 ▼3.03
Dashboard /wp-admin2,207 ▲225.84 ▲0.9898.91 ▼19.9138.77 ▼6.43
Posts /wp-admin/edit.php2,093 ▲41.99 ▲0.0040.54 ▲2.2334.52 ▼0.21
Add New Post /wp-admin/post-new.php1,545 ▲3118.17 ▲0.60624.74 ▼81.8965.27 ▲19.50
Media Library /wp-admin/upload.php1,386 ▲14.20 ▼0.0399.51 ▼15.4842.53 ▼7.09
Linked Articles /wp-admin/options-general.php?page=linked_articles9062.0224.1825.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • linked_articles
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=linked_articles
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=linked_articles
    • > Notice in wp-content/plugins/linked-articles/linked-articles.php+168
    Undefined index: rss_keep
    • > GET request to /wp-admin/options-general.php?page=linked_articles
    • > Notice in wp-content/plugins/linked-articles/linked-articles.php+169
    Undefined index: prefix_end

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/linked-articles/linked-articles.php:128

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: gruber, linked list, linked articles, linked posts, daring fireball...

linked-articles/linked-articles.php Passed 13 tests

The main PHP script in "Linked Articles" version 1.2 is automatically included on every request by WordPress
84 characters long description:
Easily attach a link to a post. The post permalink is replaced with the shared link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18323147

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected