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
Install script ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼2.11ms] Passed 4 tests
Analyzing server-side resources used by DeepL API translation plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.69 ▼6.68 |
Dashboard /wp-admin | 4.06 ▲0.75 | 53.71 ▲1.69 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 52.55 ▲2.83 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.77 | 95.99 ▼6.29 |
Media Library /wp-admin/upload.php | 3.98 ▲0.74 | 41.41 ▲7.81 |
DeepL translation /wp-admin/options-general.php?page=deepl_settings | 3.89 | 35.79 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 14 new options
New WordPress options |
---|
wpdeepl_metabox_post_types |
wpdeepl_tpost_title |
wpdeepl_tpost_content |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
deepl_plugin_installed |
widget_theysaidso_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for DeepL API translation plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.67 ▲0.31 | 1.67 ▲0.04 | 38.91 ▼4.90 |
Dashboard /wp-admin | 2,199 ▲24 | 5.62 ▼0.04 | 94.09 ▼16.85 | 42.88 ▼2.54 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.06 ▲0.09 | 41.05 ▲0.98 | 36.73 ▲0.97 |
Add New Post /wp-admin/post-new.php | 6,227 ▲4,701 | 26.11 ▲2.84 | 817.16 ▲152.07 | 58.27 ▲1.43 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.18 ▼0.03 | 99.07 ▼0.95 | 43.01 ▼1.09 |
DeepL translation /wp-admin/options-general.php?page=deepl_settings | 897 | 1.69 | 25.62 | 28.38 |
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
- This plugin did not uninstall successfully, leaving 14 options in the database
- wpdeepl_metabox_context
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- deepl_plugin_installed
- db_upgraded
- wpdeepl_metabox_post_types
- widget_theysaidso_widget
- theysaidso_admin_options
- wpdeepl_tpost_title
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'DeepLApi' not found in wp-content/plugins/wpdeepl/client/deeplapi-translate.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdeepl/modules/deepl-translate-post.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdeepl/admin/deepl-admin-hooks.php:3
- > PHP Fatal error
Uncaught Error: Class 'DeepLApi' not found in wp-content/plugins/wpdeepl/client/deeplapi-usage.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'DeepLData' not found in wp-content/plugins/wpdeepl/client/deeplapi.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpdeepl/wpdeepl.php:18
- > PHP Fatal error
Uncaught Error: Class 'DeepLApi' not found in wp-content/plugins/wpdeepl/client/deeplapi-glossary.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: translation, post
wpdeepl/wpdeepl.php 92% from 13 tests
"DeepL API translation plugin" version 2.4.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.1" instead of "4.0.0")
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 plugin3,847 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 798 | 737 | 3,273 |
PO File | 1 | 103 | 167 | 285 |
CSS | 1 | 15 | 4 | 148 |
SVG | 1 | 0 | 0 | 121 |
JavaScript | 1 | 5 | 0 | 19 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 41.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 2 | 20.00% |
▷ Concrete classes | 8 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 31 | 19.50% |
▷ Public methods | 143 | 89.94% |
▷ Protected methods | 15 | 9.43% |
▷ Private methods | 1 | 0.63% |
Functions | 39 | |
▷ Named functions | 36 | 92.31% |
▷ Anonymous functions | 3 | 7.69% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 2.96KB | 2.02KB | ▼ 31.94% |
assets/screenshot-1.png | 25.78KB | 25.10KB | ▼ 2.63% |
assets/icon-256x256.png | 4.13KB | 1.51KB | ▼ 63.47% |