Benchmarks
Plugin footprint 83% 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: ▲0.06MB] [CPU: ▼7.12ms] Passed 4 tests
Analyzing server-side resources used by Visualmodo Elements
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.22 ▼2.22 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.37 ▼8.71 |
Posts /wp-admin/edit.php | 3.48 ▲0.11 | 55.75 ▲7.73 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.96 ▼17.60 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 37.27 ▲0.04 |
Server storage [IO: ▲4.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 486 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Visualmodo Elements
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲59 | 14.36 ▲0.01 | 11.00 ▲8.97 | 36.93 ▼8.38 |
Dashboard /wp-admin | 2,230 ▲53 | 5.57 ▼0.05 | 99.80 ▼5.63 | 84.54 ▲39.16 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 1.99 ▲0.01 | 40.41 ▲3.84 | 40.57 ▲4.39 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 23.49 ▲0.45 | 755.15 ▲76.35 | 62.25 ▲7.46 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.17 ▼0.04 | 107.78 ▼3.53 | 75.10 ▲27.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/counter.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/testimonial.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/progress-bar.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/alert.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/icon.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/svg.php
- > /wp-content/plugins/visualmodo-elements/visualmodo-elements.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/circular-progress-bar.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/pricing.php
- > /wp-content/plugins/visualmodo-elements/includes/elements/elements/icon-group.php
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/visualmodo-elements/includes/options/core/inc/extensions/customizer/inc/customizer_panel.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visualmodo-elements/includes/options/core/templates/panel/header.tpl.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/visualmodo-elements/includes/options/core/templates/panel/menu_container.tpl.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/visualmodo-elements/includes/options/core/inc/welcome/views/support.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/visualmodo-elements/includes/options/core/templates/panel/container.tpl.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visualmodo-elements/includes/options/core/inc/welcome/views/about.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visualmodo-elements/includes/elements/lean-map.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/visualmodo-elements/includes/options/core/inc/extensions/customizer/inc/customizer_control.php:4
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/visualmodo-elements/includes/options/core/inc/themecheck/checks/full_package.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/visualmodo-elements/includes/options/core/templates/panel/footer.tpl.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #1, #2 in visualmodo-elements/assets to your readme.txt
visualmodo-elements/visualmodo-elements.php 92% from 13 tests
Analyzing the main PHP file in "Visualmodo Elements" version 1.0.2
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin50,316 lines of code in 347 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 4,451 | 5,724 | 20,676 |
JavaScript | 94 | 2,674 | 2,116 | 12,316 |
Sass | 70 | 1,231 | 66 | 8,278 |
CSS | 54 | 1,262 | 135 | 7,137 |
SVG | 2 | 0 | 1 | 947 |
JSON | 1 | 184 | 0 | 909 |
LESS | 1 | 0 | 0 | 53 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 29.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 883.00 |
Average method complexity | 6.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 121 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 616 | |
▷ Static methods | 104 | 16.88% |
▷ Public methods | 459 | 74.51% |
▷ Protected methods | 107 | 17.37% |
▷ Private methods | 50 | 8.12% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 58 | |
▷ Global constants | 1 | 1.72% |
▷ Class constants | 57 | 98.28% |
▷ Public constants | 57 | 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
46 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/options/core/assets/img/3-col-portfolio.png | 1.00KB | 0.15KB | ▼ 85.27% |
includes/elements/images/circular-progress-bar.png | 0.49KB | 0.25KB | ▼ 49.60% |
includes/options/core/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/options/core/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |
includes/options/core/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |