94% vietnamese-clean-url

Code Review | Vietnamese Clean URL

WordPress plugin Vietnamese Clean URL scored 94% from 53 tests.

About plugin

  • Plugin page: vietnamese-clean-url
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 5.8.1
  • First release: Mar 3, 2017
  • Latest release: Mar 3, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: vietdex (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 617 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼271.42ms] Passed 4 tests

This is a short check of server-side resources used by Vietnamese Clean URL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1224.18 ▲2.43
Dashboard /wp-admin3.06 ▲0.0139.49 ▲3.79
Posts /wp-admin/edit.php3.11 ▲0.0041.75 ▼3.63
Add New Post /wp-admin/post-new.php5.42 ▼0.0196.96 ▼1,077.20
Media Library /wp-admin/upload.php3.00 ▼0.0137.99 ▼7.26

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Vietnamese Clean URL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,650 ▲6815.94 ▲0.267.20 ▼0.7950.89 ▼1.63
Dashboard /wp-admin2,934 ▲815.95 ▲0.12142.43 ▲0.21105.75 ▼3.25
Posts /wp-admin/edit.php2,706 ▼02.68 ▲0.0066.42 ▼5.9690.03 ▼3.30
Add New Post /wp-admin/post-new.php1,653 ▲7618.72 ▲0.31361.47 ▼68.19122.84 ▲5.71
Media Library /wp-admin/upload.php1,778 ▲35.03 ▲0.02150.16 ▼14.02109.93 ▼19.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vietnamese-clean-url/vietnamese_clean_url.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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
10 plugin tags: vietnamese, duong dan tieng viet, vietnamese url, nice url, vietnamese slug...

vietnamese-clean-url/vietnamese_clean_url.php 85% from 13 tests

"Vietnamese Clean URL" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vietnamese-clean-url.php" instead of "vietnamese_clean_url.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151335

PHP code Passed 2 tests

Analyzing 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.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin