Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.77ms] Passed 4 tests
An overview of server-side resources used by SML - Simple Multilingual - Translation & Language Switcher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 37.08 ▼5.37 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.64 ▼1.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.61 ▼5.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.93 ▼15.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.11 ▲7.87 |
Simple Multilingual /wp-admin/options-general.php?page=Simple_Multilingual | 3.18 | 31.86 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SML - Simple Multilingual - Translation & Language Switcher
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲171 | 14.12 ▼0.50 | 22.05 ▲19.86 | 43.22 ▼2.97 |
Dashboard /wp-admin | 2,199 ▲22 | 5.59 ▼0.02 | 93.85 ▲6.32 | 38.27 ▼6.41 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.01 | 41.98 ▲4.91 | 34.37 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.10 ▼5.52 | 613.70 ▲3.78 | 63.50 ▲12.52 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.03 | 100.72 ▼8.55 | 43.75 ▼1.99 |
Simple Multilingual /wp-admin/options-general.php?page=Simple_Multilingual | 945 | 2.03 | 27.83 | 38.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- 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
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Simple_Multilingual
- > Notice in wp-content/plugins/sml-simple-multilingual/plugin.php+61
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: translate, language switcher, multilingual, wpml, language...
sml-simple-multilingual/plugin.php 69% from 13 tests
This is the main PHP file of "SML - Simple Multilingual - Translation & Language Switcher" version 3.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "4.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sml-simple-multilingual.php" instead of "plugin.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain should only use lowercase characters and dashes
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 plugin535 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 95 | 25 | 304 |
JavaScript | 1 | 41 | 27 | 228 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
10 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flag_tr.png | 2.06KB | 0.97KB | ▼ 53.03% |
images/flag_vi.png | 1.48KB | 0.57KB | ▼ 61.91% |
images/flag_es.png | 1.38KB | 0.45KB | ▼ 67.09% |
images/flag_de.png | 1.16KB | 0.31KB | ▼ 73.23% |
images/flag_fr.png | 1.16KB | 0.34KB | ▼ 70.56% |