Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/language-code-selector-mqtranslate/mqtranslate_langcode_selector.php+74
Methods with the same name as their class will not be constructors in a future version of PHP; mqTranslateLangCodeWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.29ms] Passed 4 tests
This is a short check of server-side resources used by mqtranslate langcode widget selector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 3.86 ▼31.02 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.40 ▼45.06 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 7.24 ▼44.15 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.87 ▼95.62 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 5.60 ▼32.33 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_mqtranslate_langcode_selector |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by mqtranslate langcode widget selector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.65 ▼0.66 | 1.93 ▲0.04 | 39.28 ▼5.91 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼1.03 | 108.48 ▲3.78 | 44.10 ▲2.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.13 ▲0.10 | 39.34 ▼4.60 | 38.55 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.40 ▲0.37 | 634.46 ▲24.21 | 59.01 ▲5.95 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.09 | 95.85 ▼3.77 | 41.68 ▼1.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/language-code-selector-mqtranslate/mqtranslate_langcode_selector.php+74
Methods with the same name as their class will not be constructors in a future version of PHP; mqTranslateLangCodeWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_mqtranslate_langcode_selector
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/language-code-selector-mqtranslate/mqtranslate_langcode_selector.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== language-code-selector-mqtranslate ===
)
language-code-selector-mqtranslate/mqtranslate_langcode_selector.php 92% from 13 tests
"mqtranslate langcode widget selector" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("language-code-selector-mqtranslate.php" instead of "mqtranslate_langcode_selector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected69 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 26 | 69 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin