Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.86MB] [CPU: ▼44.10ms] Passed 4 tests
Server-side resources used by Rosko Visual Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▼0.34 | 17.63 ▼22.23 |
Dashboard /wp-admin | 3.17 ▼0.18 | 18.48 ▼46.10 |
Posts /wp-admin/edit.php | 3.17 ▼0.19 | 20.64 ▼27.96 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 20.09 ▼80.10 |
Media Library /wp-admin/upload.php | 3.17 ▼0.06 | 18.16 ▼11.83 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options |
---|
social_options |
visual_editor_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Rosko Visual Editor: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,127 ▲356 | 15.77 ▲1.15 | 9.15 ▲7.34 | 51.97 ▲11.22 |
Dashboard /wp-admin | 2,389 ▲201 | 6.60 ▲1.71 | 119.03 ▲8.84 | 39.64 ▼1.62 |
Posts /wp-admin/edit.php | 2,298 ▲212 | 3.59 ▲1.59 | 57.37 ▲16.66 | 35.73 ▼2.35 |
Add New Post /wp-admin/post-new.php | 7,834 ▲6,315 | 25.80 ▲2.47 | 1,010.70 ▲389.67 | 50.92 ▼0.64 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.31 ▲0.13 | 79.58 ▼19.56 | 44.13 ▲0.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/rosko-visual-editor/admin/rve-option-pages.php+63
Undefined variable: wp_post_types
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- social_options
- visual_editor_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 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)
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
The following issues need your attention
- 28× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/rosko-visual-editor/public/shortcodes-generator/rve-shortcodes-generator.php
- > /wp-content/plugins/rosko-visual-editor/public/shortcodes-generator/module-shortcodes/rve_module6.php
- > /wp-content/plugins/rosko-visual-editor/admin/partials/rve-timeline-meta.php
- > /wp-content/plugins/rosko-visual-editor/admin/modals/modal-fields/rve-timeline-modal.php
- > /wp-content/plugins/rosko-visual-editor/admin/rve-option-pages.php
- > /wp-content/plugins/rosko-visual-editor/admin/partials/rve-parallax-meta.php
- > /wp-content/plugins/rosko-visual-editor/admin/modals/modal-fields/rve-slider-modal.php
- > /wp-content/plugins/rosko-visual-editor/admin/partials/rve-testimonials-meta.php
- > /wp-content/plugins/rosko-visual-editor/admin/modals/modal-fields/rve-infoboxes-modal.php
- > /wp-content/plugins/rosko-visual-editor/public/shortcodes-generator/module-shortcodes/rve_module7.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rosko-visual-editor/admin/rve-styling-meta-boxes.php:10
- > 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 96% from 29 tests
readme.txt Passed 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
8 plugin tags: visual builder, visual editor, block visual editor, content editor, backend builder...
rosko-visual-editor/rosko_visual_editor.php 92% from 13 tests
The primary PHP file in "Rosko Visual Editor" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rosko-visual-editor.php" instead of "rosko_visual_editor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,493 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 629 | 986 | 2,297 |
JavaScript | 3 | 459 | 383 | 1,657 |
CSS | 2 | 56 | 14 | 539 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 67 | |
▷ Named functions | 67 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin