84% rel-nofollow-checkbox

Code Review | Rel Nofollow Checkbox

WordPress plugin Rel Nofollow Checkbox scored84%from 54 tests.

About plugin

  • Plugin page: rel-nofollow-chec...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.4
  • WordPress version: 6.3.1
  • First release: Mar 23, 2014
  • Latest release: Apr 26, 2017
  • Number of updates: 19
  • Update frequency: every 59.5 days
  • Top authors: ffsantos92 (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

9,000+ active /74,270 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Rel Nofollow Checkbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.39 ▲0.19
Dashboard /wp-admin3.31 ▲0.0149.24 ▼6.95
Posts /wp-admin/edit.php3.36 ▲0.0151.79 ▲0.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.21 ▼33.56
Media Library /wp-admin/upload.php3.23 ▲0.0036.52 ▲2.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Rel Nofollow Checkbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.80 ▼0.721.92 ▲0.0844.52 ▲0.89
Dashboard /wp-admin2,231 ▲435.16 ▼0.69120.27 ▲8.8841.45 ▼1.20
Posts /wp-admin/edit.php2,086 ▼62.01 ▼0.0041.81 ▲4.2435.33 ▲3.25
Add New Post /wp-admin/post-new.php1,548 ▲1523.30 ▲0.00635.45 ▼27.7833.59 ▼16.53
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.12108.14 ▼0.5844.21 ▼7.37

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rel-nofollow-checkbox/rel-nofollow-checkbox.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Add rel=nofollow to link.), #2 (Check HTML code.)
You can take inspiration from this readme.txt

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

This is the main PHP file of "Rel Nofollow Checkbox" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
This plugin adds a simple checkbox in the insert/edit link popup for including nofollow attribute.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected606 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript214652598
PHP12108

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png6.26KB4.81KB▼ 23.28%
screenshot-1.png11.34KB7.26KB▼ 35.96%