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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.63ms] Passed 4 tests
Server-side resources used by SiteTran - Translate Your WordPress Site
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.12 ▲4.01 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.43 ▼0.75 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 43.80 ▼3.84 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 80.66 ▼5.73 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.53 ▲3.82 |
Server storage [IO: ▲0.50MB] [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: 16 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_sitetran_page_to_lang |
wp_sitetran_pages |
New WordPress options |
---|
widget_theysaidso_widget |
sitetran_flush_rewrite_rules |
theysaidso_admin_options |
sitetran_had_conflict |
widget_recent-comments |
sitetran_db_version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
SiteTran - Translate Your WordPress Site: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.36 ▼0.02 | 1.99 ▲0.48 | 41.38 ▲1.95 |
Dashboard /wp-admin | 2,236 ▲65 | 5.54 ▲0.02 | 83.72 ▼3.25 | 37.91 ▼0.88 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.02 ▲0.06 | 36.75 ▼0.53 | 31.97 ▼4.18 |
Add New Post /wp-admin/post-new.php | 1,557 ▲28 | 18.16 ▼4.91 | 614.74 ▼47.49 | 52.49 ▲1.60 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.25 ▲0.07 | 95.93 ▼2.65 | 41.40 ▼4.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- sitetran_had_conflict
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sitetran/translate-your-website-sitetran.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: slug in wp-content/plugins/sitetran/includes/templates/translate.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/sitetran/includes/templates/translate.php:48
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Translation Interface), #2 (Free Usage), #3 (Adding new languages), #4 (Managing translators), #5 (Monitoring translator progress), #6 (Monitoring widget usage progress)
sitetran/translate-your-website-sitetran.php 92% from 13 tests
This is the main PHP file of "SiteTran - Translate Your WordPress Site" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sitetran.php" instead of "translate-your-website-sitetran.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,220 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 446 | 481 | 1,583 |
CSS | 2 | 2 | 1 | 357 |
JavaScript | 4 | 45 | 31 | 253 |
SVG | 3 | 0 | 0 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 47.25 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 4 | 8.00% |
▷ Public methods | 48 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/check-mark.png | 4.33KB | 2.52KB | ▼ 41.85% |