Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.59MB] [CPU: ▼47.55ms] Passed 4 tests
Server-side resources used by Transifex WP Translation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.41 ▼1.06 | 9.78 ▼30.84 |
Dashboard /wp-admin | 2.42 ▼0.88 | 13.98 ▼38.75 |
Posts /wp-admin/edit.php | 2.43 ▼0.94 | 13.17 ▼35.83 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 13.80 ▼84.79 |
Media Library /wp-admin/upload.php | 2.42 ▼0.81 | 13.03 ▼22.95 |
Switcher /wp-admin/admin.php?page=txwt-plugin_switcher | 2.42 | 11.90 |
Transifex /wp-admin/admin.php?page=txwt-plugin | 2.42 | 15.09 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 275 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_txwt_multilingual_ls |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Transifex WP Translation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲234 | 14.22 ▼0.37 | 23.71 ▲22.21 | 36.54 ▼3.58 |
Dashboard /wp-admin | 2,221 ▲41 | 5.55 ▼0.07 | 86.24 ▼4.17 | 60.46 ▲18.58 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 1.97 ▲0.01 | 35.36 ▼7.80 | 35.27 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,701 ▲172 | 21.97 ▼1.49 | 676.31 ▲75.06 | 59.40 ▲6.21 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.27 ▲0.07 | 101.41 ▼6.53 | 70.71 ▲22.40 |
Switcher /wp-admin/admin.php?page=txwt-plugin_switcher | 2,875 | 4.74 | 148.12 | 45.58 |
Transifex /wp-admin/admin.php?page=txwt-plugin | 1,289 | 3.20 | 72.98 | 32.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Switcher_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_txwt_multilingual_ls
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=txwt-plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Switcher_Widget is deprecated since version 4.3.0! Use __construct() instead.
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/transifex-wp-translation/classes/class.txwt-lang-switcher.php
- > /wp-content/plugins/transifex-wp-translation/classes/class.txwt-switcher-widgets.php
- > /wp-content/plugins/transifex-wp-translation/views/txwt-settings/page-settings-section-headers.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/transifex-wp-translation/transifex-wp-translation.php:37
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-wp-translation/views/stgs-page.php on line 1
- > PHP Notice
Undefined variable: section in wp-content/plugins/transifex-wp-translation/views/txwt-settings/page-settings-section-headers.php on line 17
- > PHP Warning
Use of undefined constant TXWT_REQUIRED_WP_VERSION - assumed 'TXWT_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-wp-translation/views/requirements-error.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/transifex-wp-translation/views/txwt-settings/page-settings-section-headers.php on line 9
- > PHP Notice
Undefined variable: section in wp-content/plugins/transifex-wp-translation/views/txwt-settings/page-settings-section-headers.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/transifex-wp-translation/views/requirements-error.php:12
- > PHP Warning
Use of undefined constant TXWT_NAME - assumed 'TXWT_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-wp-translation/views/requirements-error.php on line 2
- > PHP Warning
Use of undefined constant TXWT_REQUIRED_PHP_VERSION - assumed 'TXWT_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/transifex-wp-translation/views/requirements-error.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/transifex-wp-translation/views/txwt-settings/page-settings-section-headers.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: transifex live, translation, localization, transifex, internationalization
transifex-wp-translation/transifex-wp-translation.php 92% from 13 tests
The principal PHP file in "Transifex WP Translation" v. 0.3.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,261 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 307 | 241 | 1,576 |
CSS | 2 | 67 | 12 | 352 |
JavaScript | 3 | 56 | 25 | 224 |
PO File | 1 | 49 | 54 | 109 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 7 | 12.96% |
▷ Public methods | 53 | 98.15% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
255 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags/mx.png | 0.56KB | 0.71KB | 0.00% |
images/flags/mo.png | 0.57KB | 0.71KB | 0.00% |
images/flags/ph.png | 0.53KB | 0.71KB | 0.00% |
images/flags/ke.png | 0.56KB | 0.69KB | 0.00% |
images/flags/eo.png | 0.22KB | 0.16KB | ▼ 25.66% |