78% transifex-live-integration

Code Review | International SEO by Transifex

WordPress plugin International SEO by Transifex scored78%from 54 tests.

About plugin

  • Plugin page: transifex-live-in...
  • Plugin version: 1.3.35
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: Oct 31, 2023
  • Number of updates: 94
  • Update frequency: every 32.9 days
  • Top authors: txmatthew (62.77%)transifex (38.3%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /7,110 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.21ms] Passed 4 tests

A check of server-side resources used by International SEO by Transifex
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.59 ▼1.19
Dashboard /wp-admin3.33 ▲0.0247.45 ▼1.20
Posts /wp-admin/edit.php3.38 ▲0.0247.69 ▼6.58
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.17 ▼3.87
Media Library /wp-admin/upload.php3.25 ▲0.0239.15 ▼0.07
Transifex Live /wp-admin/options-general.php?page=transifex-live-integration3.3733.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by International SEO by Transifex
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.25 ▼0.011.75 ▲0.2541.82 ▲3.24
Dashboard /wp-admin2,218 ▲375.69 ▲0.0286.91 ▼12.0238.35 ▼6.95
Posts /wp-admin/edit.php2,123 ▲232.05 ▲0.0635.11 ▼4.0932.32 ▼5.64
Add New Post /wp-admin/post-new.php1,557 ▲3123.27 ▼0.53637.28 ▼27.0933.69 ▼22.82
Media Library /wp-admin/upload.php1,426 ▲294.20 ▼0.0396.30 ▼6.7742.35 ▼1.95
Transifex Live /wp-admin/options-general.php?page=transifex-live-integration1,2652.0535.8329.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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/options-general.php?page=transifex-live-integration
    • > Notice in wp-content/plugins/transifex-live-integration/includes/admin/transifex-live-integration-admin-template.php+147
    Undefined index: rewrite_pattern

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
Please fix the following items
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/transifex-live-integration/includes/admin/transifex-live-integration-admin-template.php:2
    • > PHP Warning
      Use of undefined constant TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE - assumed 'TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-hreflang.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE/includes/common/transifex-live-integration-common.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-hreflang.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE/includes/lib/transifex-live-integration-wp-services.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-picker.php on line 4
    • > PHP Warning
      Use of undefined constant TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE - assumed 'TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-picker.php on line 4
    • > PHP Warning
      include_once(TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE/includes/common/transifex-live-integration-common.php): failed to open stream: No such file or directory in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-picker.php on line 3
    • > PHP Warning
      Use of undefined constant TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE - assumed 'TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-hreflang.php on line 4
    • > PHP Warning
      include_once(): Failed opening 'TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE/includes/lib/transifex-live-integration-wp-services.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-hreflang.php on line 4
    • > PHP Warning
      Use of undefined constant TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE - assumed 'TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-picker.php on line 3
    • > PHP Warning
      include_once(TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE/includes/lib/transifex-live-integration-wp-services.php): failed to open stream: No such file or directory in wp-content/plugins/transifex-live-integration/includes/lib/transifex-live-integration-hreflang.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === International SEO by Transifex === )
The official readme.txt is a good inspiration

transifex-live-integration/transifex-live-integration.php 92% from 13 tests

Analyzing the main PHP file in "International SEO by Transifex" version 1.3.35
The following require your attention:
  • 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
There were no executable files found in this plugin3,506 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP233989972,444
JavaScript44919993
CSS19069

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity23.05
▷ Minimum class complexity2.00
▷ Maximum class complexity61.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods130
▷ Static methods5441.54%
▷ Public methods12999.23%
▷ Protected methods00.00%
▷ Private methods10.77%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
No PNG images were found in this plugin