78% nofollow-for-external-link-tap

Code Review | Nofollow for External Link TAP

WordPress plugin Nofollow for External Link TAP scored78%from 54 tests.

About plugin

  • Plugin page: nofollow-for-exte...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Feb 25, 2015
  • Number of updates: 4
  • Update frequency: every 43.7 days
  • Top authors: todoapuestas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.24ms] Passed 4 tests

This is a short check of server-side resources used by Nofollow for External Link TAP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.60 ▲0.89
Dashboard /wp-admin3.34 ▼0.0146.57 ▼15.89
Posts /wp-admin/edit.php3.39 ▲0.0345.23 ▼10.19
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.97 ▼23.76
Media Library /wp-admin/upload.php3.26 ▲0.0338.37 ▲2.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nofollow for External Link TAP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.151.89 ▲0.1041.32 ▲0.62
Dashboard /wp-admin2,198 ▲185.68 ▲0.0283.59 ▼13.5339.33 ▼3.68
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0035.87 ▼5.3037.48 ▼3.46
Add New Post /wp-admin/post-new.php1,526 ▼223.54 ▲0.15681.61 ▲23.3957.85 ▼1.80
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.07112.40 ▲6.2547.18 ▲1.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/nofollow-for-external-link-tap/public/views/public.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/nofollow-for-external-link-tap/admin/views/admin.php:18

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: target, nofollow, rel, external link

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

The principal PHP file in "Nofollow for External Link TAP" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nofollow-for-external-link-tap.php" instead of "nfel-tap.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
Success! There were no dangerous files found in this plugin225 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7115463215
JavaScript28210
CSS2020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.50
▷ Minimum class complexity6.00
▷ Maximum class complexity17.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods730.43%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 files were detected