10% customize-external-links-and-add-icon

Code Review | Customize External Links and add Icon

WordPress plugin Customize External Links and add Icon scored10%from 54 tests.

About plugin

  • Plugin page: customize-externa...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 6, 2019
  • Latest release: Aug 27, 2023
  • Number of updates: 14
  • Update frequency: every 99.4 days
  • Top authors: blapps (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /4,140 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/customize-external-links-and-add-icon/customizer-external-links-initiate.php+91
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.84MB] [CPU: ▼49.56ms] Passed 4 tests

Server-side resources used by Customize External Links and add Icon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.84 ▼31.98
Dashboard /wp-admin2.17 ▼1.136.21 ▼42.72
Posts /wp-admin/edit.php2.17 ▼1.196.72 ▼41.72
Add New Post /wp-admin/post-new.php2.17 ▼3.727.09 ▼81.83
Media Library /wp-admin/upload.php2.17 ▼1.067.20 ▼28.58
Customize External links /wp-admin/options-general.php?page=cuexlinks_option_page2.176.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Customize External Links and add Icon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.44 ▲0.061.59 ▲0.0338.62 ▼2.87
Dashboard /wp-admin2,216 ▲315.85 ▲0.99105.75 ▲5.6539.71 ▼3.54
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0234.13 ▼3.4134.42 ▲0.98
Add New Post /wp-admin/post-new.php1,523 ▲923.08 ▲5.35653.73 ▲0.1551.21 ▲0.95
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0399.96 ▲1.2442.67 ▲0.88
Customize External links /wp-admin/options-general.php?page=cuexlinks_option_page9102.2024.2174.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/customize-external-links-and-add-icon/customizer-external-links-initiate.php+91
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% 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
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cuexlinks_option_page
    • > Notice in wp-content/plugins/customize-external-links-and-add-icon/customize-external-links-form.php+10
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cuexlinks_options_page_fn() in wp-content/plugins/customize-external-links-and-add-icon/customize-external-links-form.php:117
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-external-links-and-add-icon/customizer-external-links-initiate.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-external-links-and-add-icon/customizer-external-links-initiate.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Requires at least: Invalid version format
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

customize-external-links-and-add-icon/customize-external-links.php 85% from 13 tests

"Customize External Links and add Icon" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("customize-external-links-and-add-icon.php" instead of "customize-external-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin581 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP315259516
PO File1181958
CSS1007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions40
▷ Named functions3997.50%
▷ Anonymous functions12.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin