80% custom-icons-for-elementor

Code Review | Custom Icons for Elementor

WordPress plugin Custom Icons for Elementor scored80%from 54 tests.

About plugin

  • Plugin page: custom-icons-for-...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 2, 2018
  • Latest release: Mar 21, 2023
  • Number of updates: 34
  • Update frequency: every 49.7 days
  • Top authors: michaelbourne (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

20,000+ active /204,612 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼10.17ms] Passed 4 tests

A check of server-side resources used by Custom Icons for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.46 ▼6.87
Dashboard /wp-admin3.43 ▲0.0950.21 ▼17.82
Posts /wp-admin/edit.php3.55 ▲0.1949.32 ▼0.86
Add New Post /wp-admin/post-new.php6.03 ▲0.1587.27 ▼15.00
Media Library /wp-admin/upload.php3.36 ▲0.1336.33 ▼1.00
Custom Icons /wp-admin/admin.php?page=elementor-custom-icons3.5337.51

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Icons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6113.47 ▼1.211.88 ▼0.1045.46 ▲3.17
Dashboard /wp-admin2,228 ▲254.88 ▼0.98110.66 ▼8.5040.42 ▼3.14
Posts /wp-admin/edit.php2,107 ▲102.05 ▲0.0243.07 ▲4.7934.89 ▼1.02
Add New Post /wp-admin/post-new.php1,538 ▲1223.45 ▲5.93668.76 ▼23.4357.84 ▼2.58
Media Library /wp-admin/upload.php1,407 ▲104.28 ▲0.0496.63 ▼16.5241.09 ▼7.49
Custom Icons /wp-admin/admin.php?page=elementor-custom-icons1,3432.0625.1048.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/custom-icons-for-elementor/uninstall.php+48
    unlink(wp-content/uploads/elementor_icons_files/merged-icons-font.css): No such file or directory
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: elementor, icons, fontello, icon fonts

custom-icons-for-elementor/elementor-custom-icons.php 92% from 13 tests

The entry point to "Custom Icons for Elementor" version 0.3.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-icons-for-elementor.php" instead of "elementor-custom-icons.php")

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 detected1,703 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5272237741
CSS1737491
PO File24243165
SVG14027165
JavaScript1515141

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity31.67
▷ Minimum class complexity23.00
▷ Maximum class complexity44.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods1765.38%
▷ Protected methods519.23%
▷ Private methods415.38%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/font.png0.30KB0.23KB▼ 23.87%
assets/pp-acceptance-large.png4.31KB2.11KB▼ 50.94%