93% auto-clean-url-seo

Code Review | Auto Clean URL for SEO

WordPress plugin Auto Clean URL for SEO scored 93% from 54 tests.

About plugin

  • Plugin page: auto-clean-url-seo
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 5.8.1
  • First release: Apr 4, 2014
  • Latest release: May 10, 2018
  • Number of updates: 36
  • Update frequency: every 41.6 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 10,450 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼140.18ms] Passed 4 tests

A check of server-side resources used by Auto Clean URL for SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2438.28 ▲14.06
Dashboard /wp-admin3.18 ▲0.1356.24 ▲17.05
Posts /wp-admin/edit.php3.23 ▲0.1347.20 ▼2.93
Add New Post /wp-admin/post-new.php5.54 ▲0.1192.94 ▼575.56
Media Library /wp-admin/upload.php3.13 ▲0.1236.67 ▲3.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Auto Clean URL for SEO: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.71 ▲0.2110.76 ▲1.5353.30 ▲1.84
Dashboard /wp-admin2,967 ▲366.08 ▲0.18143.21 ▼23.67124.57 ▲1.85
Posts /wp-admin/edit.php2,739 ▲32.69 ▼0.0075.51 ▲7.73102.00 ▲5.24
Add New Post /wp-admin/post-new.php1,500 ▼9118.58 ▼0.14374.45 ▼7.46114.48 ▲1.00
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.03159.78 ▲5.20123.91 ▼5.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/auto-clean-url-seo/auto-clean-url-seo.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
The official readme.txt is a good inspiration

auto-clean-url-seo/auto-clean-url-seo.php 85% from 13 tests

The main PHP file in "Auto Clean URL for SEO" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected125 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP183272
PO File24453

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected