78% wp-links

Code Review | Easy External Links

WordPress plugin Easy External Links scored78%from 54 tests.

About plugin

  • Plugin page: wp-links
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Aug 4, 2012
  • Latest release: Feb 26, 2016
  • Number of updates: 103
  • Update frequency: every 12.6 days
  • Top authors: nasium (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

600+ active /26,401 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.15MB] [CPU: ▼11.12ms] Passed 4 tests

A check of server-side resources used by Easy External Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1640.56 ▲3.81
Dashboard /wp-admin3.47 ▲0.1246.22 ▼14.65
Posts /wp-admin/edit.php3.52 ▲0.1641.60 ▼9.92
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.43 ▼16.58
Media Library /wp-admin/upload.php3.39 ▲0.1634.69 ▼3.33
External Links /wp-admin/options-general.php?page=WPLINKS_menu3.3630.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 106 new files
Database: no new tables, 15 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
WPLINKS-external-image
theysaidso_admin_options
WPLINKS-open
WPLINKS-whitelist
db_upgraded
WPLINKS-title
WPLINKS-title-shortcode
WPLINKS-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy External Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.38 ▲0.102.10 ▲0.2945.02 ▲1.33
Dashboard /wp-admin2,202 ▲255.62 ▼0.0590.18 ▼1.9341.27 ▲4.24
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0035.93 ▼10.3432.56 ▼5.23
Add New Post /wp-admin/post-new.php1,543 ▲1518.35 ▼4.63616.11 ▼43.0763.00 ▲7.70
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.1194.82 ▼14.6943.03 ▼4.00
External Links /wp-admin/options-general.php?page=WPLINKS_menu1,6184.0878.32109.65

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
The following items require your attention
  • The uninstall procedure has failed, leaving 15 options in the database
    • can_compress_scripts
    • WPLINKS-image
    • WPLINKS-external-image
    • WPLINKS-whitelist
    • WPLINKS-title
    • theysaidso_admin_options
    • WPLINKS-open
    • WPLINKS-excerpt
    • WPLINKS-nofollow
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-links/wp-links.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=WPLINKS_menu
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=WPLINKS_menu:143:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=WPLINKS_menu
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Options Page)
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
The official readme.txt might help

wp-links/wp-links.php Passed 13 tests

The main PHP script in "Easy External Links" version 2.2.3 is automatically included on every request by WordPress
35 characters long description:
External link handler for Wordpress

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
Everything looks great! No dangerous files found in this plugin473 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27963473

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
102 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/external-link-aqua03.png0.21KB0.14KB▼ 32.55%
icons/external-link-lilac05.png0.18KB0.13KB▼ 26.52%
icons/external-link-beige-dark03.png0.21KB0.14KB▼ 32.23%
icons/external-link-red-dark02.png0.20KB0.14KB▼ 31.03%
icons/external-link-red-dark06.png0.17KB0.12KB▼ 31.79%