Benchmarks
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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.13 ▲5.67 | 68.99 ▲28.28 |
Dashboard /wp-admin | 9.15 ▲5.85 | 76.54 ▲30.80 |
Posts /wp-admin/edit.php | 9.15 ▲5.79 | 84.55 ▲39.34 |
Add New Post /wp-admin/post-new.php | 10.74 ▲4.86 | 114.17 ▲19.70 |
Media Library /wp-admin/upload.php | 9.15 ▲5.92 | 71.61 ▲40.80 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.15 | 67.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 |
---|
widget_recent-comments |
adv_vis_ele_global_mobile_breakpoint |
db_upgraded |
fs_active_plugins |
adv_vis_ele_library_version |
adv_vis_ele_disable_admin_commands_frontend |
theysaidso_admin_options |
adv_vis_ele_delete_settings_on_uninstall |
widget_theysaidso_widget |
fs_debug_mode |
... |
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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,184 ▲438 | 25.70 ▲11.34 | 37.85 ▲36.25 | 27.97 ▼13.40 |
Dashboard /wp-admin | 2,304 ▲115 | 11.86 ▲6.95 | 130.11 ▲15.18 | 88.62 ▲47.07 |
Posts /wp-admin/edit.php | 2,225 ▲136 | 10.42 ▲8.43 | 73.39 ▲33.02 | 99.34 ▲63.69 |
Add New Post /wp-admin/post-new.php | 6,349 ▲4,830 | 27.84 ▲4.97 | 727.24 ▲63.21 | 136.36 ▲72.86 |
Media Library /wp-admin/upload.php | 1,518 ▲127 | 11.00 ▲6.80 | 139.01 ▲38.88 | 124.15 ▲76.47 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,191 | 9.94 | 76.46 | 91.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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 60,882 |
PHP | 134 | 8,598 | 17,498 | 35,491 |
YAML | 4 | 0 | 0 | 25,396 |
SVG | 1,615 | 0 | 12 | 16,000 |
JavaScript | 24 | 1,259 | 757 | 10,248 |
CSS | 29 | 3,669 | 68 | 9,633 |
Sass | 18 | 507 | 34 | 4,782 |
LESS | 18 | 504 | 55 | 4,740 |
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 code | 0.62 |
Average class complexity | 83.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,344 | |
▷ Static methods | 211 | 15.70% |
▷ Public methods | 948 | 70.54% |
▷ Protected methods | 19 | 1.41% |
▷ Private methods | 377 | 28.05% |
Functions | 107 | |
▷ Named functions | 102 | 95.33% |
▷ Anonymous functions | 5 | 4.67% |
Constants | 154 | |
▷ Global constants | 107 | 69.48% |
▷ Class constants | 47 | 30.52% |
▷ Public constants | 47 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
img/adv-vis-ele-dashicon.png | 0.61KB | 0.57KB | ▼ 5.93% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |