Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼5.28ms] Passed 4 tests
An overview of server-side resources used by ShopMagic Multilingual Support
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 42.30 ▲4.58 |
Dashboard /wp-admin | 3.62 ▲0.31 | 48.94 ▼4.62 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 51.27 ▼2.19 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 87.30 ▼18.87 |
Media Library /wp-admin/upload.php | 3.52 ▲0.30 | 38.29 ▲5.46 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for ShopMagic Multilingual Support
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.56 ▼0.83 | 2.12 ▲0.31 | 42.15 ▼0.31 |
Dashboard /wp-admin | 2,210 ▲19 | 4.88 ▼1.02 | 108.22 ▲8.92 | 39.88 ▼9.46 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.02 | 40.04 ▼2.24 | 35.40 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,546 ▲2 | 18.60 ▲0.32 | 636.53 ▲50.29 | 53.14 ▼9.67 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.22 ▲0.01 | 100.98 ▲1.95 | 40.96 ▼2.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicMultilingualVendor\\WPDesk_Translatable' not found in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-builder/src/Plugin/SlimPlugin.php:8
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicMultilingualVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableCollection.php:5
- > PHP Fatal error
Uncaught Error: Interface 'WPDesk\\ShopMagic\\Exception\\ShopMagicException' not found in wp-content/plugins/translate-emails-woocommerce/src/Exceptions/MultilingualSupportException.php:10
- > PHP Warning
require_once(wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-notice/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-notice/init.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicMultilingualVendor\\WPDesk\\PluginBuilder\\Builder\\AbstractBuilder' not found in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/translate-emails-woocommerce/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicMultilingualVendor\\WPDesk\\PluginBuilder\\Storage\\PluginStorage' not found in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-builder/src/Storage/WordpressFilterStorage.php:11
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicMultilingualVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookablePluginDependant.php:5
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicMultilingualVendor\\WPDesk\\PluginBuilder\\Plugin\\SlimPlugin' not found in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/translate-emails-woocommerce/vendor_prefixed/psr/container/src/NotFoundExceptionInterface.php:11
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: email translation, multilingual, multilanguage, translate, wpml
translate-emails-woocommerce/translate-emails-woocommerce.php Passed 13 tests
The entry point to "ShopMagic Multilingual Support" version 1.0.10 is a PHP file that has certain tags in its header comment area
86 characters long description:
Allows creating automations with follow-up and custom emails in two or more languages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,426 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 365 | 2,072 | 4,037 |
JSON | 7 | 0 | 0 | 302 |
JavaScript | 3 | 1 | 0 | 51 |
Markdown | 2 | 5 | 0 | 25 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 23 | |
Traits | 5 | |
Classes | 39 | |
▷ Abstract classes | 5 | 12.82% |
▷ Concrete classes | 34 | 87.18% |
▷ Final classes | 6 | 17.65% |
Methods | 285 | |
▷ Static methods | 29 | 10.18% |
▷ Public methods | 258 | 90.53% |
▷ Protected methods | 8 | 2.81% |
▷ Private methods | 19 | 6.67% |
Functions | 25 | |
▷ Named functions | 15 | 60.00% |
▷ Anonymous functions | 10 | 40.00% |
Constants | 38 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 38 | 100.00% |
▷ Public constants | 38 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin