Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.89MB] [CPU: ▲5.08ms] Passed 4 tests
A check of server-side resources used by Language Translate Widget for WordPress - ConveyThis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.92 | 42.12 ▲3.06 |
Dashboard /wp-admin | 4.24 ▲0.93 | 54.19 ▲4.97 |
Posts /wp-admin/edit.php | 4.29 ▲0.93 | 54.79 ▲8.20 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 102.21 ▲4.42 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 42.16 ▲7.87 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 46 new options
New WordPress options |
---|
auto_translate |
style_selector_id |
conveythis_new_user |
no_translate_element_id |
style_change_flag |
widget_recent-posts |
target_languages_translations |
conveythis_system_links |
style_corner_type |
style_indenting_vertical |
... |
Browser metrics Passed 4 tests
Language Translate Widget for WordPress - ConveyThis: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲135 | 14.14 ▼0.57 | 1.54 ▼0.35 | 37.94 ▼6.34 |
Dashboard /wp-admin | 2,299 ▲125 | 5.62 ▼0.05 | 97.90 ▼0.01 | 43.00 ▼1.73 |
Posts /wp-admin/edit.php | 2,203 ▲103 | 2.04 ▲0.08 | 40.30 ▲4.48 | 37.61 ▲5.23 |
Add New Post /wp-admin/post-new.php | 1,539 ▲121 | 23.14 ▲5.32 | 632.88 ▼0.94 | 51.15 ▼2.14 |
Media Library /wp-admin/upload.php | 1,507 ▲107 | 4.23 ▼0.14 | 108.47 ▲10.89 | 44.04 ▲0.01 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_conveythis
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/conveythis-translate/app/views/auth/login.php
- > /wp-content/plugins/conveythis-translate/app/views/signup-modal.php
- > /wp-content/plugins/conveythis-translate/app/views/auth/signup-modal.php
- > /wp-content/plugins/conveythis-translate/endpoint.php
- > /wp-content/plugins/conveythis-translate/app/views/layout/loader.php
- > /wp-content/plugins/conveythis-translate/app/views/cache.php
- > /wp-content/plugins/conveythis-translate/app/views/login.php
- 51× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant CONVEY_PLUGIN_PATH - assumed 'CONVEY_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/conveythis-translate/app/views/auth/congratulations.php on line 43
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/conveythis-translate/app/views/page/general-settings.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/conveythis-translate/app/views/general-settings.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/conveythis-translate/app/class/ConveyThisWidget.php:4
- > PHP Warning
Use of undefined constant CONVEY_PLUGIN_PATH - assumed 'CONVEY_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/conveythis-translate/app/views/auth/congratulations.php on line 35
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/conveythis-translate/app/templates/posttype-conveythis-languages.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/conveythis-translate/app/views/layout/widget.php:5
- > PHP Warning
Use of undefined constant CONVEYTHIS_PLUGIN_VERSION - assumed 'CONVEYTHIS_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/conveythis-translate/app/views/layout/loader.php on line 41
- > PHP Warning
Use of undefined constant CONVEY_PLUGIN_PATH - assumed 'CONVEY_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/conveythis-translate/app/views/layout/loader.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/conveythis-translate/app/views/auth/languages.php:3
- > PHP Warning
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 Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: translators, language, translate, translator, languages
conveythis-translate/index.php 77% from 13 tests
The primary PHP file in "Language Translate Widget for WordPress - ConveyThis" version 199... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("conveythis-translate.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 227 characters long)
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "199...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin13,328 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 1,349 | 138 | 6,294 |
JavaScript | 12 | 433 | 127 | 5,882 |
CSS | 10 | 172 | 59 | 1,137 |
SVG | 2 | 0 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 108.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 505.00 |
Average method complexity | 5.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 20 | 18.18% |
▷ Public methods | 99 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 10.00% |
Functions | 32 | |
▷ Named functions | 1 | 3.12% |
▷ Anonymous functions | 31 | 96.88% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.30MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/widget/images/logo-3-md.png | 226.62KB | 74.35KB | ▼ 67.19% |
app/widget/images/logo-convey.png | 4.15KB | 1.70KB | ▼ 59.05% |
app/widget/images/logo-conveythis_small.png | 5.41KB | 5.58KB | 0.00% |
app/widget/images/close_grey.png | 0.52KB | 0.34KB | ▼ 34.78% |
app/widget/images/conveythis-logo-vertical-blue.png | 3.23KB | 1.42KB | ▼ 56.18% |