Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.71ms] Passed 4 tests
This is a short check of server-side resources used by Country Flags for Elementor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.31 ▼10.62 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.28 ▼7.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.67 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.89 ▼15.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.17 ▲0.73 |
Server storage [IO: ▲4.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 527 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Country Flags for Elementor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.77 ▲0.58 | 1.71 ▼0.58 | 42.72 ▼2.81 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▼0.07 | 105.50 ▲2.60 | 44.11 ▲0.80 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 39.24 ▼0.79 | 37.10 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.12 ▼0.27 | 641.76 ▼22.37 | 56.34 ▲0.17 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.00 | 97.47 ▼11.98 | 46.12 ▼4.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: flags, pagebuilder, elementor, flag, country flags
country-flags-for-elementor/country-flags-for-elementor.php Passed 13 tests
"Country Flags for Elementor" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
This plugin adds a country flags widget to the Elementor Page Builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected37,313 lines of code in 522 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 512 | 0 | 0 | 35,042 |
CSS | 4 | 3 | 0 | 1,576 |
PHP | 5 | 81 | 377 | 626 |
PO File | 1 | 25 | 30 | 69 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 24 | 70.59% |
▷ Protected methods | 4 | 11.76% |
▷ Private methods | 6 | 17.65% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
There were not PNG files found in your plugin