Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.46ms] Passed 4 tests
Analyzing server-side resources used by Magic Post Translate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 37.74 ▼13.56 |
Dashboard /wp-admin | 3.47 ▲0.16 | 50.19 ▼0.66 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.65 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 92.75 ▼2.59 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.64 ▲1.61 |
Settings /wp-admin/admin.php?page=magic_post_translate/inc/admin/langs.php | 3.37 | 33.37 |
Magic Post Translate /wp-admin/admin.php?page=magic_post_translate/inc/admin/main.php | 3.37 | 37.63 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
magic_post_translate_plugin_main_settings |
magic_post_translate_plugin_langs_settings |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Magic Post Translate
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 14.41 ▲0.36 | 2.31 ▼0.05 | 42.81 ▲1.08 |
Dashboard /wp-admin | 2,222 ▲37 | 5.83 ▼0.03 | 130.58 ▲12.55 | 41.10 ▼0.00 |
Posts /wp-admin/edit.php | 2,179 ▲108 | 2.17 ▲0.19 | 37.00 ▼6.27 | 29.63 ▼10.20 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,726 | 25.98 ▲2.98 | 938.90 ▲277.53 | 69.83 ▲8.10 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.20 ▼0.18 | 103.70 ▼29.30 | 44.89 ▼3.93 |
Settings /wp-admin/admin.php?page=magic_post_translate/inc/admin/langs.php | 965 | 2.15 | 25.34 | 30.95 |
Magic Post Translate /wp-admin/admin.php?page=magic_post_translate/inc/admin/main.php | 839 | 2.06 | 29.39 | 30.46 |
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
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- magic_post_translate_plugin_main_settings
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- magic_post_translate_plugin_langs_settings
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magic_post_translate/inc/admin/main.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magic_post_translate/inc/admin/main.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magic_post_translate/inc/admin/main.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magic_post_translate/inc/admin/main.php
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Automatic Generation), #2 (Settings), #3 (Set generation for chosen posts), #4 (Change "translated" field if you want to translate it again), #5 ("Generate translation" into categories)
magic-post-translate/magic-post-translate.php 92% from 13 tests
The main file in "Magic Post Translate" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,245 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 167 | 56 | 659 |
CSS | 2 | 44 | 44 | 413 |
PO File | 1 | 44 | 47 | 100 |
JavaScript | 2 | 10 | 5 | 73 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 80.00 |
▷ Minimum class complexity | 80.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
screenshot-2.png | 26.01KB | 11.86KB | ▼ 54.41% |
assets/js/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/js/jquery-ui/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/js/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |