83% clean-yoast-seo-cache

Code Review | Yoast SEO Cleaner

WordPress plugin Yoast SEO Cleaner scored83%from 54 tests.

About plugin

  • Plugin page: clean-yoast-seo-c...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 3, 2018
  • Latest release: Mar 4, 2018
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: moazam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,172 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.57ms] Passed 4 tests

Analyzing server-side resources used by Yoast SEO Cleaner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.54 ▲6.17
Dashboard /wp-admin3.33 ▼0.0149.18 ▼11.96
Posts /wp-admin/edit.php3.38 ▲0.0354.48 ▲0.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.14 ▲2.04
Media Library /wp-admin/upload.php3.25 ▲0.0235.85 ▼0.76
Yoast SEO Cleaner Settings /wp-admin/options-general.php?page=yoast-seo-cleaner-settings3.2236.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Yoast SEO Cleaner
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.221.75 ▲0.1442.73 ▲1.95
Dashboard /wp-admin2,201 ▲305.63 ▲0.1290.43 ▼8.9439.83 ▲3.02
Posts /wp-admin/edit.php2,106 ▲91.98 ▼0.0442.18 ▲4.5336.12 ▲2.17
Add New Post /wp-admin/post-new.php1,542 ▲13818.23 ▲0.28625.96 ▲2.3564.57 ▲14.08
Media Library /wp-admin/upload.php1,409 ▲94.22 ▼0.0099.03 ▼12.6142.95 ▼4.03
Yoast SEO Cleaner Settings /wp-admin/options-general.php?page=yoast-seo-cleaner-settings8022.0025.4834.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/clean-yoast-seo-cache/admin/partials/yoast-seo-cleaner-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt might help

clean-yoast-seo-cache/yoast-seo-cleaner.php 85% from 13 tests

The principal PHP file in "Yoast SEO Cleaner" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("clean-yoast-seo-cache.php" instead of "yoast-seo-cleaner.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin295 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119473279
CSS13413
JavaScript12273

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.62
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2480.00%
▷ Protected methods13.33%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin