89% editor-cleanup-for-avada

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

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

About plugin

  • Plugin page: editor-cleanup-fo...
  • Plugin version: 0.0.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 23, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 19
  • Update frequency: every 35.7 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /967 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Editor Cleanup For Avada: FDP add-on to cleanup the Avada frontend editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.63 ▼3.39
Dashboard /wp-admin3.35 ▲0.0443.77 ▼5.94
Posts /wp-admin/edit.php3.40 ▲0.0447.28 ▼2.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.60 ▲5.91
Media Library /wp-admin/upload.php3.27 ▲0.0435.48 ▲1.47

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

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • You have illegally modified 1 file (2.39KB) outside of "wp-content/plugins/editor-cleanup-for-avada/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/fdp-mu-avada.php
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Editor Cleanup For Avada: FDP add-on to cleanup the Avada frontend editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲2414.25 ▲0.031.55 ▼0.4936.92 ▼8.89
Dashboard /wp-admin2,204 ▲275.61 ▼0.0490.81 ▼2.0942.15 ▲0.39
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0340.19 ▲2.8837.05 ▲2.86
Add New Post /wp-admin/post-new.php1,611 ▲8524.80 ▲1.49610.54 ▼74.0033.60 ▼19.33
Media Library /wp-admin/upload.php1,406 ▲64.25 ▲0.06103.79 ▲10.3644.61 ▲2.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (How disable plugins in the frontend editor of Avada)
You can take inspiration from this readme.txt

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

"Editor Cleanup For Avada: FDP add-on to cleanup the Avada frontend editor" version 0.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
An FDP add-on to speed up Avada in the backend

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected583 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP153868566
JavaScript10017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions29
▷ Named functions2172.41%
▷ Anonymous functions827.59%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin