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 gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼0.73ms] Passed 4 tests
Analyzing server-side resources used by Flag Icons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 66.39 ▲19.68 |
Dashboard /wp-admin | 3.66 ▲0.35 | 48.98 ▲0.53 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 53.31 ▼0.51 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 88.06 ▼10.24 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 37.71 ▲7.28 |
Flag Icons /wp-admin/options-general.php?page=my_plugin_menu_flags | 3.61 | 89.68 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Flag Icons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.28 ▼0.28 | 2.01 ▲0.19 | 36.30 ▼7.76 |
Dashboard /wp-admin | 2,201 ▲24 | 5.65 ▲0.02 | 86.02 ▼2.16 | 36.30 ▼6.04 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▲0.04 | 36.93 ▼4.25 | 30.97 ▼5.01 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 23.06 ▲0.34 | 665.30 ▲48.45 | 53.72 ▼5.68 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.21 ▲0.02 | 101.70 ▲3.89 | 44.53 ▲1.01 |
Flag Icons /wp-admin/options-general.php?page=my_plugin_menu_flags | 2,386 | 2.03 | 27.06 | 166.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
- 93× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: opt90 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
Undefined variable: opt59 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
Undefined variable: opt72 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
Undefined variable: opt83 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
Undefined variable: opt88 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
Undefined variable: opt12 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/language-icons-flags-switcher/settingsmenu.php:7
- > PHP Notice
Undefined variable: opt29 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
Undefined variable: opt5 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
Undefined variable: opt62 in wp-content/plugins/language-icons-flags-switcher/result.php on line 107
- > PHP Notice
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
language-icons-flags-switcher/functionsfile.php 92% from 13 tests
This is the main PHP file of "Flag Icons" version 2.2, 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("language-icons-flags-switcher.php" instead of "functionsfile.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin340 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 274 | 29 | 327 |
CSS | 1 | 14 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
92 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Cambodia.png | 0.39KB | 0.40KB | 0.00% |
img/Mexico.png | 0.26KB | 0.26KB | 0.00% |
img/hungary.png | 0.73KB | 1.16KB | 0.00% |
img/Luxembourg.png | 0.11KB | 0.12KB | 0.00% |
img/czech.png | 0.83KB | 1.40KB | 0.00% |