84% galau-ui-visual-editor

Code Review | GUI - Visual Editor

WordPress plugin GUI - Visual Editor scored 84% from 54 tests.

About plugin

  • Plugin page: galau-ui-visual-e...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.8.1
  • First release: Feb 26, 2016
  • Latest release: Jun 13, 2017
  • Number of updates: 38
  • Update frequency: every 12.5 days
  • Top authors: JasmanXcrew (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 17,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.10MB] [CPU: ▼148.56ms] Passed 4 tests

Server-side resources used by GUI - Visual Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲1.5048.90 ▲13.22
Dashboard /wp-admin4.41 ▲1.3547.89 ▲3.93
Posts /wp-admin/edit.php4.41 ▲1.3050.82 ▲3.43
Add New Post /wp-admin/post-new.php5.78 ▲0.3460.92 ▼611.75
Media Library /wp-admin/upload.php4.41 ▲1.4040.11 ▲10.17
GUI - Templates /wp-admin/edit.php?post_type=gui_templates4.4136.37
GUI - Visual Editor /wp-admin/options-general.php?page=gui_settings4.4136.58

Server storage [IO: ▲10.49MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 707 new files
Database: no new tables, 5 new options
New WordPress options
gui_css_themes
gui_option
gui_addons
gui_framework_googlefont
gui_framework_available

Browser metrics Passed 4 tests

Checking browser requirements for GUI - Visual Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,778 ▲18215.80 ▲0.207.70 ▼1.2951.95 ▼12.57
Dashboard /wp-admin3,030 ▲996.06 ▲0.18142.49 ▼8.36126.99 ▲9.19
Posts /wp-admin/edit.php2,796 ▲572.70 ▲0.0171.09 ▲2.6192.49 ▼4.36
Add New Post /wp-admin/post-new.php1,538 ▼14518.58 ▼0.19375.44 ▼5.61107.92 ▼2.11
Media Library /wp-admin/upload.php1,864 ▲575.03 ▼0.00154.60 ▼7.83133.46 ▲11.85
GUI - Templates /wp-admin/edit.php?post_type=gui_templates1,4552.6267.7177.48
GUI - Visual Editor /wp-admin/options-general.php?page=gui_settings1,2623.3471.88102.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • gui_css_themes

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 34× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 423
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/galau-ui-visual-editor/includes/class-addons-list-table.php on line 4
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 331
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 673
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 584
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 560
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/class-addons-list-table.php on line 4
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 654
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 293
    • > PHP Warning
      Use of undefined constant GUI_TINYMCE_VERSION - assumed 'GUI_TINYMCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/galau-ui-visual-editor/includes/default-addons.php on line 228

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 35 tag instead of maximum 10
Please take inspiration from this readme.txt

galau-ui-visual-editor/galau-ui-visual-editor.php 92% from 13 tests

"GUI - Visual Editor" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 285 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected99,527 lines of code in 511 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2576,4536,50954,009
CSS971,03532318,783
HTML1232,228811,876
PHP44737167,601
JSON3003,328
SVG7032,696
PO File3243279612
LESS75830479
XML800140
Markdown2103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity122.00
▷ Minimum class complexity15.00
▷ Maximum class complexity229.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods72
▷ Static methods22.78%
▷ Public methods5779.17%
▷ Protected methods34.17%
▷ Private methods1216.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin