83% nutsforpress-indexing-and-seo

Code Review | NutsForPress Indexing and SEO

WordPress plugin NutsForPress Indexing and SEO scored83%from 54 tests.

About plugin

  • Plugin page: nutsforpress-inde...
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Jan 16, 2021
  • Latest release: Oct 29, 2023
  • Number of updates: 30
  • Update frequency: every 33.9 days
  • Top authors: Christian Gatti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,840 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▲1.16ms] Passed 4 tests

This is a short check of server-side resources used by NutsForPress Indexing and SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2946.02 ▲1.55
Dashboard /wp-admin3.67 ▲0.3751.25 ▲4.74
Posts /wp-admin/edit.php3.72 ▲0.3757.72 ▲8.28
Add New Post /wp-admin/post-new.php6.19 ▲0.3084.55 ▼8.61
Media Library /wp-admin/upload.php3.51 ▲0.2841.51 ▲6.94
NutsForPress /wp-admin/admin.php?page=nfproot-settings3.5038.89
Indexing and SEO /wp-admin/admin.php?page=nfpndx-settings3.6340.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by NutsForPress Indexing and SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲21114.83 ▲0.481.68 ▼0.0742.77 ▼2.58
Dashboard /wp-admin2,381 ▲2106.23 ▲0.63109.72 ▲11.5638.72 ▼0.33
Posts /wp-admin/edit.php2,309 ▲2063.43 ▲1.4253.57 ▲9.9435.26 ▲0.03
Add New Post /wp-admin/post-new.php1,571 ▲4523.11 ▼0.62608.86 ▼44.6434.08 ▼14.95
Media Library /wp-admin/upload.php1,449 ▲464.25 ▲0.0582.07 ▼16.7639.79 ▼3.22
NutsForPress /wp-admin/admin.php?page=nfproot-settings1,0233.1446.7527.10
Indexing and SEO /wp-admin/admin.php?page=nfpndx-settings1,5643.3537.4627.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 | 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 items
  • 30× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/admin/includes/nfpndx-set-attachment-meta.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/admin/includes/nfpndx-add-summary-to-post-list-columns.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/includes/nfpndx-plugin-activate.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/public/includes/nfpndx-add-head-scripts.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/public/includes/nfpndx-add-no-index-metatag.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/public/includes/nfpndx-add-body-scripts.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/nuts-for-press-indexing-and-seo.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/root/nfproot-saved-settings.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/admin/includes/nfpndx-add-no-index-metabox.php
    • > /wp-content/plugins/nutsforpress-indexing-and-seo/public/includes/nfpndx-add-sharing-metatags.php

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

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires php: The plugin version is formatted incorrectly
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

nutsforpress-indexing-and-seo/nuts-for-press-indexing-and-seo.php 92% from 13 tests

The main PHP script in "NutsForPress Indexing and SEO" version 1.9 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nutsforpress-indexing-and-seo.php" instead of "nuts-for-press-indexing-and-seo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,829 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP301,8143732,480
JavaScript416169237
CSS1291112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions59
▷ Named functions5898.31%
▷ Anonymous functions11.69%
Constants5
▷ Global constants5100.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