Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▲1.67ms] Passed 4 tests
Analyzing server-side resources used by Rozetta Translator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 43.04 ▼0.80 |
Dashboard /wp-admin | 3.57 ▲0.27 | 49.95 ▲3.46 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.63 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 95.87 ▲13.59 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.78 ▲2.61 |
Setting /wp-admin/admin.php?page=rozetta-translator | 3.45 | 32.63 |
Multilingual /wp-admin/admin.php?page=rozetta-multilingual | 3.46 | 33.94 |
Custom Post Type /wp-admin/admin.php?page=rozetta-translator-custom-post-type-setting | 3.45 | 31.97 |
Custom Menu CSS /wp-admin/admin.php?page=rozetta-translator-custom-menu-css | 3.45 | 33.84 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Rozetta Translator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.67 ▲0.40 | 1.72 ▲0.17 | 43.43 ▲0.35 |
Dashboard /wp-admin | 2,232 ▲54 | 5.58 ▼0.09 | 93.44 ▼23.27 | 43.38 ▲0.66 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 1.97 ▲0.03 | 39.56 ▼5.74 | 35.39 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 24.82 ▲1.97 | 728.40 ▲7.56 | 63.12 ▲11.35 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.14 ▼0.06 | 97.42 ▼8.89 | 44.33 ▲0.97 |
Setting /wp-admin/admin.php?page=rozetta-translator | 841 | 2.15 | 23.84 | 26.82 |
Multilingual /wp-admin/admin.php?page=rozetta-multilingual | 841 | 2.01 | 26.18 | 26.36 |
Custom Post Type /wp-admin/admin.php?page=rozetta-translator-custom-post-type-setting | 820 | 2.00 | 25.46 | 27.25 |
Custom Menu CSS /wp-admin/admin.php?page=rozetta-translator-custom-menu-css | 828 | 2.00 | 23.42 | 26.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rozetta-translator/includes/widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rozetta-translator/admin/includes/editor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rozetta-translator/admin/admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rozetta-translator/includes/function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rozetta-translator/admin/admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rozetta-translator/admin/includes/api.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rozetta-translator/admin/includes/post.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Enter your access key, secret key and contract ID.), #2 (Select professional fields and languages in editor.), #3 (Start and wait for the translation to complete, the post content will be substituted with the translated text.)
rozetta-translator/rozetta-translator.php 92% from 13 tests
Analyzing the main PHP file in "Rozetta Translator" version 1.1.1
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.7")
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
Good job! No executable or dangerous file extensions detected2,083 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 145 | 61 | 1,209 |
JavaScript | 5 | 39 | 11 | 425 |
PO File | 1 | 139 | 36 | 291 |
JSON | 1 | 1 | 0 | 126 |
CSS | 1 | 8 | 0 | 32 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 16 | 66.67% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 27 | 81.82% |
▷ Anonymous functions | 6 | 18.18% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 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
There are no PNG files in this plugin