84% linkify-tags

Code Review | Linkify Tags

WordPress plugin Linkify Tags scored84%from 54 tests.

About plugin

  • Plugin page: linkify-tags
  • 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: 25
  • Update frequency: every 208.0 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /7,705 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.89ms] Passed 4 tests

Analyzing server-side resources used by Linkify Tags
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.99 ▲0.51
Dashboard /wp-admin3.32 ▼0.0352.64 ▼13.29
Posts /wp-admin/edit.php3.37 ▲0.0149.17 ▼4.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.82 ▼14.22
Media Library /wp-admin/upload.php3.24 ▲0.0141.21 ▲5.42

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_linkify_tags

Browser metrics Passed 4 tests

Linkify Tags: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.111.67 ▼0.0143.99 ▲1.00
Dashboard /wp-admin2,192 ▲155.62 ▼0.0384.68 ▼8.8836.28 ▼8.08
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0234.68 ▼1.8231.69 ▼7.80
Add New Post /wp-admin/post-new.php1,545 ▲923.15 ▼0.12616.57 ▼63.7755.25 ▼5.49
Media Library /wp-admin/upload.php1,394 ▼34.29 ▲0.0498.19 ▼5.3441.51 ▼6.01

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_linkify_tags
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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× PHP files output text when accessed directly:
    • > /wp-content/plugins/linkify-tags/tests/phpunit/bootstrap.php

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: linkify, list, archives, tags, widget...

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

"Linkify Tags" version 2.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
Turn a string, list, or array of tag IDs and/or slugs into a list of links to those tags. Provides a widget and template tag.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin714 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP583138421
Markdown4830253
Bourne Shell16221
XML10014
JSON1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected