77% nofollow-for-external-link

Code Review | Nofollow for external link

WordPress plugin Nofollow for external link scored77%from 54 tests.

About plugin

  • Plugin page: nofollow-for-exte...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2012
  • Latest release: Oct 14, 2020
  • Number of updates: 44
  • Update frequency: every 66.6 days
  • Top authors: cybernetikz (100%)

Code review

54 tests

User reviews

36 reviews

Install metrics

10,000+ active /259,254 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.02ms] Passed 4 tests

A check of server-side resources used by Nofollow for external link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.35 ▲3.34
Dashboard /wp-admin3.32 ▲0.0146.46 ▼2.49
Posts /wp-admin/edit.php3.37 ▲0.0146.62 ▲1.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.24 ▼13.03
Media Library /wp-admin/upload.php3.24 ▲0.0133.91 ▲1.59
NoFollow ExtLink /wp-admin/options-general.php?page=cn_nf_option_page3.2330.26

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
cn_nf_exclude_domains
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
cn_nf_apply_to_menu

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nofollow for external link
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.80 ▲0.741.82 ▲0.0845.42 ▲3.51
Dashboard /wp-admin2,212 ▲234.83 ▼0.12109.90 ▲4.3346.43 ▲1.45
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0239.79 ▲3.5134.75 ▲2.24
Add New Post /wp-admin/post-new.php1,533 ▼023.28 ▲0.03657.61 ▼15.9853.22 ▲2.49
Media Library /wp-admin/upload.php1,394 ▲34.19 ▼0.0194.31 ▼12.2342.08 ▼1.26
NoFollow ExtLink /wp-admin/options-general.php?page=cn_nf_option_page8742.0124.3153.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • cn_nf_exclude_domains
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/nofollow-for-external-link/nofollow-external-link.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/nofollow-for-external-link/nofollow-option-page.php:6

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 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (See how the `rel=nofollow` inserted to all the external links.), #2 (Options page for Exclude Domains.)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

nofollow-for-external-link/nofollow-external-link.php 85% from 13 tests

The principal PHP file in "Nofollow for external link" v. 1.2.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("nofollow-for-external-link.php" instead of "nofollow-external-link.php")
  • Description: The description should be shorter than 140 characters (currently 374 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin213 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35825206
CSS1007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.16KB2.63KB▼ 48.91%
screenshot-2.png47.71KB21.55KB▼ 54.83%