Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼2.38ms] Passed 4 tests
A check of server-side resources used by Language Translator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 39.55 ▼1.33 |
Dashboard /wp-admin | 3.85 ▲0.51 | 49.75 ▼8.76 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 49.00 ▲6.21 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 83.51 ▼5.49 |
Media Library /wp-admin/upload.php | 3.85 ▲0.63 | 38.03 ▲6.05 |
Language Translator /wp-admin/options-general.php?page=thinker_language_translator | 3.85 | 33.91 |
Server storage [IO: ▲4.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 760 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
thinker_translator_cache_wp_footer |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
thinker_translator_cache_shortcode |
thinker_translator_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Language Translator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 14.11 ▼0.26 | 6.24 ▲4.38 | 41.44 ▼2.37 |
Dashboard /wp-admin | 2,238 ▲53 | 5.13 ▼0.68 | 118.31 ▲17.57 | 43.87 ▲0.67 |
Posts /wp-admin/edit.php | 2,117 ▲31 | 2.31 ▲0.26 | 35.82 ▼2.10 | 34.94 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.28 ▲0.13 | 693.40 ▲12.58 | 36.98 ▼17.73 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.43 ▲0.22 | 96.43 ▼6.22 | 43.28 ▼3.48 |
Language Translator /wp-admin/options-general.php?page=thinker_language_translator | 5,699 | 2.75 | 57.56 | 72.64 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=thinker_language_translator
- > Network (severe)
wp-content/plugins/thinker-language-translator/admin/custom-script.js?ver=1.0.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Requires at least: Invalid version format
thinker-language-translator/thinker-language-translator.php Passed 13 tests
The entry point to "Language Translator" version 1.0.2 is a PHP file that has certain tags in its header comment area
62 characters long description:
Add a highly customizable language translator to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin27,152 lines of code in 373 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 353 | 1 | 28 | 22,945 |
PHP | 12 | 371 | 857 | 2,463 |
CSS | 4 | 22 | 36 | 1,471 |
JavaScript | 4 | 29 | 88 | 273 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.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 | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
364 PNG files occupy 0.62MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/l/ig.png | 0.95KB | 0.55KB | ▼ 42.15% |
public/css/n/so.png | 0.87KB | 0.51KB | ▼ 41.61% |
public/css/n/ec.png | 6.30KB | 2.90KB | ▼ 53.94% |
public/css/n/td.png | 0.33KB | 0.17KB | ▼ 48.68% |
public/css/n/pr.png | 1.58KB | 0.85KB | ▼ 46.17% |