74% noindex-by-path

Code Review | Noindex by Path

WordPress plugin Noindex by Path scored74%from 54 tests.

About plugin

  • Plugin page: noindex-by-path
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.5
  • WordPress version: 6.3.1
  • First release: May 31, 2017
  • Latest release: May 31, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mkijak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,042 total downloads

Benchmarks

Plugin footprint 65% 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: ▼8.86ms] Passed 4 tests

Analyzing server-side resources used by Noindex by Path
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.47 ▼5.17
Dashboard /wp-admin3.33 ▲0.0352.72 ▼7.69
Posts /wp-admin/edit.php3.45 ▲0.0949.65 ▼4.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.39 ▼17.99
Media Library /wp-admin/upload.php3.26 ▲0.0337.56 ▼0.77

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables
wp_noindex_by_path
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Noindex by Path
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.17 ▼0.492.06 ▲0.2244.54 ▲1.30
Dashboard /wp-admin2,208 ▲315.63 ▲0.0082.76 ▼11.8742.85 ▲0.52
Posts /wp-admin/edit.php2,113 ▲131.95 ▼0.1037.50 ▲1.4338.38 ▲3.60
Add New Post /wp-admin/post-new.php1,541 ▲1523.20 ▼0.12686.75 ▼2.1673.80 ▲17.64
Media Library /wp-admin/upload.php1,419 ▲164.18 ▲0.0295.47 ▼7.0846.79 ▲0.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_noindex_by_path
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/noindex-by-path/noindex-by-path.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/noindex-by-path/app/template/admin-template.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
3 plugin tags: noindex, robots, pages

noindex-by-path/noindex-by-path.php 92% from 13 tests

The entry point to "Noindex by Path" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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 plugin254 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP116246187
PO File14437
Markdown114030

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods13
▷ Static methods646.15%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin