84% admin-bar-wrap-fix

Code Review | Admin Bar Wrap Fix

WordPress plugin Admin Bar Wrap Fix scored84%from 54 tests.

About plugin

  • Plugin page: admin-bar-wrap-fix
  • Plugin version: 1.2.7
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Oct 25, 2023
  • Number of updates: 46
  • Update frequency: every 41.3 days
  • Top authors: KZeni (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /8,573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Admin Bar Wrap Fix
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.15 ▼0.89
Dashboard /wp-admin3.32 ▲0.0147.48 ▲3.32
Posts /wp-admin/edit.php3.37 ▲0.0144.50 ▼1.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.87 ▼10.00
Media Library /wp-admin/upload.php3.24 ▲0.0136.32 ▲3.58

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Bar Wrap Fix
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▲0.041.75 ▲0.0843.28 ▲3.97
Dashboard /wp-admin2,200 ▲265.63 ▼0.0285.93 ▼18.1241.79 ▼0.39
Posts /wp-admin/edit.php2,102 ▼11.97 ▼0.0334.61 ▼5.3731.45 ▼4.38
Add New Post /wp-admin/post-new.php1,528 ▲223.01 ▲0.05662.26 ▼17.7052.49 ▼4.66
Media Library /wp-admin/upload.php1,405 ▲54.22 ▲0.02108.38 ▲2.2747.59 ▼0.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() 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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: overflow, ui fix, ui, adminbar, admin bar...

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

This is the main PHP file of "Admin Bar Wrap Fix" version 1.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin118 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP131260
Sass10256
CSS1212

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png42.97KB13.18KB▼ 69.33%
screenshot-1.png40.21KB11.91KB▼ 70.38%
screenshot-3.png44.00KB13.19KB▼ 70.01%