84% simple-slug-translate

Code Review | Simple Slug Translate

WordPress plugin Simple Slug Translate scored84%from 54 tests.

About plugin

  • Plugin page: simple-slug-trans...
  • Plugin version: 2.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2018
  • Latest release: Feb 24, 2023
  • Number of updates: 54
  • Update frequency: every 33.7 days
  • Top authors: ko31 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /19,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.72ms] Passed 4 tests

Server-side resources used by Simple Slug Translate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.48 ▼3.58
Dashboard /wp-admin3.41 ▲0.1046.52 ▲1.24
Posts /wp-admin/edit.php3.52 ▲0.1644.11 ▼4.15
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.06 ▲7.03
Media Library /wp-admin/upload.php3.33 ▲0.1036.66 ▼0.40
Simple Slug Translate /wp-admin/options-general.php?page=simple-slug-translate3.2930.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
simple-slug-translate
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Slug Translate
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.23 ▼0.021.78 ▲0.0242.11 ▼1.52
Dashboard /wp-admin2,202 ▲225.58 ▼0.0386.20 ▼2.1439.01 ▼2.93
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0233.96 ▼5.6337.15 ▲1.71
Add New Post /wp-admin/post-new.php1,529 ▼623.28 ▲5.38576.24 ▼107.3552.97 ▼13.86
Media Library /wp-admin/upload.php1,404 ▲44.18 ▲0.0493.33 ▼23.0540.35 ▼7.41
Simple Slug Translate /wp-admin/options-general.php?page=simple-slug-translate1,0682.0022.6837.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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/simple-slug-translate/simple-slug-translate.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

simple-slug-translate/simple-slug-translate.php 92% from 13 tests

Analyzing the main PHP file in "Simple Slug Translate" version 2.7.3
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected502 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29129502

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected