Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼5.87MB] [CPU: ▼2,126,340.18ms] Passed 4 tests
This is a short check of server-side resources used by SVG Flags - Beautiful Scalable Flags For All Countries!
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.47 ▼36.31 | 71.20 ▼8,505,401.70 |
Dashboard /wp-admin | 44.79 ▲41.44 | 8,516,520.11 ▲8,516,467.22 |
Posts /wp-admin/edit.php | 8.49 ▲5.09 | 76.30 ▲26.09 |
Add New Post /wp-admin/post-new.php | 8.49 ▲2.55 | 79.73 ▼20.80 |
Media Library /wp-admin/upload.php | 8.49 ▲5.21 | 73.13 ▲35.70 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.49 | 59.67 |
SVG Flags /wp-admin/options-general.php?page=svg-flags-wpgoplugins | 8.49 | 70.94 |
About /wp-admin/admin.php?page=svg-flags-wpgoplugins-welcome | 8.49 | 59.71 |
New Features /wp-admin/admin.php?page=svg-flags-wpgoplugins-new-features | 8.49 | 68.21 |
Server storage [IO: ▲9.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 781 new files
Database: no new tables, 12 new options
New WordPress options |
---|
svg-flags-lite_options |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
fs_gdpr |
fs_active_plugins |
svg-flags-lite-new-features-numbered-icon |
... |
Browser metrics Passed 4 tests
A check of browser resources used by SVG Flags - Beautiful Scalable Flags For All Countries!
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.72 ▲0.14 | 1.80 ▲0.12 | 30.14 ▼13.80 |
Dashboard /wp-admin | 2,213 ▲36 | 5.64 ▲0.05 | 88.08 ▼4.37 | 44.37 ▲4.45 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 1.99 ▲0.03 | 36.99 ▲1.57 | 35.91 ▼0.85 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,664 | 26.28 ▲8.14 | 902.80 ▲257.28 | 62.94 ▼11.11 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.19 ▲0.05 | 100.56 ▼2.04 | 45.15 ▲1.37 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,061 | 1.66 | 23.87 | 28.48 |
SVG Flags /wp-admin/options-general.php?page=svg-flags-wpgoplugins | 1,233 | 2.08 | 29.03 | 46.93 |
About /wp-admin/admin.php?page=svg-flags-wpgoplugins-welcome | 1,136 | 1.88 | 26.64 | 63.56 |
New Features /wp-admin/admin.php?page=svg-flags-wpgoplugins-new-features | 1,413 | 1.89 | 28.63 | 64.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/svg-flags-lite/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 12 options in the database
- svg-flags-lite_options
- fs_accounts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- fs_active_plugins
- widget_recent-comments
- svg-flags-lite-new-features-numbered-icon
- fs_debug_mode
- fs_gdpr
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 46 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=svg-flags-wpgoplugins-new-features
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 46 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=svg-flags-wpgoplugins-new-features
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=svg-flags-wpgoplugins-new-features
- > Notice in wp-content/plugins/svg-flags-lite/api/templates/settings/new-features.php+79
Undefined property: stdClass::$license
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=svg-flags-wpgoplugins-new-features
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: svg_flags_admin_menu_data is not defined" "ReferenceError: svg_flags_admin_menu_data is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/svg-flags-lite/assets/js/admin-settings.js?ver=1599470936:6:67)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=svg-flags-wpgoplugins-new-features
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: svg_flags_admin_menu_data is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: flag, world, scalable, svg, country
svg-flags-lite/svg-flags.php 85% from 13 tests
The main PHP file in "SVG Flags - Beautiful Scalable Flags For All Countries!" ver. 0.9.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("svg-flags-lite.php" instead of "svg-flags.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin71,411 lines of code in 694 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 514 | 0 | 0 | 35,062 |
PHP | 130 | 7,619 | 16,647 | 32,247 |
CSS | 19 | 4 | 3 | 1,731 |
JavaScript | 9 | 351 | 497 | 791 |
HTML | 1 | 4 | 0 | 500 |
LESS | 6 | 18 | 0 | 443 |
Sass | 4 | 3 | 1 | 295 |
JSON | 6 | 0 | 0 | 186 |
Markdown | 1 | 31 | 0 | 73 |
CoffeeScript | 1 | 8 | 0 | 36 |
Bourne Shell | 1 | 10 | 0 | 25 |
YAML | 2 | 2 | 0 | 22 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 63.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 2 | 2.99% |
▷ Concrete classes | 65 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 1,205 | |
▷ Static methods | 183 | 15.19% |
▷ Public methods | 862 | 71.54% |
▷ Protected methods | 18 | 1.49% |
▷ Private methods | 325 | 26.97% |
Functions | 94 | |
▷ Named functions | 94 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 0.99MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/svg-flag-image-shortcode-test.png | 18.98KB | 7.61KB | ▼ 59.92% |
assets/images/flexible-faq-thumb.png | 39.81KB | 14.48KB | ▼ 63.62% |
assets/images/new-features/new-features-pro-6.png | 35.82KB | 13.40KB | ▼ 62.58% |
api/assets/images/seo-media-manager-thumb.png | 10.15KB | 4.63KB | ▼ 54.41% |
assets/images/svg-flag-shortcode-test.png | 18.48KB | 7.63KB | ▼ 58.72% |