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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.42MB] [CPU: ▲2.10ms] Passed 4 tests
Analyzing server-side resources used by Icon Element - Elementor Page Builder Icon Pack (6718 icons)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 41.79 ▲2.12 |
Dashboard /wp-admin | 3.73 ▲0.43 | 49.03 ▲0.43 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 47.99 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 93.23 ▲7.60 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 38.00 ▲4.24 |
Icon Element /wp-admin/themes.php?page=iconelement | 3.80 | 35.61 |
Server storage [IO: ▲16.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 166 new files
Database: no new tables, 71 new options
New WordPress options |
---|
icon-elementie-tabler |
icon-elementie-mapicon |
icon-elementie-prestashop |
icon-elementie-woocommerce |
icon-elementie-buddyboss |
icon-elementie-olicons |
icon-elementie-elegant-font |
icon-elementie-metrize |
db_upgraded |
icon-elementie-dripicons-icons |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Icon Element - Elementor Page Builder Icon Pack (6718 icons)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲74 | 14.19 ▼0.16 | 1.71 ▼0.08 | 41.85 ▼1.05 |
Dashboard /wp-admin | 2,241 ▲63 | 5.51 ▼0.17 | 83.06 ▼29.87 | 38.06 ▼8.02 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.08 ▲0.07 | 40.26 ▲2.06 | 39.58 ▲5.47 |
Add New Post /wp-admin/post-new.php | 1,569 ▲34 | 22.96 ▲0.01 | 633.80 ▼15.85 | 58.00 ▲8.19 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.14 ▼0.07 | 98.62 ▼6.28 | 59.41 ▲12.72 |
Icon Element /wp-admin/themes.php?page=iconelement | 1,411 | 1.87 | 44.40 | 35.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 71 options
- icon-elementie-wppagebuilder
- icon-elementie-antdesign
- icon-elementie-elementor
- icon-elementie-chart
- icon-elementie-themify-icons
- icon-elementie-fabric
- icon-elementie-captain
- icon-elementie-woocommerce
- icon-elementie-tilda
- icon-elementie-unithinline
- ...
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-element/admin/options.php:629
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/icon-element/includes/optin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2 in icon-element/assets to your readme.txt
icon-element/iconelement.php 85% from 13 tests
The main PHP script in "Icon Element - Elementor Page Builder Icon Pack (6718 icons)" version 2.0.5 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("icon-element.php" instead of "iconelement.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin69,512 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 27 | 2,554 | 73 | 35,766 |
SVG | 24 | 603 | 9 | 16,636 |
HTML | 1 | 4,603 | 0 | 13,870 |
PHP | 6 | 368 | 222 | 2,082 |
JSON | 25 | 2 | 0 | 1,056 |
JavaScript | 1 | 22 | 31 | 102 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 52.20 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 5.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 30 | 52.63% |
▷ Public methods | 55 | 96.49% |
▷ Protected methods | 1 | 1.75% |
▷ Private methods | 1 | 1.75% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/banner.png | 29.17KB | 30.71KB | 0.00% |