84% remove-deleted-pages-from-search-index

Code Review | Remove Deleted Pages from Search Index

WordPress plugin Remove Deleted Pages from Search Index scored84%from 54 tests.

About plugin

  • Plugin page: remove-deleted-pa...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Jul 4, 2023
  • Number of updates: 8
  • Update frequency: every 17.4 days
  • Top authors: olihan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /333 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.01MB] [CPU: ▼8.24ms] Passed 4 tests

An overview of server-side resources used by Remove Deleted Pages from Search Index
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.79 ▼3.65
Dashboard /wp-admin3.31 ▲0.0144.29 ▼8.01
Posts /wp-admin/edit.php3.36 ▲0.0145.95 ▼2.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.26 ▼17.59
Media Library /wp-admin/upload.php3.23 ▲0.0132.41 ▼3.69

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

Input-output and database impact 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
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Deleted Pages from Search Index
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.28 ▼1.111.78 ▲0.0643.06 ▲0.84
Dashboard /wp-admin2,219 ▲285.81 ▼0.06102.02 ▼3.2238.85 ▲0.39
Posts /wp-admin/edit.php2,105 ▲131.97 ▼0.0034.92 ▼7.0434.75 ▼3.00
Add New Post /wp-admin/post-new.php1,546 ▲1823.28 ▲5.16654.89 ▲28.1457.27 ▼2.41
Media Library /wp-admin/upload.php1,404 ▲164.19 ▼0.0398.06 ▲3.4444.09 ▲3.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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)
Good news, no errors were detected

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-deleted-pages-from-search-index/remove-deleted-pages-from-search-index.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: delete, pages, 410 status code, oliver hancke, search index...

remove-deleted-pages-from-search-index/remove-deleted-pages-from-search-index.php 92% from 13 tests

The primary PHP file in "Remove Deleted Pages from Search Index" version 3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP130887

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions8
▷ Named functions8100.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
No PNG images were found in this plugin