78% material-design-icons-for-elementor

Code Review | Material Design Icons for Page Builders

WordPress plugin Material Design Icons for Page Builders scored78%from 54 tests.

About plugin

  • Plugin page: material-design-i...
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2020
  • Latest release: Mar 21, 2023
  • Number of updates: 28
  • Update frequency: every 41.6 days
  • Top authors: photon2020 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10,000+ active /44,568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.53ms] Passed 4 tests

A check of server-side resources used by Material Design Icons for Page Builders
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.10 ▼13.31
Dashboard /wp-admin3.34 ▲0.0448.31 ▼9.10
Posts /wp-admin/edit.php3.45 ▲0.1046.77 ▼3.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.89 ▼16.58
Media Library /wp-admin/upload.php3.26 ▲0.0337.72 ▲0.26
Material Design Icons /wp-admin/options-general.php?page=elem-material-icons-settings3.3239.51

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 135 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Material Design Icons for Page Builders
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.77 ▼0.391.72 ▼0.0942.79 ▼5.56
Dashboard /wp-admin2,228 ▲224.86 ▼0.0198.13 ▼10.7442.17 ▲0.43
Posts /wp-admin/edit.php2,104 ▲42.06 ▲0.0634.84 ▼1.5736.14 ▼0.93
Add New Post /wp-admin/post-new.php1,557 ▲918.26 ▼5.17624.68 ▼14.9251.59 ▼3.09
Media Library /wp-admin/upload.php1,404 ▲14.22 ▼0.0098.72 ▼0.5643.19 ▼2.08
Material Design Icons /wp-admin/options-general.php?page=elem-material-icons-settings1,3675.2581.7245.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 26× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/tabs-panel.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/select.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/button.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/f-select.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/input.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/component-wrapper.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/repeater.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/switcher.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/time.php
    • > /wp-content/plugins/material-design-icons-for-elementor/includes/modules/vue-ui/components/list-table-heading.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/material-design-icons-for-elementor/templates/admin/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: The official readme.txt is a good inspiration

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

The main PHP file in "Material Design Icons for Page Builders" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected22,841 lines of code in 118 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript361,6681,51012,608
JSON4006,658
PHP362673771,791
Sass3611711,778
CSS6006

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.38
▷ Minimum class complexity6.00
▷ Maximum class complexity14.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods50
▷ Static methods12.00%
▷ Public methods4896.00%
▷ Protected methods00.00%
▷ Private methods24.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin