84% wp-permalink-translator

Code Review | WP Permalink Translator

WordPress plugin WP Permalink Translator scored84%from 54 tests.

About plugin

  • Plugin page: wp-permalink-tran...
  • Plugin version: 1.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Nov 26, 2017
  • Latest release: Feb 16, 2019
  • Number of updates: 15
  • Update frequency: every 29.8 days
  • Top authors: hossin277 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /7,402 total downloads

Benchmarks

Plugin footprint 83% from 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 gracefully, with no errors

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

Analyzing server-side resources used by WP Permalink Translator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.43 ▲3.16
Dashboard /wp-admin3.31 ▲0.0149.61 ▼1.28
Posts /wp-admin/edit.php3.36 ▲0.0150.17 ▼0.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.09 ▼7.46
Media Library /wp-admin/upload.php3.23 ▲0.0142.39 ▲6.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Permalink Translator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.17 ▼0.201.89 ▲0.2046.07 ▲3.01
Dashboard /wp-admin2,211 ▲315.65 ▲0.0091.28 ▼1.0137.17 ▼7.11
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0339.45 ▼0.2040.08 ▲2.60
Add New Post /wp-admin/post-new.php1,539 ▲1323.16 ▼0.07679.21 ▲9.3761.01 ▲11.91
Media Library /wp-admin/upload.php1,413 ▲134.26 ▲0.0895.90 ▼4.8844.25 ▼1.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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_action() in wp-content/plugins/wp-permalink-translator/wp-permalink-translator.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: translator, permalink translator, permalink

wp-permalink-translator/wp-permalink-translator.php Passed 13 tests

The main file in "WP Permalink Translator" v. 1.7.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
a plugin to translate Permalink to another languages.

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
Everything looks great! No dangerous files found in this plugin456 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17628413
PO File1131343

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin