84% title-and-nofollow-for-links

Code Review | Title and Nofollow For Links (Classic Editor)

WordPress plugin Title and Nofollow For Links (Classic Editor) scored84%from 54 tests.

About plugin

  • Plugin page: title-and-nofollo...
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Feb 3, 2023
  • Number of updates: 30
  • Update frequency: every 94.2 days
  • Top authors: Flector (60%)wpkube (40%)Otto42 (6.67%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active /178,881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Title and Nofollow For Links (Classic Editor)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.23 ▼4.59
Dashboard /wp-admin3.32 ▲0.0142.89 ▼3.96
Posts /wp-admin/edit.php3.37 ▲0.0147.21 ▼0.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.06 ▲5.21
Media Library /wp-admin/upload.php3.24 ▲0.0134.52 ▲0.75

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Title and Nofollow For Links (Classic Editor)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲14613.21 ▼1.061.80 ▼0.0638.56 ▼8.23
Dashboard /wp-admin2,256 ▲744.85 ▼1.00109.12 ▲2.2441.27 ▼1.24
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0338.35 ▼3.3134.87 ▼0.98
Add New Post /wp-admin/post-new.php1,563 ▲4223.23 ▲0.04630.56 ▼20.6250.39 ▼5.78
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0295.95 ▼0.8841.76 ▼2.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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 no errors were found, this is by no means 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
Almost there! Just 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_action() in wp-content/plugins/title-and-nofollow-for-links/title-and-nofollow-for-links.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

title-and-nofollow-for-links/title-and-nofollow-for-links.php Passed 13 tests

The main PHP script in "Title and Nofollow For Links (Classic Editor)" version 1.12 is automatically included on every request by WordPress
126 characters long description:
The plugin adds a title and a rel="nofollow" checkbox to the insert link popup box. Only for Classic Editor, NOT Block Editor.

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
Success! There were no dangerous files found in this plugin692 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript216366655
PHP17937

PHP code Passed 2 tests

Analyzing 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.08
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin