68% rosko-visual-editor

Code Review | Rosko Visual Editor

WordPress plugin Rosko Visual Editor scored68%from 54 tests.

About plugin

  • Plugin page: rosko-visual-editor
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Mar 27, 2017
  • Number of updates: 19
  • Update frequency: every 0.4 days
  • Top authors: decobt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.13 ▼0.3417.63 ▼22.23
Dashboard /wp-admin3.17 ▼0.1818.48 ▼46.10
Posts /wp-admin/edit.php3.17 ▼0.1920.64 ▼27.96
Add New Post /wp-admin/post-new.php3.17 ▼2.7220.09 ▼80.10
Media Library /wp-admin/upload.php3.17 ▼0.0618.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,127 ▲35615.77 ▲1.159.15 ▲7.3451.97 ▲11.22
Dashboard /wp-admin2,389 ▲2016.60 ▲1.71119.03 ▲8.8439.64 ▼1.62
Posts /wp-admin/edit.php2,298 ▲2123.59 ▲1.5957.37 ▲16.6635.73 ▼2.35
Add New Post /wp-admin/post-new.php7,834 ▲6,31525.80 ▲2.471,010.70 ▲389.6750.92 ▼0.64
Media Library /wp-admin/upload.php1,431 ▲434.31 ▲0.1379.58 ▼19.5644.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP386299862,297
JavaScript34593831,657
CSS25614539

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 code0.44
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions67
▷ Named functions67100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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