84% re-add-underline-justify

Code Review | Re-add text underline and justify

WordPress plugin Re-add text underline and justify scored 84% from 54 tests.

About plugin

  • Plugin page: re-add-underline-...
  • Plugin version: 0.4
  • PHP compatiblity: 5.5.12+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2016
  • Latest release: Oct 24, 2022
  • Number of updates: 19
  • Update frequency: every 114.4 days
  • Top authors: briKou (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

60,000+ active / 402,480 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Re-add text underline and justify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.43 ▼5.18
Dashboard /wp-admin3.33 ▲0.0343.30 ▼8.97
Posts /wp-admin/edit.php3.38 ▲0.0344.61 ▼3.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.19 ▲4.85
Media Library /wp-admin/upload.php3.25 ▲0.0335.11 ▲4.80

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

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

Browser metrics Passed 4 tests

Re-add text underline and justify: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.62 ▼1.001.72 ▼0.1537.01 ▼8.79
Dashboard /wp-admin2,206 ▲154.84 ▼0.05110.55 ▲10.5343.37 ▲0.41
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0639.95 ▼1.3333.74 ▼2.90
Add New Post /wp-admin/post-new.php1,514 ▼1417.65 ▼0.88594.31 ▼12.4356.86 ▲2.10
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.04101.03 ▲3.8542.89 ▼1.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/re-add-underline-justify/re-add-underline-justify.php

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: gutenberg, editor, wysiwyg, underline, justify...

re-add-underline-justify/re-add-underline-justify.php Passed 13 tests

The main file in "Re-add text underline and justify" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
138 characters long description:
Re-adds the Editor text underline & justify buttons in the WYSIWYG removed in WordPress 4.7. Works with Classic Editor, ACF and Gutenberg.

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 plugin127 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2536580
PO File1143247

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions9
▷ Named functions9100.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 images were found in this plugin