78% translationmanager

Code Review | TranslationMANAGER for WordPress

WordPress plugin TranslationMANAGER for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: translationmanager
  • Plugin version: 1.5.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2018
  • Latest release: Mar 16, 2023
  • Number of updates: 58
  • Update frequency: every 31.6 days
  • Top authors: nareknovembit (86.21%)nullbyte (13.79%)pretzlaw (3.45%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,937 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.38MB] [CPU: ▲0.28ms] Passed 4 tests

This is a short check of server-side resources used by TranslationMANAGER for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1634.49 ▼5.62
Dashboard /wp-admin5.13 ▲1.7857.21 ▼1.45
Posts /wp-admin/edit.php5.21 ▲1.8558.00 ▲11.70
Add New Post /wp-admin/post-new.php7.69 ▲1.80100.64 ▼3.49
Media Library /wp-admin/upload.php5.02 ▲1.7855.31 ▲20.03
Settings /wp-admin/admin.php?page=translationmanager_settings5.19325.92
Project /wp-admin/admin.php?page=translationmanager-project5.0941.62

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 324 new files
Database: no new tables, 7 new options
New WordPress options
translationmanager_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for TranslationMANAGER for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲13213.30 ▼1.011.80 ▲0.0539.27 ▼0.51
Dashboard /wp-admin2,244 ▲565.05 ▼0.7799.72 ▼0.3188.04 ▲45.91
Posts /wp-admin/edit.php2,214 ▲1252.27 ▲0.2737.52 ▼0.64198.32 ▲161.12
Add New Post /wp-admin/post-new.php1,716 ▲19721.82 ▼1.24690.64 ▲12.7727.23 ▼46.39
Media Library /wp-admin/upload.php1,432 ▲444.31 ▲0.00105.45 ▲4.7978.61 ▲31.73
Settings /wp-admin/admin.php?page=translationmanager_settings1,3801.9834.5563.19
Project /wp-admin/admin.php?page=translationmanager-project1,0091.7627.2328.47

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • translationmanager_version
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=translationmanager-project
    • > Notice in wp-content/plugins/translationmanager/src/TableList/ProjectItem.php+529
    Trying to get property 'term_id' of non-object

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
Please fix the following
  • 196× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Brain\onces\onceInterface' not found in wp-content/plugins/translationmanager/vendor/brain/nonces/src/WpNonce.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Translationmanager\\Module\\Integrable' not found in wp-content/plugins/translationmanager/src/Module/YoastSeo/Integrator.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Translationmanager\\Service\\BootstrappableServiceProvider' not found in wp-content/plugins/translationmanager/src/ProjectItem/ServiceProvider.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/translationmanager/views/meta-box/translation/no-key-customer.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/translationmanager/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/translationmanager/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/translationmanager/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Translationmanager\\Request\\RequestHandleable' not found in wp-content/plugins/translationmanager/src/Request/Api/OrderProject.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Translationmanager\\SystemStatus\\Data\\Information' not found in wp-content/plugins/translationmanager/src/SystemStatus/Data/WordPress.php:7
    • > PHP Fatal error
      Trait 'Webmozart\\Assert\\Mixin' not found in wp-content/plugins/translationmanager/vendor/webmozart/assert/src/Assert.php on line 33

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: api, translation, i18n

translationmanager/translationmanager.php 92% from 13 tests

The main file in "TranslationMANAGER for WordPress" v. 1.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/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
Good job! No executable or dangerous file extensions detected16,314 lines of code in 314 files:
LanguageFilesBlank linesComment linesLines of code
PHP2903,49910,59914,833
JSON100384
Sass79447380
JavaScript586151293
Markdown2760150
YAML4350127
reStructuredText19613997
CSS47350

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.52
▷ Minimum class complexity1.00
▷ Maximum class complexity367.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces53
Interfaces22
Traits2
Classes228
▷ Abstract classes10.44%
▷ Concrete classes22799.56%
▷ Final classes83.52%
Methods1,075
▷ Static methods40737.86%
▷ Public methods92485.95%
▷ Protected methods787.26%
▷ Private methods736.79%
Functions165
▷ Named functions3621.82%
▷ Anonymous functions12978.18%
Constants68
▷ Global constants00.00%
▷ Class constants68100.00%
▷ Public constants68100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/img/inpsyde.png20.38KB1.88KB▼ 90.78%
resources/img/eurotext-logo.png6.51KB3.22KB▼ 50.53%
resources/img/Eurotext_AG_72dpi_250.png6.51KB3.22KB▼ 50.53%
resources/img/tm-icon-bw.png0.92KB0.81KB▼ 12.47%