Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲3.27ms] Passed 4 tests
An overview of server-side resources used by Visual Editor For Gutenberg
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 49.69 ▲5.15 |
Dashboard /wp-admin | 3.41 ▲0.11 | 53.23 ▲1.51 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.87 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 108.42 ▲7.00 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 46.45 ▲10.64 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Visual Editor For Gutenberg
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,131 ▲342 | 22.49 ▲9.23 | 158.98 ▲156.75 | 38.05 ▼3.71 |
Dashboard /wp-admin | 2,288 ▲82 | 5.87 ▲0.99 | 96.83 ▼16.01 | 38.79 ▼2.22 |
Posts /wp-admin/edit.php | 2,166 ▲77 | 2.07 ▲0.07 | 36.57 ▼3.91 | 35.46 ▼0.81 |
Add New Post /wp-admin/post-new.php | 6,512 ▲4,979 | 23.03 ▼0.17 | 968.18 ▲357.79 | 47.21 ▼5.05 |
Media Library /wp-admin/upload.php | 1,462 ▲77 | 4.24 ▲0.04 | 99.07 ▼21.54 | 42.96 ▼2.75 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 50% from 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
The following issues need your attention
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-editor/includes/patterns/visualedit_layout_01.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-editor/includes/patterns/visualedit_construction_01.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-editor/class-visual-editor-sidebar.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/visual-editor/includes/layout/class-visualedit-block-templates-image-importer.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-editor/includes/patterns/sections/visualedit-faqs-section.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-editor/includes/patterns/sections/visualedit-feature-section.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-editor/includes/patterns/sections/visualedit-about-section.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-editor/includes/patterns/visualedit_corporate_01.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visual-editor/includes/patterns/sections/visualedit-hero-section.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function VISUALEDIT\\Blocks\\Layouts\\add_action() in wp-content/plugins/visual-editor/includes/layout/register-layout-components.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: gutenberg, visual editor, editor
visual-editor/visual-editor.php 92% from 13 tests
The primary PHP file in "Visual Editor For Gutenberg" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin25,881 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 36 | 877 | 461 | 18,228 |
PHP | 24 | 1,046 | 715 | 4,616 |
CSS | 8 | 146 | 32 | 2,350 |
Sass | 2 | 158 | 0 | 687 |
PHP code Passed 2 tests
This is a very shot review 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.36 |
Average class complexity | 19.86 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 55 | |
▷ Static methods | 17 | 30.91% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.45% |
Functions | 39 | |
▷ Named functions | 10 | 25.64% |
▷ Anonymous functions | 29 | 74.36% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 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
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common-core/animation/images/count-animation.1151d25d.png | 33.99KB | 9.04KB | ▼ 73.40% |
common-core/animation/images/typing-animation.d84cccd1.png | 58.81KB | 22.46KB | ▼ 61.82% |