83% robots-noindexfollow-meta-tag

Code Review | Robots "noindex,follow" meta tag

WordPress plugin Robots "noindex,follow" meta tag scored83%from 54 tests.

About plugin

  • Plugin page: robots-noindexfol...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.83-4.95
  • WordPress version: 6.3.1
  • First release: Apr 30, 2018
  • Latest release: May 3, 2018
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: rodhomor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /970 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.01MB] [CPU: ▼1.69ms] Passed 4 tests

Server-side resources used by Robots "noindex,follow" meta tag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.48 ▼3.00
Dashboard /wp-admin3.31 ▲0.0147.65 ▲3.57
Posts /wp-admin/edit.php3.36 ▲0.0145.40 ▼2.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.65 ▼4.20
Media Library /wp-admin/upload.php3.23 ▲0.0135.87 ▲3.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Robots "noindex,follow" meta tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼0.961.74 ▼0.0845.24 ▼1.20
Dashboard /wp-admin2,209 ▲216.06 ▲0.98106.87 ▲0.4141.41 ▲2.36
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0039.81 ▲5.1833.58 ▼0.20
Add New Post /wp-admin/post-new.php1,533 ▲623.45 ▲0.31680.28 ▲82.3960.20 ▲9.58
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0392.90 ▼2.1842.00 ▼4.24

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 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/robots-noindexfollow-meta-tag/noindex-follow.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === robots-noindexfollow-meta-tag === )
  • Stable tag: Empty string
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

robots-noindexfollow-meta-tag/noindex-follow.php 85% from 13 tests

The primary PHP file in "Robots "noindex,follow" meta tag" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("robots-noindexfollow-meta-tag.php" instead of "noindex-follow.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152333

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin