84% rel-nofollow

Code Review | Rel Nofollow

WordPress plugin Rel Nofollow scored84%from 54 tests.

About plugin

  • Plugin page: rel-nofollow
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2014
  • Latest release: Nov 12, 2022
  • Number of updates: 28
  • Update frequency: every 114.5 days
  • Top authors: Ste_95 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /18,654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Rel Nofollow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.42 ▼5.34
Dashboard /wp-admin3.33 ▲0.0247.10 ▼5.59
Posts /wp-admin/edit.php3.38 ▲0.0246.37 ▼2.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.50 ▼15.65
Media Library /wp-admin/upload.php3.25 ▲0.0234.92 ▼0.36

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Rel Nofollow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.22 ▼1.131.82 ▼0.3042.53 ▼6.75
Dashboard /wp-admin2,206 ▲155.90 ▲0.01100.58 ▼3.2037.43 ▼9.48
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0339.98 ▲2.0534.05 ▲1.43
Add New Post /wp-admin/post-new.php6,292 ▲4,93519.42 ▲2.94949.72 ▲359.5051.12 ▼14.77
Media Library /wp-admin/upload.php1,388 ▼04.33 ▲0.12100.84 ▼14.6843.93 ▼7.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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

SRP 50% 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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rel-nofollow/rel-nofollow.php:42

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: links, seo, rel

rel-nofollow/rel-nofollow.php Passed 13 tests

The entry point to "Rel Nofollow" version 1.4 is a PHP file that has certain tags in its header comment area
62 characters long description:
Adds rel="nofollow" to posts links unless specified otherwise.

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
Everything looks great! No dangerous files found in this plugin60 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1258360

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin