Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▲1.30ms] 75% from 4 tests
A check of server-side resources used by Translation Stats
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 620.49ms on /wp-admin/options-general.php?page=translation-stats)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 47.96 ▲0.98 |
Dashboard /wp-admin | 4.18 ▲0.88 | 56.53 ▲5.96 |
Posts /wp-admin/edit.php | 4.23 ▲0.88 | 49.85 ▲3.01 |
Add New Post /wp-admin/post-new.php | 6.70 ▲0.81 | 90.02 ▼3.91 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 41.60 ▲5.10 |
Translation Stats /wp-admin/options-general.php?page=translation-stats | 5.16 | 620.49 |
Server storage [IO: ▲0.82MB] [DB: ▲0.05MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Translation Stats
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.33 ▼0.88 | 1.88 ▼0.17 | 47.55 ▲3.07 |
Dashboard /wp-admin | 2,210 ▲25 | 4.87 ▼1.09 | 114.86 ▲14.90 | 43.36 ▲3.14 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.02 | 34.66 ▼2.88 | 35.61 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.67 ▼5.75 | 643.58 ▼34.70 | 62.70 ▼0.51 |
Media Library /wp-admin/upload.php | 1,383 ▼5 | 4.24 ▲0.01 | 99.09 ▼12.05 | 44.81 ▼3.56 |
Translation Stats /wp-admin/options-general.php?page=translation-stats | 2,320 | 2.21 | 54.21 | 47.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=translation-stats
- > Notice in wp-content/plugins/translation-stats/includes/class-settings-section-debug.php+217
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=translation-stats
- > Notice in wp-content/plugins/translation-stats/includes/class-settings-section-debug.php+217
Trying to access array offset on value of type null
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: internationalization, l10n, glotpress, i18n, localization...
translation-stats/translation-stats.php Passed 13 tests
The main PHP file in "Translation Stats" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Show plugins translation stats on your WordPress install.
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
Everything looks great! No dangerous files found in this plugin11,212 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 325 | 1,042 | 5,098 |
PHP | 32 | 1,244 | 1,766 | 4,963 |
SVG | 3 | 0 | 3 | 441 |
CSS | 2 | 101 | 7 | 395 |
PO File | 1 | 125 | 180 | 314 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 8.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 2 | 6.90% |
▷ Concrete classes | 27 | 93.10% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 28 | 22.95% |
▷ Public methods | 122 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.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
1 PNG file occupies 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-color-transparent.png | 142.22KB | 58.03KB | ▼ 59.20% |