90% dynamic-visibility-for-elementor

Code Review | Dynamic Visibility for Elementor

WordPress plugin Dynamic Visibility for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: dynamic-visibilit...
  • Plugin version: 5.0.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 22, 2018
  • Latest release: Oct 30, 2023
  • Number of updates: 52
  • Update frequency: every 37.1 days
  • Top authors: dynamicooo (100%)

Code review

54 tests

User reviews

75 reviews

Install metrics

40,000+ active /354,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Dynamic Visibility for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.92 ▲1.80
Dashboard /wp-admin3.38 ▲0.0445.57 ▼16.01
Posts /wp-admin/edit.php3.50 ▲0.1448.62 ▲1.78
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.24 ▼14.12
Media Library /wp-admin/upload.php3.31 ▲0.0835.68 ▼0.43

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Dynamic Visibility for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.69 ▲0.341.68 ▼0.4440.69 ▼1.22
Dashboard /wp-admin2,213 ▲395.65 ▲0.0383.23 ▼14.0777.93 ▲33.69
Posts /wp-admin/edit.php2,121 ▲212.13 ▲0.1138.37 ▲0.2534.74 ▼2.21
Add New Post /wp-admin/post-new.php1,558 ▲2923.58 ▲0.40671.04 ▲64.68157.77 ▲107.28
Media Library /wp-admin/upload.php1,415 ▲154.22 ▲0.06101.52 ▲0.2777.79 ▲32.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: dynamic, elementor, container, widget, visibility...

dynamic-visibility-for-elementor/dynamic-visibility-for-elementor.php Passed 13 tests

The main file in "Dynamic Visibility for Elementor" v. 5.0.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
132 characters long description:
Visibility rules for widgets, containers, sections, columns or pages with advanced conditions and removing the element from the DOM.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,722 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,1401,3129,668
CSS7186391,134
JavaScript608880735
SVG11680180
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity59.17
▷ Minimum class complexity1.00
▷ Maximum class complexity505.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces7
Interfaces0
Traits15
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods371
▷ Static methods23463.07%
▷ Public methods32788.14%
▷ Protected methods4010.78%
▷ Private methods41.08%
Functions25
▷ Named functions416.00%
▷ Anonymous functions2184.00%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lib/select2/select2x2.png0.83KB0.77KB▼ 6.15%
assets/lib/select2/select2.png0.60KB0.99KB0.00%
assets/media/dce.png4.31KB2.67KB▼ 38.15%