83% free-widgets-for-elementor

Code Review | Free widgets For Elementor

WordPress plugin Free widgets For Elementor scored83%from 54 tests.

About plugin

  • Plugin page: free-widgets-for-...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.4.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2021
  • Latest release: Dec 16, 2022
  • Number of updates: 14
  • Update frequency: every 42.7 days
  • Top authors: kstmonowar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /874 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.00MB] [CPU: ▼2.50ms] Passed 4 tests

An overview of server-side resources used by Free widgets For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.57 ▲2.90
Dashboard /wp-admin3.31 ▲0.0151.96 ▼0.12
Posts /wp-admin/edit.php3.36 ▲0.0044.86 ▼5.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.22 ▼4.23
Media Library /wp-admin/upload.php3.23 ▲0.0035.57 ▼0.63

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free widgets For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7113.28 ▼1.121.80 ▼1.0044.24 ▼3.69
Dashboard /wp-admin2,235 ▲325.80 ▲0.89101.56 ▼4.6440.35 ▼1.60
Posts /wp-admin/edit.php2,117 ▲172.03 ▲0.0236.24 ▼4.0434.05 ▼0.97
Add New Post /wp-admin/post-new.php1,557 ▲1223.24 ▲0.11664.58 ▼15.8956.29 ▲1.35
Media Library /wp-admin/upload.php1,411 ▲84.22 ▲0.02101.52 ▼0.8945.87 ▲2.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FreeMainWidgets\\add_action() in wp-content/plugins/free-widgets-for-elementor/plugin.php:140

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add images for these screenshots: #2 (This is the second screenshot), #3 (This is the third screenshot)
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

free-widgets-for-elementor/free-widgets-for-elementor.php 92% from 13 tests

The main PHP script in "Free widgets For Elementor" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • 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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected597 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4137260453
CSS2615109
JavaScript218635

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods15.26%
▷ Public methods1684.21%
▷ Protected methods315.79%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.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 were not PNG files found in your plugin