Benchmarks
Plugin footprint 82% 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 gracefully, with no errors
Server metrics [RAM: ▼0.79MB] [CPU: ▼17.92ms] Passed 4 tests
A check of server-side resources used by Translatio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 7.09 ▼35.19 |
Dashboard /wp-admin | 3.53 ▲0.18 | 50.99 ▼10.69 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 52.22 ▲1.43 |
Add New Post /wp-admin/post-new.php | 3.66 ▼2.23 | 68.99 ▼27.22 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 41.77 ▲8.82 |
Diagnosis /wp-admin/admin.php?page=tmy-support-manager | 3.40 | 36.78 |
Taxonomies /wp-admin/admin.php?page=tmy-g11n-taxonomy-menu | 3.59 | 38.73 |
Setup /wp-admin/admin.php?page=tmy-g11n-setup-menu | 3.49 | 42.63 |
Text /wp-admin/admin.php?page=tmy-g11n-text-menu | 3.44 | 37.37 |
Dashboard /wp-admin/admin.php?page=tmy-g11n-dashboard-menu | 3.42 | 32.66 |
Translations /wp-admin/edit.php?post_type=g11n_translation | 3.52 | 40.41 |
Server storage [IO: ▲2.30MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- You have illegally modified 1 file (0.78KB) outside of "wp-content/plugins/tmy-globalization/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 1,162 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_g11n_lang_wg |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Translatio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,320 ▲548 | 26.48 ▲12.09 | 46.91 ▲45.06 | 35.81 ▼8.41 |
Dashboard /wp-admin | 2,373 ▲193 | 11.50 ▲5.88 | 118.74 ▲29.04 | 41.74 ▲4.38 |
Posts /wp-admin/edit.php | 2,318 ▲218 | 10.25 ▲8.23 | 80.65 ▲40.90 | 35.20 ▼6.60 |
Add New Post /wp-admin/post-new.php | 3,015 ▲1,489 | 11.71 ▼11.30 | 217.16 ▼373.04 | 67.91 ▲14.61 |
Media Library /wp-admin/upload.php | 1,602 ▲199 | 13.00 ▲8.73 | 148.21 ▲48.96 | 45.33 ▼0.20 |
Diagnosis /wp-admin/admin.php?page=tmy-support-manager | 1,058 | 9.91 | 71.25 | 39.82 |
Taxonomies /wp-admin/admin.php?page=tmy-g11n-taxonomy-menu | 1,221 | 9.96 | 65.29 | 25.40 |
Setup /wp-admin/admin.php?page=tmy-g11n-setup-menu | 2,599 | 9.93 | 66.25 | 31.31 |
Text /wp-admin/admin.php?page=tmy-g11n-text-menu | 1,260 | 9.92 | 67.65 | 28.68 |
Dashboard /wp-admin/admin.php?page=tmy-g11n-dashboard-menu | 1,023 | 9.89 | 69.65 | 26.45 |
Translations /wp-admin/edit.php?post_type=g11n_translation | 1,432 | 10.20 | 75.42 | 33.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_g11n_lang_wg
- theysaidso_admin_options
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
- > GET request to /wp-admin/admin.php?page=tmy-support-manager
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The text_direction option is deprecated for the family of bloginfo() functions. Use the is_rtl() function instead.
- > GET request to /wp-admin/admin.php?page=tmy-support-manager
- > Notice in wp-content/plugins/tmy-globalization/includes/class-tmy-g11n-translator.php+118
Undefined variable: payload
SRP 0% 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
Almost there! Just fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/tmy-globalization/admin/partials/tmy-g11n-admin-display.php
- > /wp-content/plugins/tmy-globalization/public/partials/tmy-g11n-public-display.php
- > /wp-content/plugins/tmy-globalization/trunk/admin/include/g11n-lang-list.php
- > /wp-content/plugins/tmy-globalization/trunk/public/partials/tmy-g11n-public-display.php
- > /wp-content/plugins/tmy-globalization/trunk/admin/partials/tmy-g11n-admin-display.php
- > /wp-content/plugins/tmy-globalization/admin/include/g11n-lang-list.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tmy-globalization/includes/class-tmy-g11n-widget.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/tmy-globalization/trunk/admin/include/class-tmy-g11n-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tmy-globalization/trunk/includes/class-tmy-g11n-widget.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/tmy-globalization/admin/include/class-tmy-g11n-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tmy-globalization/trunk/admin/include/class-tmy-g11n-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tmy-globalization/admin/include/class-tmy-g11n-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/tmy-globalization/admin/include/class-tmy-g11n-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/tmy-globalization/trunk/admin/include/class-tmy-g11n-table.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: localization, language, multilingual, woocommerce, translation
tmy-globalization/tmy-globalization.php 92% from 13 tests
Analyzing the main PHP file in "Translatio" version 1.9.4
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin7,289 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,661 | 1,425 | 6,890 |
SVG | 6 | 3 | 2 | 196 |
PO File | 1 | 65 | 83 | 152 |
JavaScript | 3 | 7 | 56 | 29 |
CSS | 2 | 3 | 8 | 20 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 48.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 296 | |
▷ Static methods | 4 | 1.35% |
▷ Public methods | 272 | 91.89% |
▷ Protected methods | 8 | 2.70% |
▷ Private methods | 16 | 5.41% |
Functions | 30 | |
▷ Named functions | 22 | 73.33% |
▷ Anonymous functions | 8 | 26.67% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1056 compressed PNG files occupy 0.46MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/flags/32/NL.png | 0.12KB | 0.13KB | 0.00% |
includes/flags/24/KA_GE.png | 0.13KB | 0.14KB | 0.00% |
includes/flags/32/MG.png | 0.12KB | 0.12KB | ▼ 1.61% |
trunk/includes/flags/24/MT.png | 0.23KB | 0.25KB | 0.00% |
includes/flags/32/DK.png | 0.13KB | 0.12KB | ▼ 3.13% |