89% remove-special-characters-from-permalinks

Code Review | Remove Special Characters From Permalinks

WordPress plugin Remove Special Characters From Permalinks scored89%from 54 tests.

About plugin

  • Plugin page: remove-special-ch...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2018
  • Latest release: Sep 26, 2023
  • Number of updates: 14
  • Update frequency: every 131.4 days
  • Top authors: Karzin (78.57%)wpcodefactory (28.57%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,376 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Remove Special Characters From Permalinks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▼6.93
Dashboard /wp-admin3.32 ▲0.0150.42 ▲1.52
Posts /wp-admin/edit.php3.37 ▲0.0148.73 ▼3.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.78 ▼6.57
Media Library /wp-admin/upload.php3.24 ▲0.0137.48 ▲2.63

Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/remove-special-characters-from-permalinks/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Remove Special Characters From Permalinks: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.54 ▼0.841.61 ▼0.3241.20 ▼1.74
Dashboard /wp-admin2,224 ▲214.84 ▼1.03100.40 ▼5.7439.45 ▼5.52
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0139.69 ▼2.2334.39 ▼0.99
Add New Post /wp-admin/post-new.php1,547 ▲1623.13 ▼0.21675.22 ▲29.5654.50 ▲5.08
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.05104.72 ▼7.1646.37 ▼2.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: characters, permalinks, remove, special, problematic...

remove-special-characters-from-permalinks/remove-special-characters-from-permalinks.php Passed 13 tests

The entry point to "Remove Special Characters From Permalinks" version 1.0.8 is a PHP file that has certain tags in its header comment area
43 characters long description:
Removes special characters from permalinks.

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
There were no executable files found in this plugin1,037 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP15188511955
JSON30082

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods62
▷ Static methods1930.65%
▷ Public methods5893.55%
▷ Protected methods00.00%
▷ Private methods46.45%
Functions10
▷ Named functions440.00%
▷ Anonymous functions660.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wporg_assets/banner-772x250.png28.52KB14.49KB▼ 49.21%
wporg_assets/icon-256x256.png6.99KB3.87KB▼ 44.62%
wporg_assets/images/banner-772x250.png28.52KB14.49KB▼ 49.21%
wporg_assets/icon-128x128.png3.70KB2.25KB▼ 39.30%
(invalid) wporg_assets/link-icon.png15.48KB0.00KB▼ 100.00%