Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.85ms] Passed 4 tests
Analyzing server-side resources used by lingAPI for Polylang & WPML - WP translation tool
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.92 ▼5.62 |
Dashboard /wp-admin | 3.33 ▼0.02 | 49.16 ▼15.53 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.88 ▲3.60 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.56 ▼8.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.02 ▼1.68 |
Server storage [IO: ▲27.12MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Total filesystem usage should be limited to 25MB (currently using 27.12MB)
Filesystem: 1,432 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_turbotranslations |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for lingAPI for Polylang & WPML - WP translation tool
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.18 ▲0.03 | 1.92 ▼0.36 | 44.38 ▼2.08 |
Dashboard /wp-admin | 2,225 ▲48 | 5.66 ▲0.02 | 88.45 ▲0.41 | 38.12 ▼2.57 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▼0.02 | 40.85 ▲1.87 | 36.66 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.18 ▲0.12 | 627.61 ▲36.24 | 59.28 ▲6.87 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.18 ▲0.02 | 103.22 ▲2.42 | 47.25 ▲0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_turbotranslations
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/turbotranslations.php
- > /wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/intl/Resources/bin/update-data.php
- 94× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleReaderInterface' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/intl/Data/Bundle/Reader/BufferedBundleReader.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Intl\\DateFormatter\\DateFormat\\HourTransformer' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/intl/DateFormatter/DateFormat/Hour2401Transformer.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Intl\\Icu\\DateFormat\\Transformer' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/polyfill-intl-icu/DateFormat/HourTransformer.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Intl\\Icu\\Exception\\RuntimeException' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/polyfill-intl-icu/Exception/NotImplementedException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Intl\\Data\\Generator\\AbstractDataGenerator' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/intl/Data/Generator/LocaleDataGenerator.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Intl\\Data\\Bundle\\Writer\\BundleWriterInterface' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/intl/Data/Bundle/Writer/PhpBundleWriter.php:21
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/includes/TurboTranslationsWPML.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Intl\\Icu\\DateFormat\\Transformer' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/polyfill-intl-icu/DateFormat/DayTransformer.php:21
- > PHP Fatal error
Uncaught Error: Class 'Locale' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/intl/Locale.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Intl\\Data\\Bundle\\Reader\\BundleReaderInterface' not found in wp-content/plugins/lingapi-for-polylang-and-wpml-wp-translation-tool/vendor/symfony/intl/Data/Bundle/Reader/JsonBundleReader.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: localization, wpml, translations, translation api, lingapi...
lingapi-for-polylang-and-wpml-wp-translation-tool/turbotranslations.php 77% from 13 tests
The main file in "lingAPI for Polylang & WPML - WP translation tool" v. 1.0.4 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:
- Description: Please keep the plugin description shorter than 140 characters (currently 244 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lingapi-for-polylang-and-wpml-wp-translation-tool.php" instead of "turbotranslations.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected343,882 lines of code in 1,280 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1,128 | 0 | 0 | 334,581 |
PHP | 138 | 1,889 | 5,408 | 8,150 |
JavaScript | 4 | 0 | 2,840 | 946 |
PO File | 2 | 30 | 86 | 115 |
Markdown | 4 | 23 | 0 | 76 |
Bourne Again Shell | 1 | 2 | 0 | 11 |
CSS | 3 | 0 | 8 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 7 | |
Traits | 1 | |
Classes | 116 | |
▷ Abstract classes | 16 | 13.79% |
▷ Concrete classes | 100 | 86.21% |
▷ Final classes | 11 | 11.00% |
Methods | 600 | |
▷ Static methods | 186 | 31.00% |
▷ Public methods | 458 | 76.33% |
▷ Protected methods | 62 | 10.33% |
▷ Private methods | 80 | 13.33% |
Functions | 53 | |
▷ Named functions | 26 | 49.06% |
▷ Anonymous functions | 27 | 50.94% |
Constants | 273 | |
▷ Global constants | 4 | 1.47% |
▷ Class constants | 269 | 98.53% |
▷ Public constants | 251 | 93.31% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin