66% disable-icons-elementor

Code Review | Disable Icons Elementor

WordPress plugin Disable Icons Elementor scored 66% from 54 tests.

About plugin

  • Plugin page: disable-icons-ele...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: May 30, 2022
  • Number of updates: 21
  • Update frequency: every 11.1 days
  • Top authors: mestresdowp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 955 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.01MB] [CPU: ▼2.74ms] Passed 4 tests

Server-side resources used by Disable Icons Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.47 ▼4.36
Dashboard /wp-admin3.31 ▲0.0146.68 ▼2.57
Posts /wp-admin/edit.php3.36 ▲0.0149.33 ▲2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.98 ▼3.32
Media Library /wp-admin/upload.php3.23 ▲0.0134.26 ▼0.70
Disable Icons /wp-admin/admin.php?page=disable_icons_elementor3.2339.54

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Disable Icons Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.42 ▼1.321.66 ▼0.1438.61 ▼4.69
Dashboard /wp-admin2,218 ▲334.96 ▼0.88101.21 ▼3.5579.44 ▲38.11
Posts /wp-admin/edit.php2,119 ▲332.03 ▲0.0338.51 ▲1.1233.32 ▲1.13
Add New Post /wp-admin/post-new.php1,541 ▼123.30 ▲5.17663.52 ▲61.9946.96 ▼10.72
Media Library /wp-admin/upload.php1,403 ▲124.19 ▲0.0195.41 ▼2.6576.73 ▲33.18
Disable Icons /wp-admin/admin.php?page=disable_icons_elementor1,0312.0824.7544.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Notice in wp-content/plugins/disable-icons-elementor/admin/includes/mw-pdie-html-form.php+20
    Undefined index: url
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/mw-pdie-html-form.php+31
    include(html/documentacao.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/mw-pdie-html-form.php+31
    include(): Failed opening 'html/documentacao.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/mw-pdie-html-form.php+31
    include(html/plugins.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/mw-pdie-html-form.php+31
    include(): Failed opening 'html/plugins.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php+6
    simplexml_load_file(): https://www.mestresdowp.com.br/checkout/artigos.php:1: parser error : Start tag expected, '<' not found
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php+6
    simplexml_load_file(): [{"ID":306678,"post_author":"2","post_date":"2023-09-30 10:00:00","post_date_gmt
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php+6
    simplexml_load_file(): ^
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Notice in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php+8
    Trying to get property 'artigo' of non-object
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Warning in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php+8
    Invalid argument supplied for foreach()

SRP 0% 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
Almost there! Just fix the following items
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/disable-icons-elementor/includes/mestres-wp-sidebar.php
    • > /wp-content/plugins/disable-icons-elementor/admin/includes/mestres-wp-sidebar.php
    • > /wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-copyright.php
    • > /wp-content/plugins/disable-icons-elementor/admin/includes/mestres-wp-copyright.php
    • > /wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php
    • > /wp-content/plugins/disable-icons-elementor/includes/mestres-wp-copyright.php
  • 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      simplexml_load_file(): https://www.mestresdowp.com.br/checkout/artigos.php:1: parser error : Start tag expected, '<' not found in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php on line 6
    • > PHP Warning
      simplexml_load_file(): [{"ID":306678,"post_author":"2","post_date":"2023-09-30 10:00:00","post_date_gmt in wp-content/plugins/disable-icons-elementor/includes/mestres-wp-sidebar.php on line 6
    • > PHP Warning
      Use of undefined constant DIEWP_PLUGIN_ADMIN_URL - assumed 'DIEWP_PLUGIN_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-icons-elementor/includes/mw-pdie-html-form.php on line 12
    • > PHP Notice
      Trying to get property 'artigo' of non-object in wp-content/plugins/disable-icons-elementor/admin/includes/mestres-wp-sidebar.php on line 8
    • > PHP Notice
      Trying to get property 'artigo' of non-object in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php on line 8
    • > PHP Warning
      Use of undefined constant DIEWP_PLUGIN_ADMIN_URL - assumed 'DIEWP_PLUGIN_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-icons-elementor/admin/includes/mw-pdie-html-form.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/disable-icons-elementor/admin/includes/html/config.php:8
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/disable-icons-elementor/admin/includes/mestres-wp-sidebar.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/disable-icons-elementor/admin/mwp-pdie-admin.php:2
    • > PHP Warning
      simplexml_load_file(): ^ in wp-content/plugins/disable-icons-elementor/admin/includes/html/mestres-wp-sidebar.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=disable_icons_elementor
    • > Network (severe)
    https://www.mestresdowp.com.br/admin/icons/ico-config.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === disable-icons-elementor === )
The official readme.txt might help

disable-icons-elementor/disable-icons-elementor.php 92% from 13 tests

The main PHP file in "Disable Icons Elementor" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin387 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP111414278
CSS1110109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/mwp-ico-off.png1.33KB0.73KB▼ 45.19%
admin/assets/images/mwp-ico-on.png1.34KB0.69KB▼ 48.18%
admin/assets/images/bytesize_settings.png1.23KB0.70KB▼ 43.11%
admin/assets/images/faviconmwp.png0.58KB0.62KB0.00%
admin/assets/images/mwp-logotipo.png4.97KB2.46KB▼ 50.49%