84% re-add-text-justify-button

Code Review | Re-Add Text Justify Button

WordPress plugin Re-Add Text Justify Button scored84%from 54 tests.

About plugin

  • Plugin page: re-add-text-justi...
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Dec 30, 2016
  • Latest release: Aug 21, 2020
  • Number of updates: 12
  • Update frequency: every 110.6 days
  • Top authors: parallelit (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40,000+ active /189,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Re-Add Text Justify Button
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.02 ▼2.73
Dashboard /wp-admin3.31 ▲0.0147.61 ▼9.18
Posts /wp-admin/edit.php3.36 ▲0.0148.23 ▲3.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.81 ▲2.25
Media Library /wp-admin/upload.php3.23 ▲0.0135.74 ▲0.64

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Re-Add Text Justify Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.271.67 ▼0.0639.06 ▼1.97
Dashboard /wp-admin2,206 ▲185.88 ▼0.00104.34 ▲2.7537.69 ▼3.72
Posts /wp-admin/edit.php2,089 ▲32.04 ▼0.0241.27 ▲2.6135.82 ▲0.65
Add New Post /wp-admin/post-new.php1,533 ▼023.30 ▲0.06650.02 ▼21.8557.95 ▲2.38
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.1293.78 ▼5.4140.60 ▼4.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/re-add-text-justify-button/re-add-text-justify-button.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: mce, wysiwyg, tiny mce, justify

re-add-text-justify-button/re-add-text-justify-button.php Passed 13 tests

"Re-Add Text Justify Button" version 0.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
The most simple plugin to re-add text justify button in the WYSIWYG on WordPress 4.7+

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin28 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26819
Markdown1509

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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
No PNG images were found in this plugin