Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/advanced-google-translate/agt-ui.php+84
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.27MB] [CPU: ▼195.67ms] Passed 4 tests
Server-side resources used by Advanced Google Translate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.36 ▲0.52 | 9.07 ▼27.24 |
Dashboard /wp-admin | 3.38 ▲0.32 | 12.31 ▼46.50 |
Posts /wp-admin/edit.php | 3.38 ▲0.27 | 9.80 ▼41.01 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.06 | 8.85 ▼666.02 |
Media Library /wp-admin/upload.php | 3.38 ▲0.38 | 8.87 ▼29.14 |
Server storage [IO: ▲4.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 143 new files
Database: no new tables, 2 new options
New WordPress options |
---|
agt_settings |
ssb_showoncpt |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Google Translate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,421 ▲1,825 | 18.66 ▲2.55 | 61.79 ▲44.89 | 77.62 ▲24.01 |
Dashboard /wp-admin | 3,015 ▲84 | 7.14 ▲1.01 | 158.60 ▼10.87 | 127.51 ▲13.38 |
Posts /wp-admin/edit.php | 2,817 ▲78 | 2.85 ▲0.15 | 84.13 ▲14.49 | 107.93 ▲16.49 |
Add New Post /wp-admin/post-new.php | 1,661 ▲46 | 22.38 ▲1.00 | 347.93 ▲51.30 | 123.30 ▲14.51 |
Media Library /wp-admin/upload.php | 1,805 ▼2 | 5.65 ▲0.65 | 158.95 ▼16.91 | 119.43 ▼7.47 |
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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/advanced-google-translate/agt-ui.php+84
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 2 options
- ssb_showoncpt
- agt_settings
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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-google-translate/advanced-google-translate.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #2 (Advanced Google Translate in action: OUT), #3 (Advanced Google Translate backend button creator), #4 (An example site using Advanced Google Translate), #5 (An example site using Advanced Google Translate), #6 (An example site using Advanced Google Translate)
- Donate link: Please fix this invalid url: ""
advanced-google-translate/advanced-google-translate.php 77% from 13 tests
The principal PHP file in "Advanced Google Translate" v. 2.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 190 characters long)
- Domain Path: The domain path should be prefixed with a forward slash character ("/")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin17,250 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 6,940 |
JavaScript | 3 | 86 | 22 | 5,428 |
CSS | 4 | 1,350 | 29 | 3,218 |
PHP | 3 | 153 | 177 | 1,664 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 484)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.88 |
Average class complexity | 476.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 936.00 |
Average method complexity | 74.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 484.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
111 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/24/yi.png | 0.57KB | 0.51KB | ▼ 11.58% |
flags/24/mt.png | 0.51KB | 0.57KB | 0.00% |
flags/24/lb.png | 0.42KB | 0.40KB | ▼ 2.82% |
flags/24/st.png | 1.51KB | 0.54KB | ▼ 64.42% |
flags/24/km.png | 0.72KB | 0.76KB | 0.00% |