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.01MB] [CPU: ▼1.97ms] Passed 4 tests
Analyzing server-side resources used by Translate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.59 ▼2.22 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.06 ▼0.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.88 ▲1.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.45 ▼6.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.18 ▲2.46 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
wt_active |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Translate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲138 | 13.32 ▼1.43 | 3.84 ▲1.57 | 42.26 ▼7.52 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.94 | 112.61 ▼4.21 | 101.30 ▲58.33 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.05 | 35.52 ▼1.91 | 33.46 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,681 ▲167 | 22.77 ▲5.17 | 717.71 ▲14.16 | 54.58 ▲2.94 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.21 ▲0.07 | 99.93 ▼0.36 | 48.61 ▲6.50 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- wt_active
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/translatecom-website-translator/iframe.php
- > /wp-content/plugins/translatecom-website-translator/embed.php
- > /wp-content/plugins/translatecom-website-translator/plugin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
7 plugin tags: language, translator, translation, localization, multilingual...
translatecom-website-translator/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Translate" version 2.2
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("translatecom-website-translator.php" instead of "plugin.php")
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
Success! There were no dangerous files found in this plugin22,261 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 4,108 | 16,272 | 20,969 |
CSS | 3 | 163 | 34 | 537 |
HTML | 2 | 2 | 115 | 521 |
SVG | 11 | 0 | 6 | 157 |
PHP | 3 | 17 | 51 | 77 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sprite.png | 58.59KB | 18.53KB | ▼ 68.38% |
img/arrow_sans_down.png | 0.13KB | 0.14KB | 0.00% |
img/visa.png | 1.24KB | 0.92KB | ▼ 26.05% |
img/external-link.png | 0.78KB | 0.38KB | ▼ 51.32% |
img/logo.png | 0.86KB | 0.69KB | ▼ 19.68% |