84% bulk-noindex-nofollow-toolkit-by-mad-fish

Code Review | Bulk NoIndex & NoFollow Toolkit

WordPress plugin Bulk NoIndex & NoFollow Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: bulk-noindex-nofo...
  • Plugin version: 1.60
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 23
  • Update frequency: every 55.7 days
  • Top authors: madfishdigital (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /8,104 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.28ms] Passed 4 tests

An overview of server-side resources used by Bulk NoIndex & NoFollow Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.24 ▼5.48
Dashboard /wp-admin3.38 ▲0.0845.85 ▼5.61
Posts /wp-admin/edit.php3.44 ▲0.0846.03 ▼1.89
Add New Post /wp-admin/post-new.php5.97 ▲0.0896.02 ▼4.13
Media Library /wp-admin/upload.php3.31 ▲0.0833.82 ▼0.32
Bulk NoIndex/NoFollow /wp-admin/tools.php?page=no-index-toolkit3.4036.57

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk NoIndex & NoFollow Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲713.95 ▼0.211.76 ▼0.2742.78 ▼2.09
Dashboard /wp-admin2,196 ▲165.57 ▼0.0986.30 ▼4.9241.08 ▼0.77
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0238.42 ▼0.7034.32 ▼1.20
Add New Post /wp-admin/post-new.php1,529 ▼023.12 ▲0.10638.60 ▼46.8948.72 ▼10.27
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0794.44 ▼15.6142.20 ▼4.33
Bulk NoIndex/NoFollow /wp-admin/tools.php?page=no-index-toolkit1,3062.0225.0728.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-noindex-nofollow-toolkit-by-mad-fish/inc/bulk-noindex-toolkit-class.php on line 173
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bulk-noindex-nofollow-toolkit-by-mad-fish/inc/bulk-noindex-toolkit-table.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-noindex-nofollow-toolkit-by-mad-fish/inc/bulk-noindex-toolkit-class.php on line 173
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-noindex-nofollow-toolkit-by-mad-fish/inc/bulk-noindex-toolkit-class.php on line 173

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

bulk-noindex-nofollow-toolkit-by-mad-fish/bulk-noindex-toolkit.php 92% from 13 tests

The main PHP file in "Bulk NoIndex & NoFollow Toolkit" ver. 1.60 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bulk-noindex-nofollow-toolkit-by-mad-fish.php" instead of "bulk-noindex-toolkit.php")

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
Everything looks great! No dangerous files found in this plugin889 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3381243738
JavaScript133979
CSS16072

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity64.00
▷ Minimum class complexity52.00
▷ Maximum class complexity76.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods4097.56%
▷ Protected methods00.00%
▷ Private methods12.44%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/madfishdigital-logo.png14.71KB8.26KB▼ 43.84%