79% nofollow-jquery-links

Code Review | NoFollow jQuery Links

WordPress plugin NoFollow jQuery Links scored79%from 54 tests.

About plugin

  • Plugin page: nofollow-jquery-l...
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2019
  • Latest release: Sep 10, 2023
  • Number of updates: 25
  • Update frequency: every 58.6 days
  • Top authors: ankurchauhan126 (56%)nexist (48%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /809 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.59MB] [CPU: ▲17.09ms] 75% from 4 tests

Server-side resources used by NoFollow jQuery Links
Please have a look at the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,622.26ms on /wp-admin/admin.php?page=nofollow-jquery-links)
PageMemory (MB)CPU Time (ms)
Home /8.46 ▲5.0089.44 ▲46.40
Dashboard /wp-admin8.48 ▲5.1473.24 ▲8.02
Posts /wp-admin/edit.php8.48 ▲5.1367.00 ▲17.95
Add New Post /wp-admin/post-new.php8.96 ▲3.08116.48 ▲15.15
Media Library /wp-admin/upload.php8.48 ▲5.2662.31 ▲27.25
NoFollow jQuery Links /wp-admin/admin.php?page=nofollow-jquery-links8.481,622.26
Freemius Debug [v.2.4.4] /wp-admin/admin.php?page=freemius8.4851.84

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 182 new files
Database: no new tables, 10 new options
New WordPress options
fs_debug_mode
fs_active_plugins
fs_accounts
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
fs_gdpr
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for NoFollow jQuery Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲18113.57 ▼0.815.69 ▲3.9233.72 ▼8.53
Dashboard /wp-admin2,224 ▲364.83 ▼1.0799.54 ▼12.7342.33 ▼2.38
Posts /wp-admin/edit.php2,110 ▲212.03 ▲0.0438.02 ▲2.1734.32 ▲1.08
Add New Post /wp-admin/post-new.php1,522 ▲323.21 ▼0.05635.13 ▼15.4457.89 ▼7.07
Media Library /wp-admin/upload.php1,409 ▲214.15 ▲0.0194.96 ▼3.1147.86 ▲2.38
NoFollow jQuery Links /wp-admin/admin.php?page=nofollow-jquery-links1,0942.0925.8852.62
Freemius Debug [v.2.4.4] /wp-admin/admin.php?page=freemius1,0351.7225.3124.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/nofollow-jquery-links/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • db_upgraded
    • fs_active_plugins
    • fs_debug_mode
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • fs_accounts
    • fs_gdpr

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: seo, link juice, jquery, internal linking, crawl

nofollow-jquery-links/nex-tm-jslink.php 85% from 13 tests

This is the main PHP file of "NoFollow jQuery Links" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nofollow-jquery-links.php" instead of "nex-tm-jslink.php")
  • Description: The description should be shorter than 140 characters (currently 208 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected44,047 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP1087,25816,11130,385
PO File106,0977,34013,123
JavaScript55174283
Markdown1680214
JSON10027
CSS110014
SVG1001

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity88.46
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes46
▷ Abstract classes24.35%
▷ Concrete classes4495.65%
▷ Final classes00.00%
Methods1,138
▷ Static methods17315.20%
▷ Public methods79870.12%
▷ Protected methods151.32%
▷ Private methods32528.56%
Functions94
▷ Named functions94100.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants9879.67%
▷ Class constants2520.33%
▷ Public constants25100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
jslink.png1.18KB1.12KB▼ 4.98%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
jslink_blank.png1.24KB1.15KB▼ 7.11%
jslink_remove.png1.27KB1.17KB▼ 8.13%