Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲11.38MB] [CPU: ▲117.69ms] 50% from 4 tests
An overview of server-side resources used by Elia
It is recommended to improve the following
- RAM: Total memory usage should be kept under 10MB (currently 16.72MB on /wp-admin/admin.php?page=itzultzailea/menu/support.php)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 11.38MB on /wp-admin/admin.php?page=itzultzailea/menu/support.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.43 ▲7.97 | 125.92 ▲83.28 |
Dashboard /wp-admin | 16.59 ▲13.29 | 180.60 ▲116.02 |
Posts /wp-admin/edit.php | 16.51 ▲13.15 | 200.91 ▲151.70 |
Add New Post /wp-admin/post-new.php | 17.02 ▲11.14 | 296.10 ▲199.07 |
Media Library /wp-admin/upload.php | 16.50 ▲13.27 | 155.99 ▲119.77 |
Troubleshooting /wp-admin/admin.php?page=itzultzailea/menu/troubleshooting.php | 13.46 | 140.24 |
Debug information /wp-admin/admin.php?page=itzultzailea/menu/debug-information.php | 16.49 | 400.27 |
Setup /wp-admin/admin.php?page=itzultzailea/menu/setup.php | 16.49 | 184.62 |
Installer Support /wp-admin/admin.php?page=otgs-installer-support | 16.71 | 146.14 |
Support /wp-admin/admin.php?page=itzultzailea/menu/support.php | 16.72 | 186.29 |
Server storage [IO: ▲31.73MB] [DB: ▲0.38MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Filesystem usage must be lower than 25MB (currently using 31.73MB)
Filesystem: 4,126 new files
Database: 18 new tables, 18 new options
New tables |
---|
wp_icl_flags |
wp_icl_translate |
wp_icl_translation_batches |
wp_icl_translate_job |
wp_icl_core_status |
wp_icl_message_status |
wp_icl_node |
wp_icl_locale_map |
wp_icl_string_translations |
wp_icl_strings |
... |
New WordPress options |
---|
WPML_Group_Keys |
icl_sitepress_settings |
wpml_dependencies:installed_plugins |
theysaidso_admin_options |
wpml_dependencies:valid_plugins |
wpml_dependencies:invalid_plugins |
widget_recent-posts |
widget_theysaidso_widget |
wpml_language_switcher |
wpml_language_switcher_template_objects |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Elia
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲139 | 14.07 ▼0.55 | 3.04 ▲1.14 | 38.93 ▼4.81 |
Dashboard /wp-admin | 2,275 ▲87 | 5.54 ▲0.49 | 122.10 ▲12.50 | 101.28 ▲57.89 |
Posts /wp-admin/edit.php | 2,217 ▲125 | 2.48 ▲0.46 | 65.75 ▲27.36 | 66.25 ▲25.80 |
Add New Post /wp-admin/post-new.php | 1,622 ▲103 | 21.22 ▼1.86 | 751.12 ▲83.44 | 114.65 ▲57.59 |
Media Library /wp-admin/upload.php | 1,468 ▲83 | 4.75 ▲0.57 | 113.72 ▲10.81 | 81.83 ▲38.89 |
Troubleshooting /wp-admin/admin.php?page=itzultzailea/menu/troubleshooting.php | 969 | 2.48 | 36.38 | 36.06 |
Debug information /wp-admin/admin.php?page=itzultzailea/menu/debug-information.php | 876 | 2.23 | 35.75 | 29.33 |
Setup /wp-admin/admin.php?page=itzultzailea/menu/setup.php | 1,203 | 7.98 | 184.52 | 77.45 |
Installer Support /wp-admin/admin.php?page=otgs-installer-support | 1,096 | 2.25 | 35.02 | 34.01 |
Support /wp-admin/admin.php?page=itzultzailea/menu/support.php | 1,186 | 2.25 | 36.56 | 38.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.29MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 18 tables in the database
- wp_icl_string_positions
- wp_icl_languages_translations
- wp_icl_translation_status
- wp_icl_translate
- wp_icl_reminders
- wp_icl_translation_batches
- wp_icl_translate_job
- wp_icl_flags
- wp_icl_node
- wp_icl_message_status
- ...
- Zombie WordPress options were found after uninstall: 17 options
- widget_recent-posts
- icl_sitepress_version
- wpml_language_switcher
- WPML_Group_Keys
- wpml_dependencies:valid_plugins
- wpml_dependencies:expected_versions
- wpml_dependencies:installed_plugins
- widget_theysaidso_widget
- icl_sitepress_settings
- WPML(setup)
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/itzultzailea/sitepress.php
- 1337× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPML_Name_Query_Filter' not found in wp-content/plugins/itzultzailea/inc/query-filtering/wpml-name-query-filter-translated.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPML\\TranslationRoles\\Remove' not found in wp-content/plugins/itzultzailea/classes/translation-roles/endpoints/RemoveManager.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/itzultzailea/inc/upgrade-functions/upgrade-2.0.0.php:252
- > PHP Fatal error
Uncaught Error: Class 'WPML\\Core\\Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/itzultzailea/lib/twig/src/TokenParser/DeprecatedTokenParser.php:25
- > PHP Warning
Use of undefined constant WPML_TM_PATH - assumed 'WPML_TM_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/itzultzailea/inc/translation-jobs/jobs/wpml-element-translation-job.class.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WPML_Elementor_Media_Node' not found in wp-content/plugins/itzultzailea/addons/wpml-page-builders/classes/Integrations/Elementor/media/modules/VideoPlaylist.php:8
- > PHP Fatal error
Uncaught Error: Interface 'IWPML_Backend_Action_Loader' not found in wp-content/plugins/itzultzailea/classes/privacy/class-wpml-tm-privacy-content-factory.php:6
- > PHP Warning
require(wp-content/plugins/itzultzailea/vendor/otgs/auryn/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/itzultzailea/vendor/otgs/auryn/examples/delegate_params.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WPML_SP_User' not found in wp-content/plugins/itzultzailea/classes/menu/translation-editor/class-wpml-translation-editor-languages.php:3
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/itzultzailea/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Setup configuration: Elia's credentials and language configuration screenshot1.(png).), #2 (Translate a post to diferent languages screenshot2. (png).), #3 (Translate the post to the selected language with machine translation screenshot3.(png).)
itzultzailea/sitepress.php 85% from 13 tests
The primary PHP file in "Elia" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 346 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("itzultzailea.php" instead of "sitepress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin310,478 lines of code in 3,458 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,569 | 35,036 | 52,281 | 180,084 |
JavaScript | 177 | 3,944 | 1,617 | 70,994 |
JSON | 333 | 0 | 0 | 32,882 |
PO File | 86 | 8,214 | 12,650 | 14,404 |
Markdown | 12 | 2,502 | 0 | 3,481 |
Twig | 129 | 439 | 1 | 3,438 |
CSS | 73 | 347 | 22 | 2,660 |
SVG | 38 | 1 | 0 | 1,242 |
HTML | 33 | 39 | 0 | 677 |
XSD | 1 | 44 | 33 | 336 |
XML | 5 | 15 | 192 | 191 |
make | 2 | 47 | 18 | 89 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 621.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 200 | |
Interfaces | 97 | |
Traits | 6 | |
Classes | 2,328 | |
▷ Abstract classes | 110 | 4.73% |
▷ Concrete classes | 2,218 | 95.27% |
▷ Final classes | 6 | 0.27% |
Methods | 11,545 | |
▷ Static methods | 1,285 | 11.13% |
▷ Public methods | 8,367 | 72.47% |
▷ Protected methods | 696 | 6.03% |
▷ Private methods | 2,482 | 21.50% |
Functions | 1,103 | |
▷ Named functions | 488 | 44.24% |
▷ Anonymous functions | 615 | 55.76% |
Constants | 1,305 | |
▷ Global constants | 205 | 15.71% |
▷ Class constants | 1,100 | 84.29% |
▷ Public constants | 1,100 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
391 PNG files occupy 0.88MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/flags/gn.png | 0.24KB | 0.21KB | ▼ 12.90% |
res/flags/tj.png | 0.33KB | 0.31KB | ▼ 6.73% |
res/flags/na.png | 0.57KB | 0.47KB | ▼ 17.59% |
res/img/recommendations/gravityforms.png | 4.81KB | 2.14KB | ▼ 55.49% |
res/flags/bd.png | 0.37KB | 0.30KB | ▼ 19.15% |