78% some-important-widget-for-elementor

Code Review | Some Important Widget For Elementor

WordPress plugin Some Important Widget For Elementor scored78%from 54 tests.

About plugin

  • Plugin page: some-important-wi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2022
  • Latest release: Sep 12, 2022
  • Number of updates: 8
  • Update frequency: every 2.1 days
  • Top authors: extraaddons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /212 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.84ms] Passed 4 tests

Analyzing server-side resources used by Some Important Widget For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.64 ▲0.10
Dashboard /wp-admin3.34 ▲0.0348.34 ▼4.36
Posts /wp-admin/edit.php3.39 ▲0.0346.81 ▲6.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.52 ▼11.91
Media Library /wp-admin/upload.php3.26 ▲0.0338.50 ▲0.82

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Some Important Widget For Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.18 ▼1.561.66 ▼0.1644.07 ▼0.95
Dashboard /wp-admin2,224 ▲364.89 ▲0.00101.57 ▼21.9136.25 ▼11.37
Posts /wp-admin/edit.php2,109 ▲202.02 ▼0.0136.68 ▼5.1033.59 ▼2.73
Add New Post /wp-admin/post-new.php1,549 ▲2023.29 ▲4.90667.08 ▲45.8248.96 ▼3.80
Media Library /wp-admin/upload.php1,409 ▲184.26 ▲0.06100.13 ▼4.8842.21 ▼2.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/some-important-widget-for-elementor/widgets/parts/icon-text-style-1.php
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-4.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-10.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-7.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-12.php:4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/some-important-widget-for-elementor/widgets/parts/icon-text-style-1.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-2.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-1.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-14.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/some-important-widget-for-elementor/widgets/item-style/team-style-8.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/some-important-widget-for-elementor/widgets/some-important-widget-button.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Important Icon Box And List), #2 (Important Stylist Button)
You can take inspiration from this readme.txt

some-important-widget-for-elementor/some-important-widget.php 85% from 13 tests

Analyzing the main PHP file in "Some Important Widget For Elementor" version 1.0.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("some-important-widget-for-elementor.php" instead of "some-important-widget.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected64,415 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
SVG502052,246
CSS114,34825210,775
PHP232054191,386
JavaScript1146
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.50
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods32
▷ Static methods13.12%
▷ Public methods2681.25%
▷ Protected methods618.75%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There are no PNG files in this plugin