Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▼1.59ms] Passed 4 tests
Analyzing server-side resources used by Visibility Logic for Elementor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 41.19 ▲3.92 |
Dashboard /wp-admin | 3.73 ▲0.42 | 46.92 ▼4.17 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 49.97 ▲0.54 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 95.41 ▼4.00 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 37.17 ▲1.29 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Visibility Logic for Elementor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 13.59 ▼0.79 | 1.56 ▼0.02 | 38.63 ▼2.08 |
Dashboard /wp-admin | 2,216 ▲25 | 5.83 ▲0.02 | 97.54 ▼5.41 | 37.70 ▼8.92 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.00 | 40.25 ▲5.46 | 36.14 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.31 ▲0.23 | 656.66 ▲62.48 | 61.93 ▲3.98 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.24 ▲0.02 | 96.44 ▲1.05 | 42.31 ▲1.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(wp-content/plugins/visibility-logic-elementor/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/visibility-logic-elementor/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/visibility-logic-elementor/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/visibility-logic-elementor/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Stax\\VisibilityLogic\\Plugin' not found in wp-content/plugins/visibility-logic-elementor/core/admin/actions.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stax\\VisibilityLogic\\Plugin' not found in wp-content/plugins/visibility-logic-elementor/core/admin/pages/templates/options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/visibility-logic-elementor/core/admin/layout.php:1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: widget conditions, visibility logic, elementor conditions, elementor, elementor widgets...
visibility-logic-elementor/conditional.php 92% from 13 tests
The primary PHP file in "Visibility Logic for Elementor" version 2.3.5.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("visibility-logic-elementor.php" instead of "conditional.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin7,034 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 1,126 | 1,763 | 4,829 |
CSS | 4 | 152 | 17 | 805 |
JSON | 2 | 0 | 0 | 729 |
JavaScript | 58 | 93 | 67 | 289 |
Markdown | 1 | 82 | 0 | 255 |
XML | 1 | 6 | 11 | 95 |
YAML | 1 | 6 | 0 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 2 | 7.14% |
Methods | 248 | |
▷ Static methods | 33 | 13.31% |
▷ Public methods | 179 | 72.18% |
▷ Protected methods | 28 | 11.29% |
▷ Private methods | 41 | 16.53% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/libs/select2/select2.png | 0.60KB | 0.99KB | 0.00% |