Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼136.79ms] Passed 4 tests
Server-side resources used by Vietnamese slug
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.91 ▲16.32 |
Dashboard /wp-admin | 3.08 ▲0.02 | 49.41 ▲10.17 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.60 ▲9.47 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.60 ▼552.39 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 29.69 ▼14.42 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Vietnamese slug: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲42 | 15.84 ▲0.19 | 9.09 ▲0.31 | 56.83 ▲10.87 |
Dashboard /wp-admin | 2,967 ▲36 | 5.93 ▼0.18 | 133.31 ▼11.58 | 105.35 ▼7.14 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▲0.00 | 62.73 ▲0.81 | 92.06 ▲7.19 |
Add New Post /wp-admin/post-new.php | 1,670 ▼6 | 19.10 ▲0.27 | 380.28 ▲0.69 | 105.58 ▼6.02 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.03 | 141.93 ▼5.86 | 121.21 ▲0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vietnamese-slug/vietnamese_slug.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: tieng viet, permalink in vietnamese, duong dan tieng viet, vietnamese slug, nice permalink...
vietnamese-slug/vietnamese_slug.php 85% from 13 tests
"Vietnamese slug" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("vietnamese-slug.php" instead of "vietnamese_slug.php")
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
Everything looks great! No dangerous files found in this plugin35 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 13 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected