Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.25ms] Passed 4 tests
Server-side resources used by iPROS24 Google Translate widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.70 ▼7.40 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.80 ▼5.95 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.52 ▲4.17 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.48 ▼11.83 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.07 ▲8.74 |
Google Translate /wp-admin/options-general.php?page=ipros24-google-translate-options-page | 3.26 | 38.66 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_ipros24_google_translate_widget |
ipros24-google-translate-options-wordpress |
db_upgraded |
widget_theysaidso_widget |
ipros24-google-translate-options |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for iPROS24 Google Translate widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲192 | 13.80 ▼0.87 | 11.28 ▲9.29 | 40.76 ▼2.15 |
Dashboard /wp-admin | 2,215 ▲24 | 4.86 ▼0.04 | 99.04 ▼4.20 | 39.94 ▼2.08 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.06 | 39.93 ▼2.72 | 34.86 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.28 ▲0.31 | 636.23 ▼26.31 | 58.65 ▲1.08 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.24 ▲0.03 | 93.87 ▼5.41 | 42.58 ▼1.09 |
Google Translate /wp-admin/options-general.php?page=ipros24-google-translate-options-page | 917 | 2.07 | 23.12 | 31.82 |
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
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- ipros24-google-translate-options-wordpress
- can_compress_scripts
- widget_theysaidso_widget
- ipros24-google-translate-options
- widget_ipros24_google_translate_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_is_mobile() in wp-content/plugins/ipros24-google-translate-widget/assets/php/utils.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Google Translate widget with flags.), #2 (Plugin settings.), #3 (Widget settings.)
ipros24-google-translate-widget/ipros24-google-translate.php 85% from 13 tests
"iPROS24 Google Translate widget" version 1.12.2'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:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("ipros24-google-translate-widget.php" instead of "ipros24-google-translate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,623 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 405 | 31 | 1,023 |
JavaScript | 2 | 187 | 16 | 292 |
CSS | 6 | 42 | 2 | 209 |
PO File | 1 | 45 | 46 | 99 |
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.69 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 52 | |
▷ Static methods | 15 | 28.85% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.34MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/attribution/white-short.png | 1.69KB | 1.77KB | 0.00% |
assets/images/attribution/white-regular.png | 2.43KB | 2.28KB | ▼ 6.11% |
screenshot-2.png | 83.81KB | 32.57KB | ▼ 61.14% |
assets/images/attribution/greyscale-short.png | 1.89KB | 1.85KB | ▼ 1.76% |
screenshot-3.png | 35.95KB | 11.23KB | ▼ 68.77% |