89% external-links-new-tab-nofollow

Code Review | External links new tab - nofollow

WordPress plugin External links new tab - nofollow scored 89% from 54 tests.

About plugin

  • Plugin page: external-links-ne...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Jul 3, 2022
  • Number of updates: 9
  • Update frequency: every 201.1 days
  • Top authors: eboxnet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 2,139 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.00MB] [CPU: ▼4.57ms] Passed 4 tests

An overview of server-side resources used by External links new tab - nofollow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.99 ▲6.53
Dashboard /wp-admin3.31 ▲0.0048.02 ▲3.73
Posts /wp-admin/edit.php3.36 ▲0.0044.17 ▼6.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.56 ▼16.42
Media Library /wp-admin/upload.php3.23 ▲0.0033.94 ▲0.48

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for External links new tab - nofollow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.14 ▼1.122.05 ▼0.0643.46 ▼3.43
Dashboard /wp-admin2,206 ▲184.88 ▼0.0298.80 ▼15.3241.37 ▲2.42
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0233.65 ▼6.8833.01 ▼1.89
Add New Post /wp-admin/post-new.php1,519 ▲523.31 ▲5.60591.49 ▼87.7960.19 ▲10.40
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0194.71 ▼4.7744.75 ▲2.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === external-links-new-tab-nofollow === )
You can take inspiration from this readme.txt

external-links-new-tab-nofollow/external.php 77% from 13 tests

The main PHP script in "External links new tab - nofollow" version 1.1.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("external-links-new-tab-nofollow.php" instead of "external.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP212125

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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