84% custom-elementor-icons

Code Review | Custom Elementor Icons

WordPress plugin Custom Elementor Icons scored84%from 54 tests.

About plugin

  • Plugin page: custom-elementor-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Feb 5, 2021
  • Latest release: Aug 16, 2022
  • Number of updates: 8
  • Update frequency: every 70.4 days
  • Top authors: stylemix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /105,943 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼8.47ms] Passed 4 tests

An overview of server-side resources used by Custom Elementor Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.29 ▼2.56
Dashboard /wp-admin3.47 ▲0.1346.81 ▼22.41
Posts /wp-admin/edit.php3.58 ▲0.2350.04 ▼0.63
Add New Post /wp-admin/post-new.php6.07 ▲0.1988.91 ▼8.26
Media Library /wp-admin/upload.php3.39 ▲0.1738.09 ▲4.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Elementor Icons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.67 ▼1.081.95 ▲0.3039.22 ▼4.76
Dashboard /wp-admin2,232 ▲445.43 ▲0.52128.22 ▲11.9841.50 ▼5.49
Posts /wp-admin/edit.php2,114 ▲252.55 ▲0.5841.92 ▲5.6837.99 ▼0.60
Add New Post /wp-admin/post-new.php1,536 ▲117.94 ▼5.03606.12 ▼31.3565.51 ▲14.48
Media Library /wp-admin/upload.php1,414 ▲294.78 ▲0.60105.17 ▲4.6543.63 ▲1.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_textdomain_loaded() in wp-content/plugins/custom-elementor-icons/includes/init.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-elementor-icons/templates/icon-manager.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-elementor-icons/includes/item-announcements.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
7 plugin tags: elementor, elementor icon, fontello, icon, elementor custom icons...

custom-elementor-icons/custom-elementor-icons.php Passed 13 tests

The entry point to "Custom Elementor Icons" version 1.0.5 is a PHP file that has certain tags in its header comment area
120 characters long description:
Custom Elementor Icons is a free WordPress plugin allowing its users to upload unlimited custom icons to their websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin821 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11134164675
JavaScript100142
JSON1003
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1133.33%
▷ Public methods2163.64%
▷ Protected methods1236.36%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants00.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