82% custom-hyperlinks

Code Review | Custom Hyperlinks

WordPress plugin Custom Hyperlinks scored 82% from 54 tests.

About plugin

  • Plugin page: custom-hyperlinks
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 5.8.1
  • First release: Nov 27, 2019
  • Latest release: Jan 24, 2021
  • Number of updates: 10
  • Update frequency: every 42.5 days
  • Top authors: techmuzz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 314 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.14MB] [CPU: ▼155.22ms] Passed 4 tests

Analyzing server-side resources used by Custom Hyperlinks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0225.96 ▼9.61
Dashboard /wp-admin3.13 ▲0.0746.34 ▼3.59
Posts /wp-admin/edit.php3.24 ▲0.1250.10 ▲3.31
Add New Post /wp-admin/post-new.php4.71 ▼0.7352.96 ▼611.00
Media Library /wp-admin/upload.php3.07 ▲0.0638.40 ▲4.41
Custom Hyperlinks /wp-admin/options-general.php?page=custom-hl3.0631.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Hyperlinks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲9815.85 ▲0.167.17 ▼2.9349.65 ▼2.45
Dashboard /wp-admin2,975 ▲445.94 ▲0.01149.19 ▼9.62114.10 ▼13.32
Posts /wp-admin/edit.php2,744 ▲52.68 ▲0.0067.24 ▲0.6990.85 ▼2.52
Add New Post /wp-admin/post-new.php1,686 ▲318.92 ▲0.13376.47 ▼15.57119.55 ▲7.78
Media Library /wp-admin/upload.php1,812 ▲55.01 ▲0.02165.07 ▲5.88129.00 ▼1.18
Custom Hyperlinks /wp-admin/options-general.php?page=custom-hl1,9942.4668.32114.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=custom-hl
    • > Notice in wp-content/plugins/custom-hyperlinks/admin/partials/custom-hl-admin-display.php+30
    Trying to access array offset on value of type bool

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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/custom-hyperlinks/admin/partials/custom-hl-admin-display.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=custom-hl
    • > Network (severe)
    wp-content/plugins/custom-hyperlinks/admin/images/form-v1-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% 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
2 plugin tags: anchor, aoda

custom-hyperlinks/custom-hl.php 85% from 13 tests

The entry point to "Custom Hyperlinks" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-hyperlinks.php" instead of "custom-hl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,990 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods413.79%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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 images were found in this plugin