89% indent-lists-button

Code Review | Indent Lists Button

WordPress plugin Indent Lists Button scored89%from 54 tests.

About plugin

  • Plugin page: indent-lists-button
  • Plugin version: 0.1.37
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: Aug 10, 2022
  • Number of updates: 50
  • Update frequency: every 48.7 days
  • Top authors: Methodos (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /20,539 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.02MB] [CPU: ▼5.93ms] Passed 4 tests

An overview of server-side resources used by Indent Lists Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.07 ▼4.24
Dashboard /wp-admin3.33 ▲0.0253.56 ▼3.49
Posts /wp-admin/edit.php3.38 ▲0.0254.67 ▼0.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.38 ▼15.63
Media Library /wp-admin/upload.php3.25 ▲0.0238.42 ▲1.35

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
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Indent Lists Button
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.37 ▲0.021.84 ▲0.1241.04 ▼5.09
Dashboard /wp-admin2,197 ▲205.67 ▲0.0789.25 ▼11.7039.72 ▼5.15
Posts /wp-admin/edit.php2,099 ▼42.01 ▲0.0238.71 ▼0.2935.35 ▼4.10
Add New Post /wp-admin/post-new.php1,531 ▼423.06 ▼1.83608.14 ▼45.6455.83 ▼27.71
Media Library /wp-admin/upload.php1,402 ▲24.19 ▼0.0697.97 ▼3.1541.74 ▼2.38

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output 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
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

indent-lists-button/ili-indent-lists-button.php 92% from 13 tests

"Indent Lists Button" version 0.1.37's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("indent-lists-button.php" instead of "ili-indent-lists-button.php")

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 plugin142 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP102072
JavaScript103748
CSS10022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin