84% datalayer-for-elementor

Code Review | Datalayer For Elementor

WordPress plugin Datalayer For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: datalayer-for-ele...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.3
  • WordPress version: 6.3.1
  • First release: May 12, 2022
  • Latest release: May 31, 2022
  • Number of updates: 11
  • Update frequency: every 2.2 days
  • Top authors: sourei (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.20ms] Passed 4 tests

Server-side resources used by Datalayer For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.05 ▼3.69
Dashboard /wp-admin3.32 ▲0.0243.90 ▼0.19
Posts /wp-admin/edit.php3.37 ▲0.0141.50 ▼7.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.10 ▼17.51
Media Library /wp-admin/upload.php3.24 ▲0.0132.82 ▼0.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Datalayer For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.58 ▼1.179.00 ▲6.6540.13 ▼9.87
Dashboard /wp-admin2,206 ▲215.92 ▲0.07108.31 ▼7.8440.64 ▼3.97
Posts /wp-admin/edit.php2,089 ▼02.06 ▼0.0037.96 ▲0.1231.88 ▼4.54
Add New Post /wp-admin/post-new.php1,534 ▲2023.19 ▲5.58703.36 ▲24.4565.63 ▲10.44
Media Library /wp-admin/upload.php1,382 ▼34.23 ▲0.0697.65 ▼9.3541.31 ▼3.22

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/datalayer-for-elementor/index.php:17

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: woocommerce, elementor, formsubmit, google tag manager, datalayer

datalayer-for-elementor/index.php 92% from 13 tests

The entry point to "Datalayer For Elementor" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("datalayer-for-elementor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151652
JavaScript111021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected