88% advanced-slug-translate

Code Review | Advanced Slug Translate

WordPress plugin Advanced Slug Translate scored 88% from 54 tests.

About plugin

  • Plugin page: advanced-slug-tra...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.8
  • WordPress version: 5.8.1
  • First release: Sep 29, 2017
  • Latest release: Oct 3, 2019
  • Number of updates: 4
  • Update frequency: every 183.8 days
  • Top authors: thanminhtu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 532 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.37 ▲6.13
Dashboard /wp-admin3.16 ▲0.1154.38 ▲12.00
Posts /wp-admin/edit.php3.28 ▲0.1756.94 ▲14.08
Add New Post /wp-admin/post-new.php5.50 ▲0.0792.20 ▼551.10
Media Library /wp-admin/upload.php3.09 ▲0.0842.36 ▲11.51
Sync Slug /wp-admin/admin.php?page=astrans_sync3.1139.36
Setting /wp-admin/admin.php?page=astrans3.1240.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,936 ▲36417.47 ▲1.9311.31 ▲3.5347.73 ▼1.79
Dashboard /wp-admin3,183 ▲2527.90 ▲1.97152.34 ▲9.88129.12 ▲17.55
Posts /wp-admin/edit.php3,011 ▲2754.44 ▲1.7481.83 ▲13.46103.33 ▲10.14
Add New Post /wp-admin/post-new.php1,638 ▼1,99821.71 ▲6.77251.44 ▼177.02119.06 ▲15.98
Media Library /wp-admin/upload.php1,783 ▼244.78 ▼0.23112.88 ▼32.25145.91 ▲30.23
Sync Slug /wp-admin/admin.php?page=astrans_sync1,7413.8571.89161.70
Setting /wp-admin/admin.php?page=astrans1,6343.8473.37127.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.48
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods6100.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
▷ Named functions18100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/loading.png56.96KB3.41KB▼ 94.01%