94% yoast-seo-search-index-purge

Code Review | Yoast SEO: Search Index Purge

WordPress plugin Yoast SEO: Search Index Purge scored 94% from 54 tests.

About plugin

  • Plugin page: yoast-seo-search-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6
  • WordPress version: 5.9.2
  • First release: May 30, 2018
  • Latest release: Dec 10, 2020
  • Number of updates: 11
  • Update frequency: every 84.2 days
  • Top authors: Yoast (54.55%)ireneyoast (27.27%)joostdevalk (18.18%)atimmer (18.18%)jipmoors (18.18%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10,000+ active / 90,549 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼290.62ms] Passed 4 tests

This is a short check of server-side resources used by Yoast SEO: Search Index Purge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1256.72 ▼1.00
Dashboard /wp-admin3.47 ▲0.0647.33 ▲13.32
Posts /wp-admin/edit.php3.69 ▲0.0539.98 ▲2.93
Add New Post /wp-admin/post-new.php6.93 ▼0.0497.07 ▼1,167.41
Media Library /wp-admin/upload.php3.34 ▲0.0526.85 ▲3.01

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Yoast SEO: Search Index Purge: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1515.56 ▼0.456.39 ▼1.732.13 ▼0.32
Dashboard /wp-admin2,901 ▲406.13 ▼0.03121.99 ▼16.21162.63 ▼8.22
Posts /wp-admin/edit.php2,698 ▲103.24 ▲0.0164.40 ▲0.90136.53 ▼8.14
Add New Post /wp-admin/post-new.php1,700 ▲3920.99 ▲4.64410.69 ▼9.46155.91 ▼11.57
Media Library /wp-admin/upload.php1,704 ▲65.50 ▲0.04139.63 ▼1.97188.48 ▲9.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPSEO_Post_Type_Sitemap_Provider' not found in wp-content/plugins/yoast-seo-search-index-purge/src/Yoast_Purge_Attachment_Sitemap_Provider.php:13

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: content analysis, seo, readability, google search console, xml sitemap

yoast-seo-search-index-purge/yoast-seo-search-index-purge.php 85% from 13 tests

The principal PHP file in "Yoast SEO: Search Index Purge" v. 1.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected334 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10106445334

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.22
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes777.78%
Methods50
▷ Static methods00.00%
▷ Public methods4080.00%
▷ Protected methods12.00%
▷ Private methods918.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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