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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼130.37ms] Passed 4 tests
Analyzing server-side resources used by Advanced Slug Translate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.37 ▲6.13 |
Dashboard /wp-admin | 3.16 ▲0.11 | 54.38 ▲12.00 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 56.94 ▲14.08 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 92.20 ▼551.10 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 42.36 ▲11.51 |
Sync Slug /wp-admin/admin.php?page=astrans_sync | 3.11 | 39.36 |
Setting /wp-admin/admin.php?page=astrans | 3.12 | 40.44 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Slug Translate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,936 ▲364 | 17.47 ▲1.93 | 11.31 ▲3.53 | 47.73 ▼1.79 |
Dashboard /wp-admin | 3,183 ▲252 | 7.90 ▲1.97 | 152.34 ▲9.88 | 129.12 ▲17.55 |
Posts /wp-admin/edit.php | 3,011 ▲275 | 4.44 ▲1.74 | 81.83 ▲13.46 | 103.33 ▲10.14 |
Add New Post /wp-admin/post-new.php | 1,638 ▼1,998 | 21.71 ▲6.77 | 251.44 ▼177.02 | 119.06 ▲15.98 |
Media Library /wp-admin/upload.php | 1,783 ▼24 | 4.78 ▼0.23 | 112.88 ▼32.25 | 145.91 ▲30.23 |
Sync Slug /wp-admin/admin.php?page=astrans_sync | 1,741 | 3.85 | 71.89 | 161.70 |
Setting /wp-admin/admin.php?page=astrans | 1,634 | 3.84 | 73.37 | 127.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advanced-slug-translate/inc/sync.php
- > /wp-content/plugins/advanced-slug-translate/inc/astrans_sidebar.php
- > /wp-content/plugins/advanced-slug-translate/adv-slug-translate.php
- > /wp-content/plugins/advanced-slug-translate/index.php
- > /wp-content/plugins/advanced-slug-translate/inc/index.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=astrans
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-slug-translate//assets/js/astrans-admin.js?ver=5.8.1:28:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30340)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=astrans
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31702 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: translate slug, slug translate, edit slug
advanced-slug-translate/adv-slug-translate.php 85% from 13 tests
The principal PHP file in "Advanced Slug Translate" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-slug-translate.php" instead of "adv-slug-translate.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,576 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 55 | 127 | 784 |
CSS | 1 | 9 | 4 | 401 |
JavaScript | 1 | 9 | 25 | 205 |
JSON | 11 | 0 | 0 | 186 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/loading.png | 56.96KB | 3.41KB | ▼ 94.01% |
assets/images/ast.png | 0.64KB | 0.65KB | 0.00% |