Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/teral-translate/includes/functions.php+28
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.92MB] [CPU: ▼58.28ms] Passed 4 tests
A check of server-side resources used by Teral Website Translation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.53 ▼31.04 |
Dashboard /wp-admin | 2.09 ▼1.25 | 5.75 ▼53.07 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.28 ▼43.33 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 8.12 ▼105.66 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.90 ▼29.79 |
Teral Translate /wp-admin/options-general.php?page=teral-translate | 2.10 | 6.18 |
Server storage [IO: ▲8.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 164 new files
Database: no new tables, 9 new options
New WordPress options |
---|
teral_translate_config |
teral_translate_version |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
widget_tl-switcher-widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Teral Website Translation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.28 ▼1.15 | 5.44 ▲3.81 | 42.98 ▼0.03 |
Dashboard /wp-admin | 2,210 ▲25 | 5.83 ▼0.04 | 97.60 ▼2.95 | 38.14 ▼5.39 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.02 | 34.58 ▼2.88 | 36.05 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.32 ▲5.69 | 668.07 ▲73.79 | 47.12 ▲3.70 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.01 | 96.32 ▲2.03 | 41.53 ▼0.71 |
Teral Translate /wp-admin/options-general.php?page=teral-translate | 1,198 | 7.48 | 162.13 | 141.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/teral-translate/includes/src/Requirements.php+34
Accessing static property Teral\Translate\src\Requirements::$permalinkEnabled as non static
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_tl-switcher-widget
- teral_translate_version
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=teral-translate
- > Notice in wp-content/plugins/teral-translate/includes/src/Requirements.php+52
Accessing static property Teral\Translate\src\Requirements::$permalinkEnabled as non static
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=teral-translate
- > Notice in wp-content/plugins/teral-translate/includes/src/Requirements.php+61
Accessing static property Teral\Translate\src\Requirements::$configEnabled as non static
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 61× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/teral-translate/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/teral-translate/vendor/guzzlehttp/promises/src/Promise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/teral-translate/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Class 'Teral\\Translate\\Lib\\Dom\\Selector\\AbstractSelector' not found in wp-content/plugins/teral-translate/includes/Lib/Dom/Selector/Text.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/teral-translate/vendor/guzzlehttp/promises/src/FulfilledPromise.php:10
- > PHP Fatal error
Uncaught Error: Class 'Teral\\Translate\\Lib\\Dom\\Selector\\AbstractSelector' not found in wp-content/plugins/teral-translate/includes/Lib/Dom/Selector/Button.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/teral-translate/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/teral-translate/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/teral-translate/includes/Widget.php:11
- > PHP Fatal error
Uncaught Error: Class 'Teral\\Translate\\Lib\\Dom\\Selector\\AbstractSelector' not found in wp-content/plugins/teral-translate/includes/Lib/Dom/Selector/Title.php:10
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
- Contributors: Plugin contributors field is missing
teral-translate/teral-translate.php 85% from 13 tests
Analyzing the main PHP file in "Teral Website Translation" version 0.2.0
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin14,586 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 2,359 | 5,980 | 10,824 |
Markdown | 10 | 1,018 | 0 | 3,233 |
JSON | 6 | 0 | 0 | 485 |
JavaScript | 3 | 0 | 92 | 17 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 201.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 99 | |
▷ Abstract classes | 4 | 4.04% |
▷ Concrete classes | 95 | 95.96% |
▷ Final classes | 9 | 9.47% |
Methods | 834 | |
▷ Static methods | 84 | 10.07% |
▷ Public methods | 678 | 81.29% |
▷ Protected methods | 28 | 3.36% |
▷ Private methods | 128 | 15.35% |
Functions | 168 | |
▷ Named functions | 72 | 42.86% |
▷ Anonymous functions | 96 | 57.14% |
Constants | 149 | |
▷ Global constants | 24 | 16.11% |
▷ Class constants | 125 | 83.89% |
▷ Public constants | 125 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected