Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲4.08MB] [CPU: ▲29.85ms] Passed 4 tests
Server-side resources used by WooCommerce Multilingual & Multicurrency with WPML
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.64 ▲2.18 | 58.91 ▲18.97 |
Dashboard /wp-admin | 8.06 ▲4.71 | 88.21 ▲24.34 |
Posts /wp-admin/edit.php | 8.11 ▲4.75 | 100.19 ▲52.70 |
Add New Post /wp-admin/post-new.php | 10.64 ▲4.75 | 121.65 ▲23.39 |
Media Library /wp-admin/upload.php | 7.92 ▲4.68 | 92.08 ▲56.33 |
Installer Support /wp-admin/admin.php?page=otgs-installer-support | 7.95 | 74.80 |
Server storage [IO: ▲12.52MB] [DB: ▲0.12MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2,007 new files
Database: no new tables, 9 new options
New WordPress options |
---|
otgs_installer_products_urls_version |
theysaidso_admin_options |
widget_theysaidso_widget |
otgs_installer_products_urls |
wcml_currency_switcher_template_objects |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Multilingual & Multicurrency with WPML
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.71 ▲0.52 | 1.53 ▼0.12 | 36.74 ▼5.16 |
Dashboard /wp-admin | 2,219 ▲41 | 5.67 ▼0.06 | 96.25 ▼3.12 | 43.17 ▲3.50 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 2.18 ▲0.18 | 39.96 ▲5.00 | 35.29 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 21.88 ▼1.05 | 724.12 ▲54.72 | 36.07 ▼17.67 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.39 ▲0.21 | 98.85 ▲3.24 | 41.01 ▼1.57 |
Installer Support /wp-admin/admin.php?page=otgs-installer-support | 1,038 | 2.10 | 29.53 | 33.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- otgs_installer_products_urls
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- otgs_installer_products_urls_version
Smoke tests 75% 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 50% 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
- 626× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'WPML\\Auryn\\Reflector' not found in wp-content/plugins/woocommerce-multilingual/addons/wpml-dependencies/vendor/otgs/auryn/lib/StandardReflector.php:5
- > PHP Fatal error
Uncaught Error: Interface 'WPML\\Core\\Twig\\Loader\\LoaderInterface' not found in wp-content/plugins/woocommerce-multilingual/addons/wpml-dependencies/lib/lib/twig/lib/Twig/Loader/String.php:34
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-multilingual/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WPML\\Core\\Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/woocommerce-multilingual/addons/wpml-dependencies/lib/lib/twig/src/NodeVisitor/OptimizerNodeVisitor.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-multilingual/inc/missing-php-functions.php:5
- > PHP Fatal error
Uncaught Error: Interface 'IWPML_Action' not found in wp-content/plugins/woocommerce-multilingual/compatibility/Aurum/MulticurrencyHooks.php:5
- > PHP Fatal error
Uncaught Error: Class 'WCML\\Compatibility\\ComponentFactory' not found in wp-content/plugins/woocommerce-multilingual/compatibility/Sensei/Factory.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-multilingual/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WCML\\Compatibility\\ComponentFactory' not found in wp-content/plugins/woocommerce-multilingual/compatibility/WcSwatches/Factory.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPML\\Core\\Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/woocommerce-multilingual/addons/wpml-dependencies/lib/lib/twig/src/Extension/SandboxExtension.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Currency switcher on the front-end), #2 (WooCommerce Multicurrency), #3 (Adding a currency), #4 (Adding currency switchers), #5 (Currency switcher options), #6 (Setting automatic exchange rates), #7 (Setting custom prices in different currencies), #8 (Setting custom shipping rates), #9 (WCML standalone mode)
woocommerce-multilingual/wpml-woocommerce.php 85% from 13 tests
The main file in "WooCommerce Multilingual & Multicurrency with WPML" v. 5.2.1 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-multilingual.php" instead of "wpml-woocommerce.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 214 characters long)
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 plugin99,459 lines of code in 1,746 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,192 | 16,727 | 21,264 | 68,415 |
PO File | 13 | 7,916 | 11,379 | 15,619 |
JavaScript | 102 | 966 | 229 | 3,909 |
Markdown | 7 | 2,354 | 0 | 3,185 |
Twig | 48 | 239 | 1 | 2,064 |
CSS | 37 | 85 | 1 | 1,688 |
SVG | 327 | 2 | 0 | 1,687 |
HTML | 2 | 308 | 0 | 1,367 |
JSON | 8 | 0 | 0 | 965 |
XML | 5 | 13 | 5 | 293 |
Handlebars | 3 | 25 | 0 | 178 |
make | 2 | 47 | 18 | 89 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 575.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 165 | |
Interfaces | 60 | |
Traits | 14 | |
Classes | 1,078 | |
▷ Abstract classes | 29 | 2.69% |
▷ Concrete classes | 1,049 | 97.31% |
▷ Final classes | 3 | 0.29% |
Methods | 5,195 | |
▷ Static methods | 676 | 13.01% |
▷ Public methods | 4,296 | 82.69% |
▷ Protected methods | 239 | 4.60% |
▷ Private methods | 660 | 12.70% |
Functions | 659 | |
▷ Named functions | 152 | 23.07% |
▷ Anonymous functions | 507 | 76.93% |
Constants | 371 | |
▷ Global constants | 32 | 8.63% |
▷ Class constants | 339 | 91.37% |
▷ Public constants | 339 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
133 PNG files occupy 2.45MB with 1.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/otgs/icons/plugin-icons/wpml/bpml/icon-256x256.png | 24.46KB | 10.48KB | ▼ 57.16% |
addons/wpml-dependencies/vendor/otgs/icons/plugin-icons/wpml/wcml/icon-256x256.png | 24.19KB | 10.57KB | ▼ 56.30% |
addons/wpml-dependencies/vendor/otgs/icons/plugin-icons/toolset/installer/icon-256.png | 7.59KB | 4.47KB | ▼ 41.06% |
addons/wpml-dependencies/vendor/otgs/icons/plugin-icons/toolset/support/icon-256x256.png | 7.16KB | 4.33KB | ▼ 39.47% |
vendor/otgs/icons/plugin-icons/wpml/bpml/icon-128x128.png | 10.72KB | 5.02KB | ▼ 53.21% |