Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲7.37ms] Passed 4 tests
Analyzing server-side resources used by My WP Translate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 49.10 ▲10.57 |
Dashboard /wp-admin | 3.35 ▲0.00 | 53.08 ▼6.64 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.71 ▲9.38 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 115.97 ▲17.07 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 52.09 ▲16.16 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
mtswpt_translations |
theysaidso_admin_options |
mtswpt_domains |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
My WP Translate: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲70 | 13.17 ▼1.18 | 2.07 ▲0.19 | 42.65 ▲1.24 |
Dashboard /wp-admin | 2,222 ▲34 | 4.91 ▼0.04 | 100.90 ▲1.67 | 37.76 ▼5.37 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.08 | 33.35 ▼3.40 | 32.58 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 22.94 ▼0.36 | 653.68 ▼19.68 | 53.80 ▼10.50 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.28 ▲0.10 | 114.37 ▲10.31 | 47.41 ▲4.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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration Passed 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
8 plugin tags: translate, theme translate, translator, wordpress translator, theme translator...
my-wp-translate/my-wp-translate.php Passed 13 tests
"My WP Translate" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
Simple yet powerful Translate plugin for WordPress. Can be used with most of the themes and plugins which support translation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,569 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 394 | 719 | 1,177 |
JavaScript | 1 | 103 | 12 | 335 |
CSS | 1 | 0 | 4 | 57 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 45 | 84.91% |
▷ Protected methods | 4 | 7.55% |
▷ Private methods | 4 | 7.55% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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