90% editor-cleanup-for-oxygen

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

WordPress plugin Editor Cleanup For Oxygen: FDP add-on to cleanup the Oxygen editor scored90%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,282 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Editor Cleanup For Oxygen: FDP add-on to cleanup the Oxygen editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.81 ▼2.56
Dashboard /wp-admin3.35 ▲0.0447.13 ▼3.11
Posts /wp-admin/edit.php3.40 ▲0.0447.65 ▼6.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.74 ▼10.40
Media Library /wp-admin/upload.php3.27 ▲0.0436.04 ▲1.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Editor Cleanup For Oxygen: FDP add-on to cleanup the Oxygen editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.67 ▲0.501.78 ▲0.2939.38 ▼1.47
Dashboard /wp-admin2,198 ▲275.57 ▼0.0292.10 ▼2.1643.03 ▲2.65
Posts /wp-admin/edit.php2,107 ▲42.00 ▲0.0540.72 ▼0.2237.34 ▼1.75
Add New Post /wp-admin/post-new.php1,602 ▲7622.85 ▼0.78621.93 ▲2.3135.25 ▼16.15
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0198.73 ▼1.7844.27 ▲1.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
5 plugin tags: performance, conflicts, oxygen, debugging, cleanup

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

"Editor Cleanup For Oxygen: FDP add-on to cleanup the Oxygen editor" version 0.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
An FDP add-on to speed up Oxygen in the backend

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
Success! There were no dangerous files found in this plugin624 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP153873607
JavaScript10017

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
Functions30
▷ Named functions2066.67%
▷ Anonymous functions1033.33%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/oxygen-editor-screen.png11.60KB11.14KB▼ 3.91%