Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼2.36ms] Passed 4 tests
An overview of server-side resources used by Admin bar languages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 44.11 ▼1.67 |
Dashboard /wp-admin | 3.58 ▲0.28 | 54.34 ▲1.14 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 49.14 ▼6.07 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 88.47 ▼2.82 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 41.89 ▲4.85 |
Server storage [IO: ▲0.12MB] [DB: ▲0.05MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 247 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Admin bar languages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 14.82 ▲0.38 | 1.88 ▼0.28 | 46.43 ▲1.42 |
Dashboard /wp-admin | 2,208 ▲20 | 4.87 ▼1.03 | 111.67 ▼3.10 | 44.09 ▲0.92 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 1.99 ▲0.02 | 37.17 ▼1.50 | 39.28 ▲5.87 |
Add New Post /wp-admin/post-new.php | 1,516 ▲2 | 17.83 ▲0.29 | 656.04 ▼27.33 | 56.28 ▲1.51 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.13 ▼0.11 | 102.43 ▲3.49 | 45.62 ▼2.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/admin-bar-languages/admin-bar-languages.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
admin-bar-languages/admin-bar-languages.php Passed 13 tests
"Admin bar languages" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Show flags for languages at "My sites" list in WordPress admin bar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected94 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 44 | 51 |
Markdown | 1 | 15 | 0 | 24 |
CSS | 1 | 4 | 2 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
242 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/VE.png | 0.55KB | 0.54KB | ▼ 3.00% |
flags/PH.png | 0.61KB | 0.67KB | 0.00% |
flags/AW.png | 0.33KB | 0.32KB | ▼ 2.64% |
flags/TD.png | 0.13KB | 0.12KB | ▼ 7.81% |
flags/SB.png | 0.37KB | 0.35KB | ▼ 5.74% |