93% nofollow-external-link

Code Review | Nofollow External Link

WordPress plugin Nofollow External Link scored 93% from 54 tests.

About plugin

  • Plugin page: nofollow-external...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.8
  • WordPress version: 5.8.1
  • First release: Feb 19, 2014
  • Latest release: Feb 25, 2014
  • Number of updates: 10
  • Update frequency: every 0.9 days
  • Top authors: webdesigner.dinesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,056 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼173.80ms] Passed 4 tests

A check of server-side resources used by Nofollow External Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1227.16 ▲3.09
Dashboard /wp-admin3.06 ▲0.0045.90 ▼0.95
Posts /wp-admin/edit.php3.11 ▲0.0047.96 ▲9.33
Add New Post /wp-admin/post-new.php5.42 ▼0.0296.27 ▼695.84
Media Library /wp-admin/upload.php3.00 ▲0.0034.69 ▼1.49

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

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

Browser metrics Passed 4 tests

Nofollow External Link: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.95 ▲0.2510.81 ▲0.2048.73 ▼2.65
Dashboard /wp-admin2,989 ▲586.00 ▲0.01139.03 ▼19.15114.83 ▼7.65
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0165.10 ▲0.3499.46 ▲3.94
Add New Post /wp-admin/post-new.php1,683 ▲10218.73 ▲0.54401.83 ▼36.44109.00 ▼17.48
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.04154.09 ▼41.64129.18 ▼96.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% 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 | 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nofollow-external-link/nofollow-external-link.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (see how the `rel=nofollow` inserted to all the external links)
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

nofollow-external-link/nofollow-external-link.php 92% from 13 tests

"Nofollow External Link" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110933

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png2.87KB2.03KB▼ 29.07%