89% editor-cleanup-for-divi-builder

Code Review | Editor Cleanup For Divi Builder: FDP add-on to cleanup the Divi Builder frontend editor

WordPress plugin Editor Cleanup For Divi Builder: FDP add-on to cleanup the Divi Builder frontend editor scored89%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,173 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Editor Cleanup For Divi Builder: FDP add-on to cleanup the Divi Builder frontend editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.05 ▼4.06
Dashboard /wp-admin3.35 ▲0.0444.88 ▼3.59
Posts /wp-admin/edit.php3.40 ▲0.0449.15 ▲0.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.08 ▼5.25
Media Library /wp-admin/upload.php3.27 ▲0.0435.47 ▼2.75

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

Filesystem and database footprint
Please fix the following
  • Illegal file modification detected: 1 file (2.42KB) outside of "wp-content/plugins/editor-cleanup-for-divi-builder/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/fdp-mu-divi-builder.php
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Editor Cleanup For Divi Builder: FDP add-on to cleanup the Divi Builder frontend editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.65 ▲0.261.61 ▼0.1639.04 ▼5.43
Dashboard /wp-admin2,201 ▲215.49 ▼0.1687.42 ▼8.6941.11 ▼2.36
Posts /wp-admin/edit.php2,110 ▲102.02 ▲0.0339.82 ▲2.4038.28 ▲4.92
Add New Post /wp-admin/post-new.php1,602 ▲7322.03 ▼1.70564.94 ▼102.8532.25 ▼41.43
Media Library /wp-admin/upload.php1,406 ▲124.23 ▲0.0598.51 ▲4.9943.44 ▼1.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (How disable plugins in the frontend editor of Divi Builder)
You can look at the official readme.txt

editor-cleanup-for-divi-builder/editor-cleanup-for-divi-builder.php Passed 13 tests

This is the main PHP file of "Editor Cleanup For Divi Builder: FDP add-on to cleanup the Divi Builder frontend editor" version 0.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
An FDP add-on to speed up Divi Builder in the backend

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected571 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP144067554
JavaScript10017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions27
▷ Named functions2074.07%
▷ Anonymous functions725.93%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected