Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.31ms] Passed 4 tests
An overview of server-side resources used by Sublanguage Switcher Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.67 ▼1.60 |
Dashboard /wp-admin | 3.47 ▲0.17 | 47.43 ▼4.56 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.62 ▲3.80 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 87.70 ▼13.73 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.91 ▼1.36 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 251 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_sublanguage_switcher_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sublanguage Switcher Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.21 ▼1.38 | 1.80 ▼0.20 | 39.23 ▼3.84 |
Dashboard /wp-admin | 2,200 ▲12 | 5.84 ▲0.01 | 100.18 ▼17.42 | 37.83 ▼8.83 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 40.45 ▲3.46 | 35.68 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,519 ▼24 | 23.14 ▲4.92 | 607.93 ▼68.36 | 55.53 ▼2.78 |
Media Library /wp-admin/upload.php | 1,379 ▼12 | 4.19 ▼0.09 | 99.24 ▼2.94 | 42.81 ▲0.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_sublanguage_switcher_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sublanguage-switcher-widget/sublanguage-switcher-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: language, translation, widget, multilingual, multilanguage
sublanguage-switcher-widget/sublanguage-switcher-widget.php 85% from 13 tests
The entry point to "Sublanguage Switcher Widget" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- 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
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,276 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 75 | 107 | 1,276 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 5.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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 | 3 | |
▷ Global constants | 3 | 100.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
248 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/lk.png | 0.61KB | 0.72KB | 0.00% |
flags/fo.png | 0.46KB | 0.54KB | 0.00% |
flags/us.png | 0.59KB | 0.65KB | 0.00% |
flags/cs.png | 0.43KB | 0.65KB | 0.00% |
flags/cd.png | 0.52KB | 0.58KB | 0.00% |