90% better-editor-for-oxygen

Code Review | Better Editor for Oxygen

WordPress plugin Better Editor for Oxygen scored90%from 54 tests.

About plugin

  • Plugin page: better-editor-for...
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2021
  • Latest release: Aug 8, 2023
  • Number of updates: 23
  • Update frequency: every 27.9 days
  • Top authors: gabriele1986 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,503 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.42ms] Passed 4 tests

A check of server-side resources used by Better Editor for Oxygen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.49 ▲4.25
Dashboard /wp-admin3.31 ▲0.0147.96 ▼5.70
Posts /wp-admin/edit.php3.36 ▲0.0148.37 ▼15.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.63 ▼24.34
Media Library /wp-admin/upload.php3.23 ▲0.0137.68 ▼4.37

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Better Editor for Oxygen: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▲0.071.97 ▲0.1941.59 ▼1.07
Dashboard /wp-admin2,198 ▲215.58 ▼0.0895.19 ▲2.0741.30 ▲0.08
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0137.83 ▼3.4737.95 ▲0.76
Add New Post /wp-admin/post-new.php1,528 ▼023.12 ▲0.13654.99 ▲11.2756.61 ▼0.94
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0197.59 ▼11.4644.93 ▼2.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • 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
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
6 plugin tags: oxygen editor, oxygen builder, oxy, oxygen, befo...

better-editor-for-oxygen/plugin.php 92% from 13 tests

This is the main PHP file of "Better Editor for Oxygen" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("better-editor-for-oxygen.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin116 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS102368
JavaScript26229
PHP1132219

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin