89% elfsight-addons-for-elementor

Code Review | 60+ Elementor Blocks by Elfsight.

WordPress plugin 60+ Elementor Blocks by Elfsight. scored89%from 54 tests.

About plugin

  • Plugin page: elfsight-addons-f...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.3
  • WordPress version: 6.3.1
  • First release: Feb 21, 2020
  • Latest release: Jul 27, 2023
  • Number of updates: 7
  • Update frequency: every 181.3 days
  • Top authors: elfsight (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /11,061 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.02MB] [CPU: ▼4.45ms] Passed 4 tests

Server-side resources used by 60+ Elementor Blocks by Elfsight.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.38 ▲3.76
Dashboard /wp-admin3.32 ▲0.0242.48 ▼6.15
Posts /wp-admin/edit.php3.37 ▲0.0244.20 ▼3.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.35 ▼11.67
Media Library /wp-admin/upload.php3.24 ▲0.0237.38 ▲4.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by 60+ Elementor Blocks by Elfsight.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲4014.40 ▲0.135.50 ▲3.7342.60 ▲0.77
Dashboard /wp-admin2,195 ▲155.63 ▲0.0584.62 ▼10.2737.16 ▼7.27
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0136.94 ▼4.4735.10 ▲3.34
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▼0.26595.98 ▼87.3455.76 ▼23.52
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0497.58 ▼6.0443.09 ▼3.60

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: editor, addon, extension, elementor

elfsight-addons-for-elementor/elfsight-elementor-extension.php 85% from 13 tests

This is the main PHP file of "60+ Elementor Blocks by Elfsight." version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("elfsight-addons-for-elementor.php" instead of "elfsight-elementor-extension.php")

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
There were no executable files found in this plugin8,895 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,096
PHP54327591
JavaScript33522161
CSS12025
SVG10011
Stylus13011

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.19
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods18
▷ Static methods15.56%
▷ Public methods1583.33%
▷ Protected methods316.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
No PNG images were found in this plugin