88% auto-hyperlink-urls

Code Review | Auto-hyperlink URLs

WordPress plugin Auto-hyperlink URLs scored 88% from 54 tests.

About plugin

  • Plugin page: auto-hyperlink-urls
  • Plugin version: 5.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 5.9.2
  • First release: Dec 21, 2004
  • Latest release: Jan 16, 2020
  • Number of updates: 11
  • Update frequency: every 500.4 days
  • Top authors: coffee2code (100%)matt (18.18%)

Code review

54 tests

User reviews

10 reviews

Install metrics

9,000+ active / 64,645 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼294.65ms] Passed 4 tests

Analyzing server-side resources used by Auto-hyperlink URLs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.2854.36 ▲3.76
Dashboard /wp-admin3.63 ▲0.2335.46 ▲2.65
Posts /wp-admin/edit.php3.86 ▲0.2239.46 ▲2.21
Add New Post /wp-admin/post-new.php7.10 ▲0.1397.24 ▼1,177.60
Media Library /wp-admin/upload.php3.51 ▲0.2126.20 ▼5.86
Auto-hyperlink /wp-admin/options-general.php?page=auto-hyperlink-urls/autohyperlink-urls.php3.5124.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto-hyperlink URLs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1416.16 ▲0.506.77 ▲0.402.19 ▼0.93
Dashboard /wp-admin2,897 ▲396.09 ▼0.10117.57 ▼15.11156.44 ▼5.28
Posts /wp-admin/edit.php2,693 ▲23.23 ▲0.0162.95 ▼2.17136.39 ▼5.79
Add New Post /wp-admin/post-new.php1,669 ▼4221.12 ▲0.34429.44 ▼14.70161.68 ▲2.45
Media Library /wp-admin/upload.php1,700 ▲25.50 ▼0.04140.75 ▼1.87190.50 ▼5.08
Auto-hyperlink /wp-admin/options-general.php?page=auto-hyperlink-urls/autohyperlink-urls.php1,2622.3960.97171.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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
Good news, no errors were detected

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/auto-hyperlink-urls/tests/bootstrap.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/auto-hyperlink-urls/tests/bootstrap.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/auto-hyperlink-urls/tests/bootstrap.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: auto-link, links, link, hyperlink, url...

auto-hyperlink-urls/autohyperlink-urls.php 92% from 13 tests

The principal PHP file in "Auto-hyperlink URLs" v. 5.4.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-hyperlink-urls.php" instead of "autohyperlink-urls.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,477 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP64958382,153
Markdown2460289
Bourne Shell17921
XML10014

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.31
Average class complexity53.00
▷ Minimum class complexity13.00
▷ Maximum class complexity133.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes133.33%
Methods204
▷ Static methods104.90%
▷ Public methods18992.65%
▷ Protected methods157.35%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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%