Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.61ms] Passed 4 tests
Server-side resources used by Zanto WP Translation (For Multisites)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.95 ▼3.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 53.21 ▲0.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.05 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.54 ▼2.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.42 ▼1.12 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 355 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Zanto WP Translation (For Multisites)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.29 ▲0.00 | 1.62 ▲0.03 | 43.92 ▲4.70 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.02 | 87.99 ▼6.62 | 41.65 ▼0.61 |
Posts /wp-admin/edit.php | 2,100 ▲21 | 2.01 ▲0.02 | 39.77 ▲5.93 | 37.22 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,537 ▲8 | 18.50 ▼4.56 | 613.82 ▲26.84 | 68.67 ▲8.06 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▲0.10 | 94.10 ▼3.33 | 40.91 ▼0.50 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 22× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/zanto/views/zwt-help-tabs.php
- > /wp-content/plugins/zanto/classes/class.zwt-wp-tax.php
- > /wp-content/plugins/zanto/menus/zwt-locale-management.php
- > /wp-content/plugins/zanto/menus/translation-network.php
- > /wp-content/plugins/zanto/classes/class.zwt-module.php
- > /wp-content/plugins/zanto/zanto.php
- > /wp-content/plugins/zanto/classes/class.zwt-widgets.php
- > /wp-content/plugins/zanto/includes/ajax.php
- > /wp-content/plugins/zanto/classes/class.zwt-mo.php
- > /wp-content/plugins/zanto/includes/notices/email-notifications.php
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function zwt_noscript_notice() in wp-content/plugins/zanto/views/zwt-meta-options.php:1
- > PHP Notice
Undefined variable: tab in wp-content/plugins/zanto/views/zwt-help-tabs.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_active_languages() on null in wp-content/plugins/zanto/classes/class.zwt-edit-languages.php:214
- > PHP Notice
Undefined variable: tab in wp-content/plugins/zanto/views/zwt-help-tabs.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/zanto/views/page-settings.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zanto/classes/class.zwt-edit-languages.php on line 214
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zanto/views/debug-information.php:3
- > PHP Notice
Trying to get property 'modules' of non-object in wp-content/plugins/zanto/classes/class.zwt-edit-languages.php on line 214
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zanto/views/zwt-help-tabs.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zanto/classes/class.zwt-browser-lang-redirect.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: multilingual, localization, language switcher, multisite, i18n...
zanto/zanto.php 92% from 13 tests
The entry point to "Zanto WP Translation (For Multisites)" version 0.3.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin14,523 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,391 | 1,164 | 7,184 |
CSS | 5 | 33 | 20 | 1,926 |
PO File | 2 | 654 | 775 | 1,862 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
JavaScript | 5 | 120 | 79 | 709 |
SVG | 1 | 0 | 0 | 504 |
XML | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 46.11 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 18 | 8.07% |
▷ Public methods | 205 | 91.93% |
▷ Protected methods | 17 | 7.62% |
▷ Private methods | 1 | 0.45% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 15 | 65.22% |
▷ Class constants | 8 | 34.78% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
259 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags/en_US.png | 0.59KB | 0.65KB | 0.00% |
images/flags/ke.png | 0.56KB | 0.69KB | 0.00% |
images/flags/ck.png | 0.57KB | 0.68KB | 0.00% |
images/flags/fk.png | 0.63KB | 0.75KB | 0.00% |
images/menu-iconz.png | 0.44KB | 0.22KB | ▼ 49.67% |