Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.97MB] [CPU: ▲3.95ms] Passed 4 tests
Server-side resources used by Autoglot - Automatic Wordpress Translation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.43 ▲0.96 | 45.36 ▲2.82 |
Dashboard /wp-admin | 4.29 ▲0.94 | 58.81 ▼4.39 |
Posts /wp-admin/edit.php | 4.34 ▲0.98 | 63.10 ▲15.96 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.00 | 95.07 ▲1.39 |
Media Library /wp-admin/upload.php | 4.21 ▲0.98 | 52.54 ▲18.81 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_autoglot_translations |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
autoglot_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Autoglot - Automatic Wordpress Translation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.30 ▲0.03 | 1.66 ▼0.06 | 37.59 ▼6.94 |
Dashboard /wp-admin | 2,232 ▲55 | 5.64 ▲0.04 | 97.31 ▼6.70 | 41.85 ▼6.21 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.02 ▲0.05 | 41.85 ▲3.19 | 34.90 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,545 ▲9 | 23.30 ▲0.15 | 607.20 ▼27.28 | 56.60 ▼7.07 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.22 ▲0.04 | 96.46 ▲0.81 | 42.33 ▲0.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_autoglot_translations
- This plugin did not uninstall successfully, leaving 7 options in the database
- autoglot_db_version
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoglot/admin/partials/display_setup.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoglot/admin/partials/display_utilities.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoglot/admin/partials/display_settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoglot/admin/partials/display_dashboard.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
autoglot/autoglot.php Passed 13 tests
The main file in "Autoglot - Automatic Wordpress Translation" v. 1.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
Autoglot Wordpress Translation Plugin - fully automatic SEO-friendly plugin for multilingual Wordpress translation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin11,866 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 1,637 | 3,282 | 6,877 |
PHP | 16 | 688 | 1,042 | 3,397 |
CSS | 4 | 230 | 15 | 1,493 |
JavaScript | 2 | 33 | 49 | 99 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 59.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 212.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 24 | 16.11% |
▷ Public methods | 144 | 96.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.36% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 60 | |
▷ Global constants | 53 | 88.33% |
▷ Class constants | 7 | 11.67% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.33MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/img/flags_sprites.png | 215.12KB | 60.99KB | ▼ 71.65% |
front/img/smallflags_sprites.png | 118.60KB | 29.30KB | ▼ 75.30% |