89% cookie-dynamic-tag-for-elementor

Code Review | Cookie Dynamic Tag for Elementor

WordPress plugin Cookie Dynamic Tag for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: cookie-dynamic-ta...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2022
  • Latest release: Jul 9, 2022
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: wecodify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.92ms] Passed 4 tests

Analyzing server-side resources used by Cookie Dynamic Tag for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.25 ▼5.50
Dashboard /wp-admin3.31 ▲0.0145.80 ▼8.56
Posts /wp-admin/edit.php3.36 ▲0.0048.13 ▼0.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.08 ▼2.60
Media Library /wp-admin/upload.php3.24 ▲0.0035.28 ▼3.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Cookie Dynamic Tag for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.361.73 ▼0.0245.36 ▼3.38
Dashboard /wp-admin2,206 ▲184.82 ▼1.04112.93 ▼1.4342.89 ▼4.20
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0439.66 ▲2.2735.26 ▲3.47
Add New Post /wp-admin/post-new.php1,514 ▼15317.65 ▼4.49666.01 ▲12.6260.67 ▲3.83
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0295.62 ▼1.9941.55 ▼1.64

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: dynamic tag, elementor pro, elementor, cookie

cookie-dynamic-tag-for-elementor/cookie-dynamic-tag.php 77% from 13 tests

This is the main PHP file of "Cookie Dynamic Tag for Elementor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("cookie-dynamic-tag-for-elementor.php" instead of "cookie-dynamic-tag.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin66 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP398642
SVG10024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin