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.55MB] [CPU: ▼1.85ms] Passed 4 tests
A check of server-side resources used by Translate Wordpress with GTranslate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 41.90 ▲0.72 |
Dashboard /wp-admin | 3.87 ▲0.52 | 53.62 ▼9.28 |
Posts /wp-admin/edit.php | 3.99 ▲0.62 | 54.98 ▲6.72 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 94.53 ▼1.51 |
Media Library /wp-admin/upload.php | 3.80 ▲0.56 | 37.73 ▲2.67 |
GTranslate /wp-admin/options-general.php?page=gtranslate_options | 3.79 | 36.96 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 578 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
gtranslate_admin_notice |
widget_theysaidso_widget |
theysaidso_admin_options |
GTranslate |
widget_gtranslate |
Browser metrics Passed 4 tests
A check of browser resources used by Translate Wordpress with GTranslate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.72 ▲0.37 | 1.69 ▼0.01 | 37.03 ▼6.96 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.06 | 94.37 ▲2.17 | 43.01 ▼0.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.09 | 39.51 ▲0.03 | 36.04 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 25.10 ▲2.39 | 589.36 ▲5.21 | 85.11 ▲34.33 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.14 ▼0.01 | 95.40 ▼3.36 | 41.57 ▼0.40 |
GTranslate /wp-admin/options-general.php?page=gtranslate_options | 5,737 | 7.20 | 308.53 | 65.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- gtranslate_admin_notice
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_gtranslate
- theysaidso_admin_options
- GTranslate
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gtranslate/gtranslate.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gtranslate/gtranslate.php 92% from 13 tests
"Translate Wordpress with GTranslate" version 3.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,517 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 471 | 250 | 2,494 |
JavaScript | 12 | 380 | 10 | 1,837 |
SVG | 95 | 0 | 0 | 130 |
CSS | 1 | 0 | 0 | 56 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 95.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 9.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 19 | 57.58% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
444 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/16/pt.png | 0.58KB | 0.63KB | 0.00% |
flags/48/gd.png | 2.38KB | 1.65KB | ▼ 30.73% |
flags/16/en-ca.png | 0.56KB | 0.54KB | ▼ 3.86% |
flags/48/nl.png | 0.62KB | 0.61KB | ▼ 2.36% |
flags/32/es-co.png | 0.50KB | 0.59KB | 0.00% |