78% advanced-visual-elements

Code Review | Advanced Visual Elements - Shortcode addons for Elementor & Gutenberg

WordPress plugin Advanced Visual Elements - Shortcode addons for Elementor & Gutenberg scored78%from 54 tests.

About plugin

  • Plugin page: advanced-visual-e...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2023
  • Latest release: Jul 7, 2023
  • Number of updates: 27
  • Update frequency: every 2.9 days
  • Top authors: ziher4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /509 total downloads


Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲5.54MB] [CPU: ▲29.53ms] 75% from 4 tests

This is a short check of server-side resources used by Advanced Visual Elements - Shortcode addons for Elementor & Gutenberg
The following require your attention
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.54MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.13 ▲5.6768.99 ▲28.28
Dashboard /wp-admin9.15 ▲5.8576.54 ▲30.80
Posts /wp-admin/edit.php9.15 ▲5.7984.55 ▲39.34
Add New Post /wp-admin/post-new.php10.74 ▲4.86114.17 ▲19.70
Media Library /wp-admin/upload.php9.15 ▲5.9271.61 ▲40.80
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.1567.08

Server storage [IO: ▲17.94MB] [DB: ▲0.09MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/advanced-visual-elements/" and "wp-content/uploads/"
    • (new file) wp-content/wp-ave-elements/.empty
Filesystem: 1,911 new files
Database: no new tables, 17 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Visual Elements - Shortcode addons for Elementor & Gutenberg
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,184 ▲43825.70 ▲11.3437.85 ▲36.2527.97 ▼13.40
Dashboard /wp-admin2,304 ▲11511.86 ▲6.95130.11 ▲15.1888.62 ▲47.07
Posts /wp-admin/edit.php2,225 ▲13610.42 ▲8.4373.39 ▲33.0299.34 ▲63.69
Add New Post /wp-admin/post-new.php6,349 ▲4,83027.84 ▲4.97727.24 ▲63.21136.36 ▲72.86
Media Library /wp-admin/upload.php1,518 ▲12711.00 ▲6.80139.01 ▲38.88124.15 ▲76.47
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1919.9476.4691.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/advanced-visual-elements/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 17 options in the database
    • can_compress_scripts
    • adv_vis_ele_enable_default_meta_viewport
    • adv_vis_ele_library_info
    • fs_accounts
    • db_upgraded
    • fs_debug_mode
    • adv_vis_ele_global_mobile_breakpoint
    • widget_theysaidso_widget
    • adv_vis_ele_delete_settings_on_uninstall
    • adv_vis_ele_library_version
    • ...

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: visuals, library

advanced-visual-elements/wp-ave.php 77% from 13 tests

"Advanced Visual Elements - Shortcode addons for Elementor & Gutenberg" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-visual-elements.php" instead of "wp-ave.php")

Code Analysis 95% from 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
There were no executable files found in this plugin167,172 lines of code in 1,845 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 0% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 114)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity83.73
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
▷ Static methods21115.70%
▷ Public methods94870.54%
▷ Protected methods191.41%
▷ Private methods37728.05%
▷ Named functions10295.33%
▷ Anonymous functions54.67%
▷ Global constants10769.48%
▷ Class constants4730.52%
▷ Public constants47100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
img/adv-vis-ele-dashicon.png0.61KB0.57KB▼ 5.93%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%