89% editor-cleanup-for-flatsome

Code Review | Editor Cleanup For Flatsome: FDP add-on to clean up the Flatsome UX Builder

WordPress plugin Editor Cleanup For Flatsome: FDP add-on to clean up the Flatsome UX Builder scored89%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,975 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.75ms] Passed 4 tests

This is a short check of server-side resources used by Editor Cleanup For Flatsome: FDP add-on to clean up the Flatsome UX Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.08 ▼5.34
Dashboard /wp-admin3.35 ▼0.0047.73 ▼18.67
Posts /wp-admin/edit.php3.40 ▲0.0449.51 ▲0.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.06 ▼7.17
Media Library /wp-admin/upload.php3.27 ▲0.0434.82 ▲0.20

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Editor Cleanup For Flatsome: FDP add-on to clean up the Flatsome UX Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.34 ▼0.101.75 ▼0.0240.72 ▼3.46
Dashboard /wp-admin2,201 ▲245.63 ▼0.0493.25 ▼1.8742.16 ▼0.35
Posts /wp-admin/edit.php2,107 ▲101.97 ▼0.0540.06 ▲3.5938.10 ▲2.58
Add New Post /wp-admin/post-new.php1,602 ▲6722.55 ▲4.20591.30 ▼34.9029.31 ▼40.01
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0295.87 ▼4.1845.88 ▲2.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (How disable plugins in the editor of Flatsome) image not found
You can look at the official readme.txt

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

This is the main PHP file of "Editor Cleanup For Flatsome: FDP add-on to clean up the Flatsome UX Builder" version 0.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
An FDP add-on to clean up the editor of Flatsome

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin494 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP143663477
JavaScript10017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions30
▷ Named functions2170.00%
▷ Anonymous functions930.00%
Constants6
▷ Global constants6100.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
No PNG files were detected