84% elegant-themes-icons

Code Review | Elegant Themes Icons

WordPress plugin Elegant Themes Icons scored84%from 54 tests.

About plugin

  • Plugin page: elegant-themes-icons
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Nov 7, 2017
  • Number of updates: 20
  • Update frequency: every 67.8 days
  • Top authors: Mayur Somani (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /13,607 total downloads


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.00MB] [CPU: ▼5.21ms] Passed 4 tests

A check of server-side resources used by Elegant Themes Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.56 ▼4.71
Dashboard /wp-admin3.31 ▲0.0145.64 ▼1.11
Posts /wp-admin/edit.php3.36 ▲0.0047.49 ▼3.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.37 ▼8.28
Media Library /wp-admin/upload.php3.23 ▲0.0032.80 ▼4.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Elegant Themes Icons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.151.76 ▲0.0142.08 ▼5.47
Dashboard /wp-admin2,203 ▲124.86 ▼0.0597.84 ▼16.4537.57 ▼6.09
Posts /wp-admin/edit.php2,086 ▼62.05 ▲0.0440.33 ▼6.5135.79 ▲0.77
Add New Post /wp-admin/post-new.php1,533 ▼223.34 ▼0.05638.91 ▼24.1967.93 ▼3.02
Media Library /wp-admin/upload.php1,391 ▲34.27 ▲0.1197.96 ▲1.3944.23 ▲0.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elegant-themes-icons/eticonfonts.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: icons, elegant themes font icon, font icon, icon font, elegant themes font for wordpress...

elegant-themes-icons/eticonfonts.php 92% from 13 tests

This is the main PHP file of "Elegant Themes Icons" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("elegant-themes-icons.php" instead of "eticonfonts.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 detected2,999 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ 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
No PNG files were detected