89% editor-beautifier

Code Review | Editor Beautifier

WordPress plugin Editor Beautifier scored89%from 54 tests.

About plugin

  • Plugin page: editor-beautifier
  • Plugin version: 2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: Apr 14, 2022
  • Number of updates: 22
  • Update frequency: every 19.0 days
  • Top authors: diurno10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /931 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.38ms] Passed 4 tests

This is a short check of server-side resources used by Editor Beautifier
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.29 ▼1.03
Dashboard /wp-admin3.31 ▲0.0045.86 ▼5.79
Posts /wp-admin/edit.php3.36 ▲0.0048.55 ▼0.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.19 ▼4.89
Media Library /wp-admin/upload.php3.23 ▲0.0036.36 ▼1.81

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Editor Beautifier
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.29 ▼0.081.79 ▼0.0844.21 ▲0.72
Dashboard /wp-admin2,196 ▲255.60 ▲0.0285.85 ▼13.3240.29 ▼3.59
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0435.71 ▼1.9535.02 ▼3.04
Add New Post /wp-admin/post-new.php1,533 ▲523.15 ▲0.03663.17 ▼17.5563.10 ▼3.23
Media Library /wp-admin/upload.php1,407 ▲104.21 ▲0.03101.56 ▼10.4146.34 ▼0.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected 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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #6, #7 in editor-beautifier/assets to your readme.txt
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

editor-beautifier/editor-beautifier.php 92% from 13 tests

"Editor Beautifier" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 201 characters long)

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
There were no executable files found in this plugin160 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1341492
JavaScript117859
PHP15109

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected