89% passive-indexation-check

Code Review | Passive Indexation Check

WordPress plugin Passive Indexation Check scored 89% from 54 tests.

About plugin

  • Plugin page: passive-indexatio...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.1
  • WordPress version: 5.8.1
  • First release: Feb 9, 2016
  • Latest release: Feb 9, 2016
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: niteoweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,048 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼144.19ms] Passed 4 tests

Server-side resources used by Passive Indexation Check
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1940.19 ▲13.93
Dashboard /wp-admin3.14 ▲0.0845.26 ▼10.73
Posts /wp-admin/edit.php3.19 ▲0.0850.47 ▲0.97
Add New Post /wp-admin/post-new.php5.49 ▲0.0697.44 ▼571.27
Media Library /wp-admin/upload.php3.08 ▲0.0839.82 ▲4.27
Passive Indexation Check /wp-admin/options-general.php?page=passive-indexation-check/index.php3.0533.91

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options
passive_indexation_check_emails
passive_indexation_check_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Passive Indexation Check
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.97 ▲0.347.35 ▼0.6148.24 ▼4.44
Dashboard /wp-admin3,001 ▲705.94 ▲0.00150.74 ▲1.80118.95 ▼6.34
Posts /wp-admin/edit.php2,767 ▲282.70 ▲0.0172.75 ▼3.7599.47 ▲5.78
Add New Post /wp-admin/post-new.php1,634 ▼4921.14 ▲2.37287.95 ▼96.74114.41 ▲2.49
Media Library /wp-admin/upload.php1,779 ▼285.02 ▼0.01166.04 ▲5.63122.72 ▲1.81
Passive Indexation Check /wp-admin/options-general.php?page=passive-indexation-check/index.php1,1592.3566.5695.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 2 options in the database
    • passive_indexation_check_emails
    • passive_indexation_check_settings

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === passive-indexation-check === )
The official readme.txt might help

passive-indexation-check/index.php 92% from 13 tests

"Passive Indexation Check" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("passive-indexation-check.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin456 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP24672265
JavaScript11754132
HTML36349
CSS10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin