94% admin-bar-wrap-fix

Code Review | Admin Bar Wrap Fix

WordPress plugin Admin Bar Wrap Fix scored 94% from 54 tests.

About plugin

  • Plugin page: admin-bar-wrap-fix
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Aug 15, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 38
  • Update frequency: every 33.1 days
  • Top authors: KZeni (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 4,737 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼300.41ms] Passed 4 tests

Analyzing server-side resources used by Admin Bar Wrap Fix
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.89 ▲3.09
Dashboard /wp-admin3.41 ▲0.0132.68 ▼1.46
Posts /wp-admin/edit.php3.64 ▲0.0035.86 ▼2.49
Add New Post /wp-admin/post-new.php6.92 ▼0.0895.94 ▼1,196.31
Media Library /wp-admin/upload.php3.30 ▲0.0025.95 ▼1.38

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Bar Wrap Fix
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲1315.90 ▲0.115.71 ▼1.522.11 ▼0.33
Dashboard /wp-admin2,890 ▲296.10 ▼0.08112.85 ▼22.09152.21 ▼7.22
Posts /wp-admin/edit.php2,690 ▲333.23 ▼0.0162.20 ▼0.96139.26 ▲0.34
Add New Post /wp-admin/post-new.php1,719 ▼3321.73 ▼0.09433.48 ▼14.70152.54 ▼1.15
Media Library /wp-admin/upload.php1,697 ▼15.53 ▲0.05133.07 ▼13.38185.66 ▼7.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/admin-bar-wrap-fix/admin-bar-wrap-fix.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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: wrapping, ui fix, ui, overflow, adminbar...

admin-bar-wrap-fix/admin-bar-wrap-fix.php Passed 13 tests

The main PHP file in "Admin Bar Wrap Fix" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Fixes the wrap behavior of the WordPress admin bar when it has too many items. Keep it neat; don't spill/overflow into the content.

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
Good job! No executable or dangerous file extensions detected73 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Sass10256
PHP121215
CSS1212

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin