89% who-stole-the-text-justify-button

Code Review | Who Stole the Text Justify Button ?!

WordPress plugin Who Stole the Text Justify Button ?! scored89%from 54 tests.

About plugin

  • Plugin page: who-stole-the-tex...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Dec 13, 2016
  • Latest release: Oct 23, 2019
  • Number of updates: 10
  • Update frequency: every 104.1 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10,000+ active /48,664 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Who Stole the Text Justify Button ?!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.16 ▼2.06
Dashboard /wp-admin3.31 ▲0.0148.98 ▼10.08
Posts /wp-admin/edit.php3.36 ▲0.0050.55 ▲2.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.41 ▼16.21
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▲0.14

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Who Stole the Text Justify Button ?!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▼0.411.71 ▼0.0343.51 ▲5.99
Dashboard /wp-admin2,195 ▲185.63 ▲0.0195.35 ▲7.7138.51 ▲1.11
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0537.76 ▲1.4630.93 ▼4.28
Add New Post /wp-admin/post-new.php1,533 ▲723.14 ▲0.15598.59 ▼4.0882.64 ▲29.50
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0796.73 ▼2.3841.06 ▼2.01

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • 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 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
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 94% 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

who-stole-the-text-justify-button/wstjb.php 85% from 13 tests

The primary PHP file in "Who Stole the Text Justify Button ?!" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("who-stole-the-text-justify-button.php" instead of "wstjb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin63 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File15537
PHP232426

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png8.40KB3.40KB▼ 59.47%
assets/icon-128x128.png5.05KB1.91KB▼ 62.16%
assets/screenshot-1.png75.29KB21.09KB▼ 71.99%
assets/icon-256x256.png7.92KB3.43KB▼ 56.74%
assets/banner-1544x500.png13.17KB4.91KB▼ 62.74%