89% string-translation-importer-wpml

Code Review | WPML String Translation Importer

WordPress plugin WPML String Translation Importer scored89%from 54 tests.

About plugin

  • Plugin page: string-translatio...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Feb 8, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: marifamir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,081 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.85ms] Passed 4 tests

This is a short check of server-side resources used by WPML String Translation Importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.10 ▼11.72
Dashboard /wp-admin3.31 ▲0.0147.04 ▲0.07
Posts /wp-admin/edit.php3.36 ▲0.0156.78 ▲3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.03 ▼1.28
Media Library /wp-admin/upload.php3.23 ▲0.0136.63 ▼2.46
String Translation Importer /wp-admin/admin.php?page=wpml-string-translation-importer3.2033.73

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

WPML String Translation Importer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.071.84 ▼0.1444.66 ▼0.27
Dashboard /wp-admin2,198 ▲215.61 ▼0.0596.27 ▲5.8340.90 ▼3.85
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0140.48 ▲3.8635.93 ▼1.41
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▼0.16690.67 ▲8.4557.33 ▲5.65
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.01100.19 ▼9.4543.25 ▼4.66
String Translation Importer /wp-admin/admin.php?page=wpml-string-translation-importer8012.0325.7130.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 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
4 plugin tags: wpml, importer, string translation, csv

string-translation-importer-wpml/wpml-string-translation-importer.php 85% from 13 tests

This is the main PHP file of "WPML String Translation Importer" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("string-translation-importer-wpml.php" instead of "wpml-string-translation-importer.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin293 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8126357277
Markdown16016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.20
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin