Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.94MB] [CPU: ▲8.29ms] Passed 4 tests
This is a short check of server-side resources used by Translation Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.40 ▲1.89 | 59.00 ▲15.21 |
Dashboard /wp-admin | 5.30 ▲1.95 | 56.41 ▼1.63 |
Posts /wp-admin/edit.php | 5.36 ▲1.96 | 65.08 ▲16.12 |
Add New Post /wp-admin/post-new.php | 7.89 ▲1.96 | 100.95 ▲6.25 |
Media Library /wp-admin/upload.php | 5.23 ▲1.96 | 50.40 ▲13.32 |
Server storage [IO: ▲0.78MB] [DB: ▲0.05MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Translation Tools
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,190 ▲429 | 14.38 ▲0.03 | 1.75 ▼0.31 | 43.20 ▼0.21 |
Dashboard /wp-admin | 2,198 ▲20 | 5.63 ▼0.01 | 88.12 ▼21.62 | 39.08 ▼0.86 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.03 | 37.79 ▼5.93 | 30.48 ▼5.36 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.31 ▲0.31 | 676.70 ▲34.19 | 64.29 ▲9.62 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.00 | 96.27 ▼12.06 | 42.45 ▼1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Generators\\Generator' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/Generators/CsvDictionary.php:9
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Generators\\Generator' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/Generators/YamlDictionary.php:9
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Extractors\\Extractor' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/Extractors/Twig.php:14
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Extractors\\Extractor' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/Extractors/Jed.php:10
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Extractors\\Extractor' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/Extractors/YamlDictionary.php:12
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Languages\\Exporter\\Exporter' not found in wp-content/plugins/translation-tools/vendor/gettext/languages/src/Exporter/Php.php:5
- > PHP Fatal error
Trait 'Gettext\\Utils\\HeadersGeneratorTrait' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/Utils/MultidimensionalArrayTrait.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Extractors\\Extractor' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/Extractors/Po.php:12
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Languages\\Exporter\\Html' not found in wp-content/plugins/translation-tools/vendor/gettext/languages/src/Exporter/Docs.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Gettext\\TranslatorInterface' not found in wp-content/plugins/translation-tools/vendor/gettext/gettext/src/BaseTranslator.php:5
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: language packs, translation, localization, internationalization, core
translation-tools/translation-tools.php Passed 13 tests
The main file in "Translation Tools" v. 1.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Translation tools for your WordPress install.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/translation-tools/vendor/gettext/languages/bin/export-plural-rules.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 2,428 | 4,374 | 9,903 |
JSON | 5 | 0 | 0 | 2,337 |
PO File | 7 | 536 | 947 | 1,405 |
Markdown | 2 | 42 | 0 | 185 |
JavaScript | 4 | 52 | 104 | 147 |
XML | 3 | 37 | 34 | 93 |
DOS Batch | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 4 | |
Traits | 5 | |
Classes | 80 | |
▷ Abstract classes | 6 | 7.50% |
▷ Concrete classes | 74 | 92.50% |
▷ Final classes | 1 | 1.35% |
Methods | 406 | |
▷ Static methods | 192 | 47.29% |
▷ Public methods | 336 | 82.76% |
▷ Protected methods | 56 | 13.79% |
▷ Private methods | 14 | 3.45% |
Functions | 25 | |
▷ Named functions | 11 | 44.00% |
▷ Anonymous functions | 14 | 56.00% |
Constants | 34 | |
▷ Global constants | 6 | 17.65% |
▷ Class constants | 28 | 82.35% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin