79% linkify-text

Code Review | Linkify Text

WordPress plugin Linkify Text scored79%from 54 tests.

About plugin

  • Plugin page: linkify-text
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Dec 5, 2011
  • Latest release: Jul 20, 2018
  • Number of updates: 10
  • Update frequency: every 243.5 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /24,961 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.45ms] Passed 4 tests

Analyzing server-side resources used by Linkify Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.75 ▼1.75
Dashboard /wp-admin3.34 ▼0.0051.77 ▼14.05
Posts /wp-admin/edit.php3.45 ▲0.1054.21 ▲6.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.54 ▼12.60
Media Library /wp-admin/upload.php3.26 ▲0.0334.13 ▼1.40
Linkify Text /wp-admin/options-general.php?page=linkify-text/linkify-text.php3.2533.47

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Linkify Text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.40 ▼0.211.79 ▲0.0445.13 ▲0.80
Dashboard /wp-admin2,199 ▲325.62 ▼0.0596.31 ▼9.5041.85 ▲0.19
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0340.63 ▲3.2635.32 ▼0.36
Add New Post /wp-admin/post-new.php1,529 ▲122.96 ▼0.11593.70 ▼44.2053.17 ▲3.00
Media Library /wp-admin/upload.php1,407 ▲104.19 ▼0.0597.36 ▼11.0242.57 ▼5.09
Linkify Text /wp-admin/options-general.php?page=linkify-text/linkify-text.php9231.7830.9137.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/linkify-text/tests/bootstrap.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/linkify-text/tests/bootstrap.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/linkify-text/tests/bootstrap.php on line 17

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: shortcut, autolink, replace, post, post content...

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

The main file in "Linkify Text" v. 1.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Automatically add links to words or phrases in your posts.

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
Everything looks great! No dangerous files found in this plugin1,356 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP53225541,307
Bourne Shell17322
XML10014
Markdown114013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity59.00
▷ Minimum class complexity12.00
▷ Maximum class complexity131.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes150.00%
Methods128
▷ Static methods75.47%
▷ Public methods11287.50%
▷ Protected methods1612.50%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
c2c_minilogo.png3.49KB1.91KB▼ 45.43%