74% wp-remove-text-visual-editor-for-beaver-builder

Code Review | WP Remove Text & Visual Editor for beaver builder

WordPress plugin WP Remove Text & Visual Editor for beaver builder scored74%from 54 tests.

About plugin

  • Plugin page: wp-remove-text-vi...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2019
  • Latest release: Sep 18, 2019
  • Number of updates: 11
  • Update frequency: every 1.2 days
  • Top authors: eladitzkin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /398 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: ▼1.96MB] [CPU: ▼58.13ms] Passed 4 tests

Server-side resources used by WP Remove Text & Visual Editor for beaver builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.71 ▼35.25
Dashboard /wp-admin2.06 ▼1.285.50 ▼56.19
Posts /wp-admin/edit.php2.06 ▼1.296.95 ▼40.64
Add New Post /wp-admin/post-new.php2.06 ▼3.826.98 ▼100.44
Media Library /wp-admin/upload.php2.06 ▼1.174.98 ▼30.35

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WP Remove Text & Visual Editor for beaver builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.28 ▼1.091.64 ▲0.0442.19 ▲1.83
Dashboard /wp-admin2,202 ▲145.80 ▲0.92103.00 ▼9.0738.83 ▼7.24
Posts /wp-admin/edit.php2,094 ▲52.00 ▼0.0236.36 ▼4.6132.60 ▼3.34
Add New Post /wp-admin/post-new.php1,529 ▲1523.23 ▲5.76687.91 ▲12.6963.44 ▲7.81
Media Library /wp-admin/upload.php1,393 ▲84.26 ▲0.0298.16 ▼3.1543.17 ▼3.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp_hide_text_editor handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-remove-text-visual-editor-for-beaver-builder/wp_remove_text_editor_for_beaver_builder.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: visual, beaver, removal, text, builder...

wp-remove-text-visual-editor-for-beaver-builder/wp_remove_text_editor_for_beaver_builder.php 92% from 13 tests

The main file in "WP Remove Text & Visual Editor for beaver builder" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-remove-text-visual-editor-for-beaver-builder.php" instead of "wp_remove_text_editor_for_beaver_builder.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
No dangerous file extensions were detected12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS11310
PHP1462

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin