78% nofollow-internal-links

Code Review | Nofollow Internal Links

WordPress plugin Nofollow Internal Links scored78%from 54 tests.

About plugin

  • Plugin page: nofollow-internal...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2011
  • Latest release: Jun 19, 2017
  • Number of updates: 28
  • Update frequency: every 79.5 days
  • Top authors: Jeriff Cheng (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /12,326 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.37ms] Passed 4 tests

An overview of server-side resources used by Nofollow Internal Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0455.61 ▲12.03
Dashboard /wp-admin3.33 ▲0.0352.42 ▼6.31
Posts /wp-admin/edit.php3.38 ▲0.0353.37 ▲1.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.67 ▼21.27
Media Library /wp-admin/upload.php3.26 ▲0.0342.08 ▲4.95
Nofollow Internal Links /wp-admin/options-general.php?page=nil-plugin-options_options3.2237.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Nofollow Internal Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▲0.112.52 ▲0.7745.05 ▼2.02
Dashboard /wp-admin2,199 ▲225.56 ▼0.0083.74 ▼14.2738.37 ▼3.33
Posts /wp-admin/edit.php2,107 ▲41.95 ▼0.0634.31 ▼1.7732.71 ▼7.32
Add New Post /wp-admin/post-new.php1,529 ▲123.88 ▲0.70683.16 ▲60.4662.59 ▲9.59
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.07114.70 ▲11.4849.93 ▲4.28
Nofollow Internal Links /wp-admin/options-general.php?page=nil-plugin-options_options8742.0025.4732.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=nil-plugin-options_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=nil-plugin-options_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/nofollow-internal-links/options.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nofollow-internal-links/index.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: category, seo, archive, google, nofollow...

nofollow-internal-links/index.php 92% from 13 tests

Analyzing the main PHP file in "Nofollow Internal Links" version 1.2
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nofollow-internal-links.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin149 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22747149

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin