84% noindex-nofollow-all-posts-category

Code Review | NoIndex NoFollow All Posts

WordPress plugin NoIndex NoFollow All Posts scored84%from 54 tests.

About plugin

  • Plugin page: noindex-nofollow-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.7
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: Jan 6, 2017
  • Number of updates: 16
  • Update frequency: N/A
  • Top authors: amodoke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,703 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by NoIndex NoFollow All Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0725.89 ▼18.37
Dashboard /wp-admin3.31 ▼0.0344.67 ▼20.13
Posts /wp-admin/edit.php3.36 ▲0.0150.25 ▼3.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.75 ▼25.11
Media Library /wp-admin/upload.php3.24 ▲0.0134.99 ▼1.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for NoIndex NoFollow All Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1914.27 ▼0.131.81 ▼0.0242.76 ▲1.14
Dashboard /wp-admin2,198 ▲185.64 ▼0.0185.53 ▼8.0641.12 ▼2.49
Posts /wp-admin/edit.php2,100 ▲32.02 ▼0.0039.51 ▼0.9134.52 ▼2.14
Add New Post /wp-admin/post-new.php1,528 ▼923.25 ▲5.07648.90 ▲26.3355.53 ▼14.36
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.0295.57 ▼7.2541.84 ▼2.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_filter() in wp-content/plugins/noindex-nofollow-all-posts-category/noindex-nofollow-all-posts-category.php:11

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: noindex, post, posts, category, nofollow...

noindex-nofollow-all-posts-category/noindex-nofollow-all-posts-category.php 92% from 13 tests

The main PHP script in "NoIndex NoFollow All Posts" version 1.0.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 298 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112892

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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