90% low-key-toolbar

Code Review | Low-Key ToolBar

WordPress plugin Low-Key ToolBar scored90%from 54 tests.

About plugin

  • Plugin page: low-key-toolbar
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2021
  • Latest release: Mar 18, 2023
  • Number of updates: 7
  • Update frequency: every 78.6 days
  • Top authors: freeleaf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.60ms] Passed 4 tests

This is a short check of server-side resources used by Low-Key ToolBar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.80 ▲0.75
Dashboard /wp-admin3.38 ▲0.0445.25 ▼14.25
Posts /wp-admin/edit.php3.50 ▲0.1451.14 ▲3.67
Add New Post /wp-admin/post-new.php5.97 ▲0.0993.45 ▼6.42
Media Library /wp-admin/upload.php3.31 ▲0.0836.91 ▲1.53

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Low-Key ToolBar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.81 ▲0.652.05 ▲0.3543.46 ▲2.33
Dashboard /wp-admin2,206 ▲145.88 ▲0.97102.84 ▼13.1642.85 ▼4.54
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0938.54 ▼9.6432.76 ▼6.77
Add New Post /wp-admin/post-new.php1,534 ▼123.72 ▲0.58629.82 ▼44.5435.28 ▼17.02
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.1199.81 ▼4.8943.06 ▼2.00

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: editor, gutenberg, toolbar

low-key-toolbar/low-key-toolbar.php Passed 13 tests

The main PHP file in "Low-Key ToolBar" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
This plugin add translucent option to block editor toolbar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected517 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP10110462343
JavaScript31116112
JSON10033
PO File16629

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected