89% editor-cleanup-for-wpbakery

Code Review | Editor Cleanup For WPBakery: FDP add-on to clean up the WPBakery frontend editor

WordPress plugin Editor Cleanup For WPBakery: FDP add-on to clean up the WPBakery frontend editor scored89%from 54 tests.

About plugin

  • Plugin page: editor-cleanup-fo...
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jan 5, 2022
  • Latest release: Nov 1, 2023
  • Number of updates: 15
  • Update frequency: every 44.3 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,397 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.36ms] Passed 4 tests

An overview of server-side resources used by Editor Cleanup For WPBakery: FDP add-on to clean up the WPBakery frontend editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.87 ▼5.22
Dashboard /wp-admin3.35 ▲0.0445.75 ▼7.42
Posts /wp-admin/edit.php3.40 ▲0.0447.39 ▼2.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.77 ▼10.34
Media Library /wp-admin/upload.php3.27 ▲0.0437.92 ▲3.47

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • You have illegally modified 1 file (2.60KB) outside of "wp-content/plugins/editor-cleanup-for-wpbakery/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/fdp-mu-wpbakery.php
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Editor Cleanup For WPBakery: FDP add-on to clean up the WPBakery frontend editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.38 ▼0.001.90 ▲0.2838.86 ▲1.60
Dashboard /wp-admin2,201 ▲235.51 ▼0.1681.63 ▼29.1038.32 ▼4.99
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0235.94 ▼4.2434.15 ▼1.09
Add New Post /wp-admin/post-new.php1,602 ▲7622.59 ▼0.51658.95 ▼40.1736.73 ▼6.91
Media Library /wp-admin/upload.php1,409 ▲64.27 ▲0.0894.67 ▼10.7245.41 ▼1.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (How disable plugins in the frontend editor of WPBakery) image required
The official readme.txt might help

editor-cleanup-for-wpbakery/editor-cleanup-for-wpbakery.php Passed 13 tests

"Editor Cleanup For WPBakery: FDP add-on to clean up the WPBakery frontend editor" version 0.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
An FDP add-on to speed up the WPBakery frontend editor

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 plugin524 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP143660507
JavaScript10017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions28
▷ Named functions2071.43%
▷ Anonymous functions828.57%
Constants7
▷ Global constants7100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/wpbakery-editor-screen.png11.60KB11.14KB▼ 3.91%